]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: zc70x: Add I2C configurations support
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
Thu, 13 Dec 2012 16:55:14 +0000 (22:25 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 14 Dec 2012 10:16:10 +0000 (11:16 +0100)
Adds configurations for zynq i2c controller.
Enable i2c support on zc70x boards.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
include/configs/zynq_common.h
include/configs/zynq_zc70x.h

index 971e176047f81f0413ae118f3b6869b529cf7cd7..8edbdd8f85871ac7f2bad2ac38b70a03cd195b64 100644 (file)
 # define CONFIG_MTD_DEVICE
 #endif
 
+/* I2C */
+#ifdef CONFIG_ZYNQ_I2C
+# define CONFIG_CMD_I2C
+# define CONFIG_ZYNQ_I2C_CTLR_0
+# define CONFIG_HARD_I2C               1
+# define CONFIG_SYS_I2C_SPEED          100000
+# define CONFIG_SYS_I2C_SLAVE          1
+#endif
+
 #ifndef CONFIG_ENV_IS_NOWHERE
 # ifndef CONFIG_SYS_NO_FLASH
 /* Environment in NOR flash */
index ce8599736ebd791c6c3059998391dd1256c412d2..3f18f3a22704b0a92e88ae8911656e5ecd80215e 100644 (file)
@@ -32,6 +32,7 @@
 
 #define CONFIG_MMC
 #define CONFIG_ZYNQ_SPI
+#define CONFIG_ZYNQ_I2C
 
 #include <configs/zynq_common.h>