From: Jagannadha Sutradharudu Teki Date: Thu, 13 Dec 2012 16:55:14 +0000 (+0530) Subject: zynq: zc70x: Add I2C configurations support X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=128d65f0dc8f1ff3aacf122d6dbaf27654be2cde;p=thirdparty%2Fu-boot.git 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 --- 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