mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-26 16:41:42 +00:00
i2c: Added Kconfig support for CONFIG_SYS_I2C_ZYNQ_SLAVE
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>
This commit is contained in:
parent
fc3a6f1c53
commit
e7affad190
3 changed files with 7 additions and 2 deletions
|
@ -274,6 +274,13 @@ config SYS_I2C_ZYNQ
|
||||||
help
|
help
|
||||||
Support for Xilinx I2C controller.
|
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
|
config SYS_I2C_IHS
|
||||||
bool "gdsys IHS I2C driver"
|
bool "gdsys IHS I2C driver"
|
||||||
depends on DM_I2C
|
depends on DM_I2C
|
||||||
|
|
|
@ -127,7 +127,6 @@
|
||||||
#if defined(CONFIG_SYS_I2C_ZYNQ)
|
#if defined(CONFIG_SYS_I2C_ZYNQ)
|
||||||
# define CONFIG_SYS_I2C
|
# define CONFIG_SYS_I2C
|
||||||
# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000
|
# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000
|
||||||
# define CONFIG_SYS_I2C_ZYNQ_SLAVE 0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* EEPROM */
|
/* EEPROM */
|
||||||
|
|
|
@ -121,7 +121,6 @@
|
||||||
#if defined(CONFIG_SYS_I2C_ZYNQ)
|
#if defined(CONFIG_SYS_I2C_ZYNQ)
|
||||||
# define CONFIG_SYS_I2C
|
# define CONFIG_SYS_I2C
|
||||||
# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000
|
# define CONFIG_SYS_I2C_ZYNQ_SPEED 100000
|
||||||
# define CONFIG_SYS_I2C_ZYNQ_SLAVE 0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* EEPROM */
|
/* EEPROM */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue