public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] sunxi: Only enable i2c support in the SPL when needed
@ 2015-01-23 14:50 Hans de Goede
  2015-01-23 15:40 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2015-01-23 14:50 UTC (permalink / raw)
  To: u-boot

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>
---
 include/configs/sunxi-common.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index ad8a6a3..3d69861 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -233,7 +233,10 @@
 #define CONFIG_SPL_STACK		LOW_LEVEL_SRAM_STACK
 
 /* 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
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] sunxi: Only enable i2c support in the SPL when needed
  2015-01-23 14:50 [U-Boot] [PATCH] sunxi: Only enable i2c support in the SPL when needed Hans de Goede
@ 2015-01-23 15:40 ` Ian Campbell
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2015-01-23 15:40 UTC (permalink / raw)
  To: u-boot

On Fri, 2015-01-23 at 15:50 +0100, Hans de Goede wrote:
> 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>

Eventually ought to be expressed via Kconfig, but for now:
Acked-by: Ian Campbell <ijc@hellion.org.uk>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-23 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-23 14:50 [U-Boot] [PATCH] sunxi: Only enable i2c support in the SPL when needed Hans de Goede
2015-01-23 15:40 ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox