Tegra114: I2C: Enable I2C driver on Dalmore E1611 eval board
authorTom Warren <twarren.nvidia@gmail.com>
Fri, 8 Feb 2013 07:25:32 +0000 (07:25 +0000)
committerTom Warren <twarren@nvidia.com>
Thu, 14 Mar 2013 18:06:42 +0000 (11:06 -0700)
Tested all 5 'buses', i2c probe enumerates device addresses on bus
0, 1 and 2.

Signed-off-by: Tom Warren <twarren@nvidia.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
include/configs/dalmore.h
include/configs/tegra114-common.h

index ce32c8030b99a40d4da8da099bf3501df697478f..b1a6e34ebad93b4c914002a1545f039d0f085d39 100644 (file)
 #define CONFIG_MACH_TYPE               MACH_TYPE_DALMORE
 
 #define CONFIG_BOARD_EARLY_INIT_F
+
+/* I2C */
+#define CONFIG_TEGRA_I2C
+#define CONFIG_SYS_I2C_INIT_BOARD
+#define CONFIG_I2C_MULTI_BUS
+#define CONFIG_SYS_MAX_I2C_BUS         TEGRA_I2C_NUM_CONTROLLERS
+#define CONFIG_SYS_I2C_SPEED           100000
+#define CONFIG_CMD_I2C
+
 #define CONFIG_ENV_IS_NOWHERE
 
 #define MACH_TYPE_DALMORE      4304    /* not yet in mach-types.h */
index 003353040e2247e1f78145e07ab99e6e64af4169..c2986d83092d7c47888f4ea11476193ce1280f1b 100644 (file)
@@ -76,4 +76,7 @@
 
 #define CONFIG_SPL_LDSCRIPT            "$(CPUDIR)/tegra114/u-boot-spl.lds"
 
+/* Total I2C ports on Tegra114 */
+#define TEGRA_I2C_NUM_CONTROLLERS      5
+
 #endif /* _TEGRA114_COMMON_H_ */