From 128d65f0dc8f1ff3aacf122d6dbaf27654be2cde Mon Sep 17 00:00:00 2001 From: Jagannadha Sutradharudu Teki Date: Thu, 13 Dec 2012 22:25:14 +0530 Subject: [PATCH] zynq: zc70x: Add I2C configurations support Adds configurations for zynq i2c controller. Enable i2c support on zc70x boards. Signed-off-by: Jagannadha Sutradharudu Teki Acked-by: Michal Simek --- include/configs/zynq_common.h | 9 +++++++++ include/configs/zynq_zc70x.h | 1 + 2 files changed, 10 insertions(+) diff --git a/include/configs/zynq_common.h b/include/configs/zynq_common.h index 971e176047f..8edbdd8f858 100644 --- a/include/configs/zynq_common.h +++ b/include/configs/zynq_common.h @@ -149,6 +149,15 @@ # 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 */ diff --git a/include/configs/zynq_zc70x.h b/include/configs/zynq_zc70x.h index ce8599736eb..3f18f3a2270 100644 --- a/include/configs/zynq_zc70x.h +++ b/include/configs/zynq_zc70x.h @@ -32,6 +32,7 @@ #define CONFIG_MMC #define CONFIG_ZYNQ_SPI +#define CONFIG_ZYNQ_I2C #include -- 2.47.3