]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Davinci: ea20: added I2C support
authorStefano Babic <sbabic@denx.de>
Tue, 4 Oct 2011 23:43:38 +0000 (23:43 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:26 +0000 (22:56 +0100)
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
board/davinci/ea20/ea20.c
include/configs/ea20.h

index d581cddcf9b8ac9d1a9a613bbc33c8d28d1f3eee..720a3607a75edb32d1524b38d83c5f871646d335 100644 (file)
@@ -65,6 +65,12 @@ static const struct pinmux_config spi1_pins[] = {
        { pinmux(5), 1, 5 }
 };
 
+/* I2C pin muxer settings */
+static const struct pinmux_config i2c_pins[] = {
+       { pinmux(4), 2, 2 },
+       { pinmux(4), 2, 3 }
+};
+
 /* UART0 pin muxer settings */
 static const struct pinmux_config uart_pins[] = {
        { pinmux(3), 2, 7 },
@@ -148,6 +154,7 @@ static const struct pinmux_resource pinmuxes[] = {
        PINMUX_ITEM(spi1_pins),
 #endif
        PINMUX_ITEM(uart_pins),
+       PINMUX_ITEM(i2c_pins),
 #ifdef CONFIG_NAND_DAVINCI
        PINMUX_ITEM(nand_pins),
 #endif
index 15be4d25622be7b4aa6b2d12252752a7d702b672..66583b27dde623c7951fc0b8210db3ced112f144 100644 (file)
 #define CONFIG_SF_DEFAULT_SPEED                30000000
 #define CONFIG_ENV_SPI_MAX_HZ  CONFIG_SF_DEFAULT_SPEED
 
+/*
+ * I2C Configuration
+ */
+#define CONFIG_HARD_I2C
+#define CONFIG_DRIVER_DAVINCI_I2C
+#define CONFIG_SYS_I2C_SPEED           100000
+
 /*
  * Network & Ethernet Configuration
  */
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_SAVES
 #define CONFIG_CMD_MEMORY
+#define CONFIG_CMD_I2C
 
 #ifndef CONFIG_DRIVER_TI_EMAC
 #undef CONFIG_CMD_NET