i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SLAVE
authorVipul Kumar <vipul.kumar@xilinx.com>
Fri, 16 Feb 2018 13:37:19 +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_SLAVE
and set it default to 0.

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 1c8b8f7..6200f1c 100644 (file)
@@ -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
index 52baa42..20ff113 100644 (file)
 #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 */
index 07b121d..cf37f84 100644 (file)
 #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 */