summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-05-07 05:42:34 +0000
committerHeiko Schocher <hs@denx.de>2012-07-11 10:54:53 +0200
commit175a7d2778ad26a244f5c846a6385413c87d95a7 (patch)
treef97a8fce42d2ad6986bf130761058fc95024bab6 /include/configs
parentfa86d1c0bf3f4c68aa565952f1fcafbe2aa2c050 (diff)
downloadu-boot-imx-175a7d2778ad26a244f5c846a6385413c87d95a7.zip
u-boot-imx-175a7d2778ad26a244f5c846a6385413c87d95a7.tar.gz
u-boot-imx-175a7d2778ad26a244f5c846a6385413c87d95a7.tar.bz2
mx28evk: Add I2C support
Add I2C support. Tested by placing a 24LC16 EEPROM into the U50 slot which comes empty from factory. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx28evk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index 8f60496..54d21e6 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -68,6 +68,7 @@
#define CONFIG_CMD_SPI
#define CONFIG_CMD_USB
#define CONFIG_CMD_BOOTZ
+#define CONFIG_CMD_I2C
/*
* Memory configurations
@@ -188,6 +189,13 @@
#define CONFIG_USB_STORAGE
#endif
+/* I2C */
+#ifdef CONFIG_CMD_I2C
+#define CONFIG_I2C_MXS
+#define CONFIG_HARD_I2C
+#define CONFIG_SYS_I2C_SPEED 400000
+#endif
+
/*
* SPI
*/