From: Icenowy Zheng Date: Thu, 13 Oct 2022 13:26:44 +0000 (+0800) Subject: sunxi: fix SUNIV build when enabling D-Cache X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9a916b07fed3fd801042f7425afd1ed02dd282ad;p=u-boot.git sunxi: fix SUNIV build when enabling D-Cache 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 Reviewed-by: Andre Przywara Signed-off-by: Andre Przywara --- 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 */