]> git.sur5r.net Git - u-boot/commitdiff
arm: koelsch: Add support I2C
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Wed, 11 Sep 2013 06:04:33 +0000 (15:04 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 18 Dec 2013 07:35:46 +0000 (16:35 +0900)
This supports sh_i2c on koelsch board.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
include/configs/koelsch.h

index 32ceff3d7cbc4a19d3b1fd4137757b7642009c69..f410a8f79f5d6cf30bbefb5aeea5b52272183252 100644 (file)
 #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 */