i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SPEED
authorVipul Kumar <vipul.kumar@xilinx.com>
Fri, 16 Feb 2018 13:37:20 +0000 (19:07 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 1 Mar 2018 07:03:01 +0000 (08:03 +0100)
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>
drivers/i2c/Kconfig
include/configs/xilinx_zynqmp.h
include/configs/zynq-common.h

index 6200f1c..6843131 100644 (file)
@@ -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
index 20ff113..825af80 100644 (file)
 /* I2C */
 #if defined(CONFIG_SYS_I2C_ZYNQ)
 # define CONFIG_SYS_I2C
-# define CONFIG_SYS_I2C_ZYNQ_SPEED             100000
 #endif
 
 /* EEPROM */
index cf37f84..0ebb66b 100644 (file)
 /* I2C */
 #if defined(CONFIG_SYS_I2C_ZYNQ)
 # define CONFIG_SYS_I2C
-# define CONFIG_SYS_I2C_ZYNQ_SPEED             100000
 #endif
 
 /* EEPROM */