diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2015-10-28 05:49:08 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-11-04 13:49:51 (GMT) |
commit | 1c3f2c7270af0f4d805bba84288d7dd2c1853ff3 (patch) | |
tree | d834e458842917c6a8467aa55796e2fdbd5e558b /include/configs | |
parent | 83bf005710a1e01341de5e2f44a3ce082717e313 (diff) | |
download | u-boot-fsl-qoriq-1c3f2c7270af0f4d805bba84288d7dd2c1853ff3.tar.xz |
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: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/zynq-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index ca5ef04..2d98cd2 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -179,7 +179,10 @@ # define CONFIG_CMD_FS_GENERIC #endif +#if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1) #define CONFIG_SYS_I2C_ZYNQ +#endif + /* I2C */ #if defined(CONFIG_SYS_I2C_ZYNQ) # define CONFIG_CMD_I2C |