diff options
author | Pali Rohár <pali@kernel.org> | 2022-09-08 16:06:51 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-09-13 09:04:22 +0200 |
commit | 2a0d9ae414b4b2b38f6ada2d7a7134d7f31cff41 (patch) | |
tree | c0122fd4ac54e1f2a6a5bd93f107c1b11d71c813 /arch/arm/mach-mvebu | |
parent | 117ef65502ccb5a5d1ee02595e94be9205b760aa (diff) |
arm: mvebu: Guard non-AXP code by checking for AXP
Commit c86d53fd88df ("arm: mvebu: Don't disable cache at startup on Armada
XP at all") introduced branch for non-AXP code which was guarded by A38X
condition. Fix this issue by checking for AXP platform, not by A38X.
Fixes: c86d53fd88df ("arm: mvebu: Don't disable cache at startup on Armada XP at all")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r-- | arch/arm/mach-mvebu/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c index 7b722ca8121..949bf21c9b8 100644 --- a/arch/arm/mach-mvebu/cpu.c +++ b/arch/arm/mach-mvebu/cpu.c @@ -448,7 +448,7 @@ int arch_cpu_init(void) struct pl310_regs *const pl310 = (struct pl310_regs *)CONFIG_SYS_PL310_BASE; - if (IS_ENABLED(CONFIG_ARMADA_38X)) { + if (!IS_ENABLED(CONFIG_ARMADA_XP)) { /* * To fully release / unlock this area from cache, we need * to flush all caches and disable the L2 cache. |