mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
arm: mvebu: Fix function enable_caches
Commit3308933d2f
("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>
This commit is contained in:
parent
b120519d76
commit
117ef65502
1 changed files with 1 additions and 1 deletions
|
@ -663,7 +663,7 @@ void enable_caches(void)
|
|||
* ethernet driver (mvpp2). So lets keep the d-cache disabled
|
||||
* until this is solved.
|
||||
*/
|
||||
if (IS_ENABLED(CONFIG_ARMADA_375)) {
|
||||
if (!IS_ENABLED(CONFIG_ARMADA_375)) {
|
||||
/* Enable D-cache. I-cache is already enabled in start.S */
|
||||
dcache_enable();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue