summaryrefslogtreecommitdiff
path: root/include/configs/zynq.h
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2013-04-22 15:21:33 +0200
committerMichal Simek <michal.simek@xilinx.com>2013-04-30 11:39:28 +0200
commit8934f7846501070a5b01c1fab5db27559e9d70d1 (patch)
tree56012200ad94320370944669f7ab2427902366f3 /include/configs/zynq.h
parent293eb33fcb95e2b2bae71edf97b0ca3bdd6ba98d (diff)
downloadu-boot-imx-8934f7846501070a5b01c1fab5db27559e9d70d1.zip
u-boot-imx-8934f7846501070a5b01c1fab5db27559e9d70d1.tar.gz
u-boot-imx-8934f7846501070a5b01c1fab5db27559e9d70d1.tar.bz2
i2c: zynq: Add support for Xilinx Zynq
Support Xilinx Zynq i2c controller. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Heiko Schocher <hs@denx.de> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/configs/zynq.h')
-rw-r--r--include/configs/zynq.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/zynq.h b/include/configs/zynq.h
index 2ed88a7..f1f182e 100644
--- a/include/configs/zynq.h
+++ b/include/configs/zynq.h
@@ -72,6 +72,17 @@
# define CONFIG_DOS_PARTITION
#endif
+#define CONFIG_ZYNQ_I2C0
+
+/* I2C */
+#if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1)
+# define CONFIG_CMD_I2C
+# define CONFIG_ZYNQ_I2C
+# define CONFIG_HARD_I2C
+# define CONFIG_SYS_I2C_SPEED 100000
+# define CONFIG_SYS_I2C_SLAVE 1
+#endif
+
#if defined(CONFIG_ZYNQ_DCC)
# define CONFIG_ARM_DCC
# define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */