diff mbox

[U-Boot,3/4] arm: koelsch: Add support I2C

Message ID 1386749324-3787-3-git-send-email-nobuhiro.iwamatsu.yj@renesas.com
State Accepted, archived
Delegated to: Nobuhiro Iwamatsu
Headers show

Commit Message

Nobuhiro Iwamatsu Dec. 11, 2013, 8:08 a.m. UTC
This supports sh_i2c on koelsch board.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
 include/configs/koelsch.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox

Patch

diff --git a/include/configs/koelsch.h b/include/configs/koelsch.h
index 4d78388..0c3f7f8 100644
--- a/include/configs/koelsch.h
+++ b/include/configs/koelsch.h
@@ -149,4 +149,16 @@ 
 #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_SPEED0	400000
+#define CONFIG_SYS_I2C_SH_SPEED1	400000
+#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 */