diff options
author | Chris Packham <judge.packham@gmail.com> | 2018-05-30 20:14:34 +1200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2018-06-05 07:29:09 +0200 |
commit | 2c3c6bc6fbcb1cb2900064e512eed757ec961dbe (patch) | |
tree | ecb13c29cd2ca44f293856c47ce13aaf5dc578db | |
parent | 134a6b6884c1faa893256ac5b02a301d0be863c8 (diff) | |
download | u-boot-2c3c6bc6fbcb1cb2900064e512eed757ec961dbe.tar.gz u-boot-2c3c6bc6fbcb1cb2900064e512eed757ec961dbe.tar.bz2 u-boot-2c3c6bc6fbcb1cb2900064e512eed757ec961dbe.zip |
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 <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | arch/arm/mach-kirkwood/include/mach/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |