]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 1c8b8f7b3e1f77dd652e745920846eda95c38c79..6200f1c1e1012df92ac9e83e78ce9bd7be84063f 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 52baa42a2f11aed8861053c63898ca04e557888f..20ff1136bab3da9bf2e1b68956916520eaff278c 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 07b121d7d67b6eb23d37e857427f6d6e0313a825..cf37f84e283b8f43481ca77d76968203855d638f 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 */