summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYen Lin <yelin@nvidia.com>2012-03-06 19:00:23 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-03-29 08:12:50 +0200
commit96a78ac0c445999ce21fb42ecab061479b4d7056 (patch)
tree421a551928a999d1bc1bd9c8e72563db72910b46 /lib
parent34fa833aeeea498033f2c68b33ed8d57bf951e22 (diff)
downloadu-boot-imx-96a78ac0c445999ce21fb42ecab061479b4d7056.zip
u-boot-imx-96a78ac0c445999ce21fb42ecab061479b4d7056.tar.gz
u-boot-imx-96a78ac0c445999ce21fb42ecab061479b4d7056.tar.bz2
tegra: i2c: Add I2C driver
Add basic i2c driver for Tegra2 with 8- and 16-bit address support. The driver requires CONFIG_OF_CONTROL to obtain its configuration from the device tree. (Simon Glass: sjg@chromium.org modified for upstream) Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 2149bd7..bdec1a0 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -38,6 +38,8 @@ DECLARE_GLOBAL_DATA_PTR;
static const char * const compat_names[COMPAT_COUNT] = {
COMPAT(UNKNOWN, "<none>"),
COMPAT(NVIDIA_TEGRA20_USB, "nvidia,tegra20-ehci"),
+ COMPAT(NVIDIA_TEGRA20_I2C, "nvidia,tegra20-i2c"),
+ COMPAT(NVIDIA_TEGRA20_DVC, "nvidia,tegra20-i2c-dvc"),
};
const char *fdtdec_get_compatible(enum fdt_compat_id id)