From: Nobuhiro Iwamatsu Date: Wed, 11 Sep 2013 06:04:33 +0000 (+0900) Subject: arm: koelsch: Add support I2C X-Git-Tag: v2014.01-rc3~9^2~65^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bb611cce32338bc35b49538ca23d90a8f3e977c4;p=oweals%2Fu-boot.git arm: koelsch: Add support I2C This supports sh_i2c on koelsch board. Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/include/configs/koelsch.h b/include/configs/koelsch.h index 32ceff3d7c..f410a8f79f 100644 --- a/include/configs/koelsch.h +++ b/include/configs/koelsch.h @@ -149,4 +149,20 @@ #define CONFIG_SYS_TMU_CLK_DIV 4 #define CONFIG_SYS_HZ 1000 +/* i2c */ +#define CONFIG_CMD_I2C +#define CONFIG_SYS_I2C +#define CONFIG_SYS_I2C_SH +#define CONFIG_SYS_I2C_SLAVE 0x7F +#define CONFIG_SYS_I2C_SH_NUM_CONTROLLERS 3 +#define CONFIG_SYS_I2C_SH_BASE0 0xE6500000 +#define CONFIG_SYS_I2C_SH_SPEED0 400000 +#define CONFIG_SYS_I2C_SH_BASE1 0xE6510000 +#define CONFIG_SYS_I2C_SH_SPEED1 400000 +#define CONFIG_SYS_I2C_SH_BASE2 0xE60B0000 +#define CONFIG_SYS_I2C_SH_SPEED2 400000 +#define CONFIG_SH_I2C_DATA_HIGH 4 +#define CONFIG_SH_I2C_DATA_LOW 5 +#define CONFIG_SH_I2C_CLOCK 10000000 + #endif /* __KOELSCH_H */