From: Vipul Kumar Date: Fri, 16 Feb 2018 13:37:20 +0000 (+0530) Subject: i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SPEED X-Git-Tag: v2018.03-rc4~21^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce3c9a59afd0591a105a316335d7015d8d902367;p=u-boot i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SPEED This patch added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SPEED and set it to default value 100000. 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 6200f1c1e1..6843131970 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -281,6 +281,13 @@ config SYS_I2C_ZYNQ_SLAVE help Set CONFIG_SYS_I2C_ZYNQ_SLAVE for slave addr. +config SYS_I2C_ZYNQ_SPEED + int "Set I2C speed" + depends on SYS_I2C_ZYNQ + default 100000 + help + Set CONFIG_SYS_I2C_ZYNQ_SPEED for speed setting. + 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 20ff1136ba..825af80d23 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -126,7 +126,6 @@ /* I2C */ #if defined(CONFIG_SYS_I2C_ZYNQ) # define CONFIG_SYS_I2C -# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000 #endif /* EEPROM */ diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index cf37f84e28..0ebb66b468 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -120,7 +120,6 @@ /* I2C */ #if defined(CONFIG_SYS_I2C_ZYNQ) # define CONFIG_SYS_I2C -# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000 #endif /* EEPROM */