u-boot/arch
Pali Rohár 117ef65502 arm: mvebu: Fix function enable_caches
Commit 3308933d2f ("arm: mvebu: Avoid reading MVEBU_REG_PCIE_DEVID
register too many times") broke support for caches on all Armada SoCs.

Before that commit there was code:

    if (mvebu_soc_family() != MVEBU_SOC_A375) {
        dcache_enable();
    }

And after that commit there is code:

    if (IS_ENABLED(CONFIG_ARMADA_375)) {
        dcache_enable();
    }

Comment above this code says that d-cache should be disabled on Armada 375.
But new code inverted logic and broke Armada 375 and slowed down all other
Armada SoCs (including A38x).

Fix this issue by changing logic to:

    if (!IS_ENABLED(CONFIG_ARMADA_375)) {
        dcache_enable();
    }

Which matches behavior prior that commit.

Fixes: 3308933d2f ("arm: mvebu: Avoid reading MVEBU_REG_PCIE_DEVID register too many times")
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>
2022-09-13 09:04:22 +02:00
..
arc arc: Move SYS_LITTLE_ENDIAN / SYS_BIG_ENDIAN selection to Kconfig 2022-08-12 16:10:49 -04:00
arm arm: mvebu: Fix function enable_caches 2022-09-13 09:04:22 +02:00
m68k Remove CONFIG_SYS_FSL_SCFG_IODSECR1_ADDR et al 2022-08-12 16:10:49 -04:00
microblaze zynqmp: Run board_get_usable_ram_top() only on main U-Boot 2022-07-26 08:23:54 +02:00
mips mips: mtmips: add two reference boards for mt7621 2022-07-13 23:03:37 +02:00
nios2 linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
powerpc board: freescale: p1_p2_rdb_pc: Turn off watchdog before reset 2022-09-06 14:08:35 +08:00
riscv riscv: dts: sifive: Synchronize FU740 and Unmatched DT 2022-09-06 13:00:41 +08:00
sandbox bootstd: Add vbe bootmeth into sandbox 2022-08-12 08:17:11 -04:00
sh sh: Remove unused code in arch/sh/lib/bootm.c 2022-08-04 16:18:47 -04:00
x86 video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
xtensa xtensa: Switch to using CONFIG_XTENSA for building device trees 2022-06-28 17:03:31 -04:00
.gitignore
Kconfig arc: Move SYS_LITTLE_ENDIAN / SYS_BIG_ENDIAN selection to Kconfig 2022-08-12 16:10:49 -04:00
Kconfig.nxp Convert CONFIG_SYS_FSL_NUM_CC_PLLS to Kconfig 2022-08-12 16:10:49 -04:00
u-boot-elf.lds