As suggested by Tom, disable setting ICACHE and DCACHE off for ARM64
platforms. It is also noticed that with CACHEs off u-boot on ARM64 (ARMv8)
boots slower.

If some platforms still wish to turn off ICACHE / DCACHE during the
SPL stage, support that configuration as well.

While at it, also fix an compilation issue for stm32mp when 
SYS_DCACHE_OFF and/or SYS_DCACHE_SYS are enabled.

Cc: Patrice Chotard <patrice.chot...@foss.st.com>
Cc: Patrick Delaunay <patrick.delau...@foss.st.com>
Cc: Tom Rini <tr...@konsulko.com>
Cc: Simon Glass <s...@chromium.org>
Cc: Peng Fan <peng....@nxp.com>

Bhupesh Sharma (2):
  arm: stm32mp: Really fix compilation issue when SYS_DCACHE_OFF and/or
    SYS_DCACHE_SYS are enabled
  armv8: Disable SYS_DCACHE_OFF & SYS_ICACHE_OFF for ARM64

 arch/arm/Kconfig            | 2 ++
 arch/arm/cpu/armv8/Makefile | 4 ++--
 arch/arm/mach-stm32mp/cpu.c | 4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)

-- 
2.38.1

Reply via email to