diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-09-13 12:31:24 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-10-20 18:40:27 +0200 |
commit | 6d0bdfdde58b4df825b67dc58b3a948deea268e0 (patch) | |
tree | c2df1e931bde75ca5f9714e6d3396a9c1256f1d5 /arch/arm | |
parent | ff42d107bfcf2205824d3809ccbc6a94d7646309 (diff) | |
download | u-boot-imx-6d0bdfdde58b4df825b67dc58b3a948deea268e0.zip u-boot-imx-6d0bdfdde58b4df825b67dc58b3a948deea268e0.tar.gz u-boot-imx-6d0bdfdde58b4df825b67dc58b3a948deea268e0.tar.bz2 |
sunxi: Switch to using malloc_simple for the spl
common/dlmalloc.c is quite big, both in .text and .data usage. E.g. for a
Mele_M9 sun6i board build this reduces .text from 0x4214 to 0x3b94 bytes,
and .data from 0x54c to 0x144 bytes.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/cpu/armv7/sunxi/board.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 1a7e916..9bc5946 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -523,6 +523,7 @@ config ARCH_SUNXI select OF_CONTROL select OF_SEPARATE select SPL_STACK_R if !MACH_SUN9I + select SPL_SYS_MALLOC_SIMPLE if !MACH_SUN9I select USB select USB_STORAGE select USB_KEYBOARD diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c index d11365b..1d79ba11 100644 --- a/arch/arm/cpu/armv7/sunxi/board.c +++ b/arch/arm/cpu/armv7/sunxi/board.c @@ -192,6 +192,7 @@ u32 spl_boot_mode(void) void board_init_f(ulong dummy) { + spl_init(); preloader_console_init(); #ifdef CONFIG_SPL_I2C_SUPPORT |