summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-23 15:28:22 +0100
committerHans de Goede <hdegoede@redhat.com>2015-02-02 13:55:14 +0100
commitad40610b48bc3e248f5e79d94084427aa6a0b9e2 (patch)
tree30da058cd3064863d9414d53c1ffe1d3b0c84782
parent2af13d6b6265a6700c4f65597410b769895024bf (diff)
downloadblackbird-obmc-uboot-ad40610b48bc3e248f5e79d94084427aa6a0b9e2.tar.gz
blackbird-obmc-uboot-ad40610b48bc3e248f5e79d94084427aa6a0b9e2.zip
sunxi: Only enable i2c support in the SPL when needed
We do not need i2c support in the SPL when there is no PMIC (some sun4i boards), or when the PMIC is not using i2c such as on sun6i and sun8i. This reduces the SPL size from (e.g.) 21812 to 19260 bytes. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
-rw-r--r--include/configs/sunxi-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 4a5cab25d4..6cfd7e1489 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -181,7 +181,10 @@
#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00080000 /* 512 KiB */
/* I2C */
+#if defined CONFIG_AXP152_POWER || defined CONFIG_AXP209_POWER
#define CONFIG_SPL_I2C_SUPPORT
+#endif
+
#define CONFIG_SYS_I2C
#define CONFIG_SYS_I2C_MVTWSI
#define CONFIG_SYS_I2C_SPEED 400000
OpenPOWER on IntegriCloud