summaryrefslogtreecommitdiffstats
path: root/include/configs/zynq-common.h
diff options
context:
space:
mode:
authorMichael Burr <michael.burr@logicpd.com>2014-01-22 09:46:08 +0100
committerHeiko Schocher <hs@denx.de>2014-02-20 06:46:55 +0100
commit18948632a92f83cfad125edc6ff4a162a7d90a05 (patch)
tree155e2c089a9b860e679e8c1dfee0998a39274abe /include/configs/zynq-common.h
parent9e901071550dd533cc291fb5d19b0841993f6fe7 (diff)
downloadtalos-obmc-uboot-18948632a92f83cfad125edc6ff4a162a7d90a05.tar.gz
talos-obmc-uboot-18948632a92f83cfad125edc6ff4a162a7d90a05.zip
i2c: zynq: Add support for the second i2c controller
Initialize the second i2c controller. Signed-off-by: Michael Burr <michael.burr@logicpd.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/configs/zynq-common.h')
-rw-r--r--include/configs/zynq-common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 9b6db043b5..787d32d2b8 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -104,13 +104,13 @@
# define CONFIG_DOS_PARTITION
#endif
+#define CONFIG_SYS_I2C_ZYNQ
/* I2C */
-#if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1)
+#if defined(CONFIG_SYS_I2C_ZYNQ)
# define CONFIG_CMD_I2C
# define CONFIG_SYS_I2C
-# define CONFIG_SYS_I2C_ZYNQ
# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000
-# define CONFIG_SYS_I2C_ZYNQ_SLAVE 1
+# define CONFIG_SYS_I2C_ZYNQ_SLAVE 0
#endif
/* EEPROM */
OpenPOWER on IntegriCloud