]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: turris_omnia: Move SPL's SYS_MALLOC_SIMPLE to Kconfig
authorMarek Behún <marek.behun@nic.cz>
Sat, 9 Oct 2021 17:33:45 +0000 (19:33 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Oct 2021 05:39:05 +0000 (07:39 +0200)
Instead of declaring CONFIG_SYS_MALLOC_SIMPLE dependant on
CONFIG_SPL_BUILD in board config header, select
CONFIG_SPL_SYS_MALLOC_SIMPLE in Kconfig.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/Kconfig
include/configs/turris_omnia.h

index 54dff9986b412673bda87047555c0050c7f8ea8f..8365305733c7c538998442b7e2cc3aba38845619 100644 (file)
@@ -128,6 +128,7 @@ config TARGET_TURRIS_OMNIA
        select I2C_MUX
        select I2C_MUX_PCA954x
        select SPL_I2C_MUX
+       select SPL_SYS_MALLOC_SIMPLE
        select SYS_I2C_MVTWSI
        select ATSHA204A
 
index 8d7d5c2bfc32040dcb6b7a9314d318d9b9906a3f..273ff85ff3dd1ebd020b88a2af0e3cd7f9910c25 100644 (file)
 #define CONFIG_SPL_BSS_START_ADDR      (0x40000000 + CONFIG_SPL_SIZE)
 #define CONFIG_SPL_BSS_MAX_SIZE                (16 << 10)
 
-#ifdef CONFIG_SPL_BUILD
-#define CONFIG_SYS_MALLOC_SIMPLE
-#endif
-
 #define CONFIG_SPL_STACK               (0x40000000 + ((192 - 16) << 10))
 #define CONFIG_SPL_BOOTROM_SAVE                (CONFIG_SPL_STACK + 4)
 #define CONFIG_SPL_DRIVERS_MISC