[PATCH 1/2] sunxi: fix SUNIV build when enabling D-Cache

Andre Przywara andre.przywara at arm.com
Mon Oct 17 11:26:12 CEST 2022


On 13/10/2022 14:26, Icenowy Zheng wrote:
> The enable_caches function in architecture-specific board code is only
> necessary for V7A CPUs, code for both V8A and ARM926 have already
> declared this function.
> 
> Only provide our implementation of enable_caches() for V7A CPUs.
> 
> Signed-off-by: Icenowy Zheng <uwu at icenowy.me>

Reviewed-by: Andre Przywara <andre.przywara at arm.com>

Merging into sunxi/master.

Cheers,
Andre

> ---
>   arch/arm/mach-sunxi/board.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c
> index 62bb40b8c8..60ccf909db 100644
> --- a/arch/arm/mach-sunxi/board.c
> +++ b/arch/arm/mach-sunxi/board.c
> @@ -488,7 +488,7 @@ void reset_cpu(void)
>   }
>   #endif
>   
> -#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) && !defined(CONFIG_ARM64)
> +#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) && defined(CONFIG_CPU_V7A)
>   void enable_caches(void)
>   {
>   	/* Enable D-cache. I-cache is already enabled in start.S */



More information about the U-Boot mailing list