[U-Boot] [PATCH v3 10/10] ARMV7: Enable i2c support on TI OMAP4 Panda
Steve Sakoman
steve at sakoman.com
Fri Jun 18 22:42:41 CEST 2010
This patch enables the i2c driver, i2c commands, and i2c multi-bus support
Signed-off-by: Steve Sakoman <steve at sakoman.com>
Acked-by: Heiko Schocher<hs at denx.de>
---
include/configs/omap4_panda.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
index 9302ecb..a15c5f5 100644
--- a/include/configs/omap4_panda.h
+++ b/include/configs/omap4_panda.h
@@ -93,6 +93,15 @@
#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
115200}
+/* I2C */
+#define CONFIG_HARD_I2C 1
+#define CONFIG_SYS_I2C_SPEED 100000
+#define CONFIG_SYS_I2C_SLAVE 1
+#define CONFIG_SYS_I2C_BUS 0
+#define CONFIG_SYS_I2C_BUS_SELECT 1
+#define CONFIG_DRIVER_OMAP34XX_I2C 1
+#define CONFIG_I2C_MULTI_BUS 1
+
/* MMC */
#define CONFIG_MMC 1
#define CONFIG_OMAP3_MMC 1
@@ -108,6 +117,7 @@
/* Enabled commands */
#define CONFIG_CMD_EXT2 /* EXT2 Support */
#define CONFIG_CMD_FAT /* FAT support */
+#define CONFIG_CMD_I2C /* I2C serial bus support */
#define CONFIG_CMD_MMC /* MMC support */
/* Disabled commands */
--
1.7.0.4
More information about the U-Boot
mailing list