From: Chris Packham Date: Wed, 30 May 2018 08:14:34 +0000 (+1200) Subject: ARM: kirkwood: remove automatic I2C config if DM_I2C is enabled X-Git-Tag: v2018.07-rc2~99^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c3c6bc6fbcb1cb2900064e512eed757ec961dbe;p=u-boot ARM: kirkwood: remove automatic I2C config if DM_I2C is enabled The mach/config.h file would helpfully define CONFIG_SYS_I2C and CONFIG_SYS_I2C_MVTWSI if CONFIG_CMD_I2C was defined by the board. This conflicts with the way DM_I2C works. As a transitional measure don't automatically define these if CONFIG_DM_I2C is defined. It should be possible to remove this once all kirkwood boards are migrated to DM. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese Signed-off-by: Stefan Roese --- diff --git a/arch/arm/mach-kirkwood/include/mach/config.h b/arch/arm/mach-kirkwood/include/mach/config.h index d2dc1c2e68..f2b2de47d0 100644 --- a/arch/arm/mach-kirkwood/include/mach/config.h +++ b/arch/arm/mach-kirkwood/include/mach/config.h @@ -115,7 +115,7 @@ /* * I2C related stuff */ -#ifdef CONFIG_CMD_I2C +#if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C) #ifndef CONFIG_SYS_I2C_SOFT #define CONFIG_SYS_I2C #define CONFIG_SYS_I2C_MVTWSI