edminiv2: add I2C support using mvtwsi driver
authorAlbert Aribaud <albert.aribaud@free.fr>
Fri, 27 Aug 2010 16:26:06 +0000 (18:26 +0200)
committerHeiko Schocher <hs@denx.de>
Mon, 30 Aug 2010 12:10:45 +0000 (14:10 +0200)
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
Acked-by: Prafulla Wadaskar<prafulla@marvell.com>
Acked-by: Heiko Schocher<hs@denx.de>
include/configs/edminiv2.h

index 57dd1651f36e71c40ce5c679c89e9e3fe5cf96a7..ccfc66053b5627553ccd9730b67ae949a37430b3 100644 (file)
  */
 #include <config_cmd_default.h>
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_I2C
 
 /*
  * Network
 /* end of IDE defines */
 #endif /* CMD_IDE */
 
+/*
+ * I2C related stuff
+ */
+#ifdef CONFIG_CMD_I2C
+#define CONFIG_I2C_MVTWSI
+#define CONFIG_I2C_MVTWSI_BASE         ORION5X_TWSI_BASE
+#define CONFIG_SYS_I2C_SLAVE           0x0
+#define CONFIG_SYS_I2C_SPEED           100000
+#endif
+
 /*
  *  Environment variables configurations
  */