diff mbox series

[U-Boot,3/6] i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SLAVE

Message ID 1518788242-20017-4-git-send-email-vipulk@xilinx.com
State Changes Requested
Delegated to: Michal Simek
Headers show
Series i2c: Moved i2c u-boot headers to Kconfig | expand

Commit Message

Vipul Kumar Feb. 16, 2018, 1:37 p.m. UTC
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>
---
 drivers/i2c/Kconfig             | 7 +++++++
 include/configs/xilinx_zynqmp.h | 1 -
 include/configs/zynq-common.h   | 1 -
 3 files changed, 7 insertions(+), 2 deletions(-)

--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
diff mbox series

Patch

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 62d134c..f4871d8 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -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
diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h
index 5533831..c81eb28 100644
--- a/include/configs/xilinx_zynqmp.h
+++ b/include/configs/xilinx_zynqmp.h
@@ -142,7 +142,6 @@ 
 #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 */
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index b47a9ad..c879bfa 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -124,7 +124,6 @@ 
 #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 */