Rachna, > -----Original Message----- > From: Patil, Rachna > Sent: Friday, January 13, 2012 3:34 PM > To: u-boot@lists.denx.de > Cc: Rini, Tom; Kumar Nath, Chandan; Zhang, Jonathan; Patil, Rachna > Subject: [PATCH 3/3] ARM: AM33XX: Add i2c support > > Add i2c driver board hookup for AM335X EVM. > > Signed-off-by: Chandan Nath <chandan.n...@ti.com> > Signed-off-by: Patil, Rachna <rac...@ti.com> > --- > arch/arm/cpu/armv7/am33xx/clock.c | 5 ++ > arch/arm/include/asm/arch-am33xx/common_def.h | 1 + > arch/arm/include/asm/arch-am33xx/cpu.h | 3 +- > arch/arm/include/asm/arch-am33xx/i2c.h | 81 > +++++++++++++++++++++++++ > board/ti/am335x/evm.c | 6 ++ > board/ti/am335x/mux.c | 14 ++++ > include/configs/am335x_evm.h | 9 +++ > 7 files changed, 118 insertions(+), 1 deletions(-) > create mode 100644 arch/arm/include/asm/arch-am33xx/i2c.h
[....] > +void enable_i2c0_pin_mux(void) > +{ > + configure_module_pin_mux(i2c0_pin_mux); > +} > + Remove this extra line in EOF. This shows whitespace error while doing git am. > diff --git a/include/configs/am335x_evm.h > b/include/configs/am335x_evm.h > index 2cea1f4..6683b3e 100644 > --- a/include/configs/am335x_evm.h > +++ b/include/configs/am335x_evm.h > @@ -103,6 +103,14 @@ > #define CONFIG_SYS_NS16550_CLK (48000000) > #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has > UART0 */ > > +/* I2C Configuration */ > +#define CONFIG_I2C > +#define CONFIG_CMD_I2C > +#define CONFIG_HARD_I2C > +#define CONFIG_SYS_I2C_SPEED 100000 > +#define CONFIG_SYS_I2C_SLAVE 1 > +#define CONFIG_DRIVER_OMAP24XX_I2C > + > #define CONFIG_BAUDRATE 115200 > #define CONFIG_SYS_BAUDRATE_TABLE { 110, 300, 600, 1200, 2400, \ > 4800, 9600, 14400, 19200, 28800, 38400, 56000, 57600, 115200 } > @@ -131,6 +139,7 @@ > #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img" > #define CONFIG_SPL_MMC_SUPPORT > #define CONFIG_SPL_FAT_SUPPORT > +#define CONFIG_SPL_I2C_SUPPORT > > #define CONFIG_SPL_LIBCOMMON_SUPPORT > #define CONFIG_SPL_LIBDISK_SUPPORT > -- > 1.7.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot