[U-Boot,2/2] rockchip: imply instead of selecting SPL_SYS_MALLOC_SIMPLE
diff mbox series

Message ID c7cc8697a86730441031677dabab9e2cc4a71346.1573403130.git.tommyhebb@gmail.com
State Superseded
Headers show
Series
  • [U-Boot,1/2] rockchip: allow DRAM init in SPL and fix ordering
Related show

Commit Message

Thomas Hebb Nov. 10, 2019, 4:25 p.m. UTC
We shouldn't force which allocator the SPL uses, since there's no
platform requirement for one over the other: in fact, we currently allow
selection of the TPL allocator but not the SPL one!

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
---
 arch/arm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kever Yang Nov. 14, 2019, 9:27 a.m. UTC | #1
On 2019/11/11 上午12:25, Thomas Hebb wrote:
> We shouldn't force which allocator the SPL uses, since there's no
> platform requirement for one over the other: in fact, we currently allow
> selection of the TPL allocator but not the SPL one!
>
> Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>


Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,

- Kever

> ---
>   arch/arm/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 7b80630aa1..f96841c777 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1604,7 +1604,6 @@ config ARCH_ROCKCHIP
>   	select OF_CONTROL
>   	select SPI
>   	select SPL_DM if SPL
> -	select SPL_SYS_MALLOC_SIMPLE if SPL
>   	select SYS_MALLOC_F
>   	select SYS_THUMB_BUILD if !ARM64
>   	imply ADC
> @@ -1614,6 +1613,7 @@ config ARCH_ROCKCHIP
>   	imply FAT_WRITE
>   	imply SARADC_ROCKCHIP
>   	imply SPL_SYSRESET
> +	imply SPL_SYS_MALLOC_SIMPLE
>   	imply SYS_NS16550
>   	imply TPL_SYSRESET
>   	imply USB_FUNCTION_FASTBOOT

Patch
diff mbox series

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 7b80630aa1..f96841c777 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1604,7 +1604,6 @@  config ARCH_ROCKCHIP
 	select OF_CONTROL
 	select SPI
 	select SPL_DM if SPL
-	select SPL_SYS_MALLOC_SIMPLE if SPL
 	select SYS_MALLOC_F
 	select SYS_THUMB_BUILD if !ARM64
 	imply ADC
@@ -1614,6 +1613,7 @@  config ARCH_ROCKCHIP
 	imply FAT_WRITE
 	imply SARADC_ROCKCHIP
 	imply SPL_SYSRESET
+	imply SPL_SYS_MALLOC_SIMPLE
 	imply SYS_NS16550
 	imply TPL_SYSRESET
 	imply USB_FUNCTION_FASTBOOT