sunxi: fix SUNIV build when enabling D-Cache
authorIcenowy Zheng <uwu@icenowy.me>
Thu, 13 Oct 2022 13:26:44 +0000 (21:26 +0800)
committerAndre Przywara <andre.przywara@arm.com>
Wed, 19 Oct 2022 13:15:02 +0000 (14:15 +0100)
commit9a916b07fed3fd801042f7425afd1ed02dd282ad
treeb877af973e03330f0bf811085848ebd47e0f68c9
parenta514577ce2dc1a5fdb1c5d1515e113d3b2cd24f9
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 <uwu@icenowy.me>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/board.c