提交 1c3f2c72 编写于 作者: S Siva Durga Prasad Paladugu 提交者: Michal Simek

zynq-common: Define CONFIG_SYS_I2C_ZYNQ based on board config

Enable CONFIG_SYS_I2C_ZYNQ only if it has either I2C0 or I2C1
enabled in a board config.This fixes the issue of i2c error
during board init if board specific doesnt have either I2C0
or I2C1.
Signed-off-by: NSiva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
上级 83bf0057
...@@ -179,7 +179,10 @@ ...@@ -179,7 +179,10 @@
# define CONFIG_CMD_FS_GENERIC # define CONFIG_CMD_FS_GENERIC
#endif #endif
#if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1)
#define CONFIG_SYS_I2C_ZYNQ #define CONFIG_SYS_I2C_ZYNQ
#endif
/* I2C */ /* I2C */
#if defined(CONFIG_SYS_I2C_ZYNQ) #if defined(CONFIG_SYS_I2C_ZYNQ)
# define CONFIG_CMD_I2C # define CONFIG_CMD_I2C
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册