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 <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
master
Vipul Kumar 6 years ago committed by Michal Simek
parent e7affad190
commit ce3c9a59af
  1. 7
      drivers/i2c/Kconfig
  2. 1
      include/configs/xilinx_zynqmp.h
  3. 1
      include/configs/zynq-common.h

@ -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

@ -126,7 +126,6 @@
/* I2C */
#if defined(CONFIG_SYS_I2C_ZYNQ)
# define CONFIG_SYS_I2C
# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000
#endif
/* EEPROM */

@ -120,7 +120,6 @@
/* I2C */
#if defined(CONFIG_SYS_I2C_ZYNQ)
# define CONFIG_SYS_I2C
# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000
#endif
/* EEPROM */

Loading…
Cancel
Save