summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-04-23 17:47:22 +0200
committerHans de Goede <hdegoede@redhat.com>2015-05-04 16:51:52 +0200
commit8b2db32a9f368672e51e90e46f5cba0dae8cbd52 (patch)
tree599a14c7e5f8257ab7d0047ed8e09821a85b852a /include/configs
parent8760d755cb433de2ea41420d00d2bbb3a34a3f7c (diff)
downloadu-boot-imx-8b2db32a9f368672e51e90e46f5cba0dae8cbd52.zip
u-boot-imx-8b2db32a9f368672e51e90e46f5cba0dae8cbd52.tar.gz
u-boot-imx-8b2db32a9f368672e51e90e46f5cba0dae8cbd52.tar.bz2
sunxi: Do not build i2c support when we've no i2c controllers
This fixes the following errors being printed during boot: Error, wrong i2c adapter 0 max 0 possible Error, wrong i2c adapter 0 max 0 possible Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/sunxi-common.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 365d9a5..086105e 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -195,14 +195,15 @@
#define CONFIG_SPL_I2C_SUPPORT
#endif
-#define CONFIG_SYS_I2C
#if defined CONFIG_I2C0_ENABLE || defined CONFIG_I2C1_ENABLE || \
defined CONFIG_I2C2_ENABLE || defined CONFIG_I2C3_ENABLE || \
defined CONFIG_I2C4_ENABLE
+#define CONFIG_SYS_I2C
#define CONFIG_SYS_I2C_MVTWSI
-#endif
#define CONFIG_SYS_I2C_SPEED 400000
#define CONFIG_SYS_I2C_SLAVE 0x7f
+#define CONFIG_CMD_I2C
+#endif
#if defined CONFIG_VIDEO_LCD_PANEL_I2C && !(defined CONFIG_SPL_BUILD)
#define CONFIG_SYS_I2C_SOFT
@@ -222,8 +223,6 @@ extern int soft_i2c_gpio_scl;
#define CONFIG_VIDEO_LCD_I2C_BUS -1 /* NA, but necessary to compile */
#endif
-#define CONFIG_CMD_I2C
-
/* PMU */
#if defined CONFIG_AXP152_POWER || defined CONFIG_AXP209_POWER || defined CONFIG_AXP221_POWER
#define CONFIG_SPL_POWER_SUPPORT