Convert CONFIG_SYS_SPL_MALLOC_SIZE et al to Kconfig
[platform/kernel/u-boot.git] / common / spl / Kconfig
index adcd7ca..10d9cdd 100644 (file)
@@ -485,6 +485,23 @@ config SPL_SEPARATE_BSS
          location is used. Normally we put the device tree at the end of BSS
          but with this option enabled, it goes at _image_binary_end.
 
+config SYS_SPL_MALLOC
+       bool "Enable malloc pool in SPL"
+       depends on SPL_FRAMEWORK
+
+config HAS_CUSTOM_SPL_MALLOC_START
+       bool "For the SPL malloc pool, define a custom starting address"
+       depends on SYS_SPL_MALLOC
+
+config CUSTOM_SYS_SPL_MALLOC_ADDR
+       hex "SPL malloc addr"
+       depends on HAS_CUSTOM_SPL_MALLOC_START
+
+config SYS_SPL_MALLOC_SIZE
+       hex "Size of the SPL malloc pool"
+       depends on SYS_SPL_MALLOC
+       default 0x100000
+
 config SPL_READ_ONLY
        bool
        depends on SPL_OF_PLATDATA