[U-Boot] [UBOOT PATCH 4/6] i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SPEED

Vipul Kumar vipul.kumar at xilinx.com
Fri Feb 16 13:37:20 UTC 2018


This patch added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SPEED
and set it to default value 100000.

Signed-off-by: Vipul Kumar <vipulk at xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur at 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(-)

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index f4871d8..dc2ffd1 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -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
diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h
index c81eb28..88ecf38 100644
--- a/include/configs/xilinx_zynqmp.h
+++ b/include/configs/xilinx_zynqmp.h
@@ -141,7 +141,6 @@
 /* I2C */
 #if defined(CONFIG_SYS_I2C_ZYNQ)
 # define CONFIG_SYS_I2C
-# define CONFIG_SYS_I2C_ZYNQ_SPEED             100000
 #endif

 /* EEPROM */
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index c879bfa..4452919 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -123,7 +123,6 @@
 /* I2C */
 #if defined(CONFIG_SYS_I2C_ZYNQ)
 # define CONFIG_SYS_I2C
-# define CONFIG_SYS_I2C_ZYNQ_SPEED             100000
 #endif

 /* EEPROM */
--
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.


More information about the U-Boot mailing list