]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mx7_common: Define CONFIG_SYS_MALLOC_LEN in the board file
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 26 Mar 2016 16:30:49 +0000 (13:30 -0300)
committerStefano Babic <sbabic@denx.de>
Sun, 3 Apr 2016 17:16:39 +0000 (19:16 +0200)
Having CONFIG_SYS_MALLOC_LEN in mx7_common.h is not a good idea,
because the malloc() pool size is board dependent.

For example: if a certain board has support for splashscreen or DFU,
it may be necessary to adjust CONFIG_SYS_MALLOC_LEN to a larger value.

So define CONFIG_SYS_MALLOC_LEN in each board config file.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
include/configs/mx7_common.h
include/configs/mx7dsabresd.h
include/configs/warp7.h

index 5034464ce887e5e6cf77abeb9e207cf705caa5b9..9bd61145d89ae409d5298ea701478b4034b14af5 100644 (file)
@@ -28,9 +28,6 @@
 /* Enable iomux-lpsr support */
 #define CONFIG_IOMUX_LPSR
 
-/* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN           (32 * SZ_1M)
-
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
index 988d363c41bd9b9df163ad2e5dbdb4eb49381703..25ed29de9090490b8222f913b2e936b5d86b1a27 100644 (file)
@@ -16,6 +16,9 @@
 
 #define CONFIG_MXC_UART_BASE            UART1_IPS_BASE_ADDR
 
+/* Size of malloc() pool */
+#define CONFIG_SYS_MALLOC_LEN          (32 * SZ_1M)
+
 #define CONFIG_BOARD_EARLY_INIT_F
 #define CONFIG_BOARD_LATE_INIT
 
index 5ea551224722871e570c0492b1abd49ad5d7123f..d1404b2555be72a20a4bc36fd829b65c40b6461f 100644 (file)
 
 #define CONFIG_MXC_UART_BASE           UART1_IPS_BASE_ADDR
 
+
+/* Size of malloc() pool */
+#define CONFIG_SYS_MALLOC_LEN          (32 * SZ_1M)
+
 #define CONFIG_BOARD_EARLY_INIT_F
 
 /* MMC Config*/