From: Vipul Kumar Date: Fri, 16 Feb 2018 13:37:19 +0000 (+0530) Subject: i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SLAVE X-Git-Tag: v2018.03-rc4~21^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e7affad190fcebcb2c93eed97ae4a74d947cb14d;p=u-boot i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SLAVE This patch added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SLAVE and set it default to 0. Signed-off-by: Vipul Kumar Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 1c8b8f7b3e..6200f1c1e1 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -274,6 +274,13 @@ config SYS_I2C_ZYNQ help Support for Xilinx I2C controller. +config SYS_I2C_ZYNQ_SLAVE + hex "Set slave addr" + depends on SYS_I2C_ZYNQ + default 0 + help + Set CONFIG_SYS_I2C_ZYNQ_SLAVE for slave addr. + config SYS_I2C_IHS bool "gdsys IHS I2C driver" depends on DM_I2C diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index 52baa42a2f..20ff1136ba 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -127,7 +127,6 @@ #if defined(CONFIG_SYS_I2C_ZYNQ) # define CONFIG_SYS_I2C # define CONFIG_SYS_I2C_ZYNQ_SPEED 100000 -# define CONFIG_SYS_I2C_ZYNQ_SLAVE 0 #endif /* EEPROM */ diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index 07b121d7d6..cf37f84e28 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -121,7 +121,6 @@ #if defined(CONFIG_SYS_I2C_ZYNQ) # define CONFIG_SYS_I2C # define CONFIG_SYS_I2C_ZYNQ_SPEED 100000 -# define CONFIG_SYS_I2C_ZYNQ_SLAVE 0 #endif /* EEPROM */