From: Siva Durga Prasad Paladugu Date: Wed, 28 Oct 2015 05:49:08 +0000 (+0530) Subject: zynq-common: Define CONFIG_SYS_I2C_ZYNQ based on board config X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4a9b21d8c934f7f3807510d090620b7b6e898e2;p=thirdparty%2Fu-boot.git 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 Signed-off-by: Michal Simek --- diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index 91a25b49a94..d8b22e2cf3c 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -202,7 +202,10 @@ # define CONFIG_MTD_DEVICE #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