From: Steve Sakoman Date: Thu, 17 Jun 2010 15:17:33 -0700 Subject: [U-Boot] [PATCH v2 10/10] ARMV7: Enable i2c support on TI OMAP4 Panda In-Reply-To: <1276813053-27518-1-git-send-email-steve@sakoman.com> References: <1276813053-27518-1-git-send-email-steve@sakoman.com> Message-ID: <1276813053-27518-11-git-send-email-steve@sakoman.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This patch enables the i2c driver, i2c commands, and i2c multi-bus support Signed-off-by: Steve Sakoman Acked-by: Heiko Schocher --- Changes in this version include: - Acked-by from Heiko 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