Commit 0f2fa40e authored by Maxime Coquelin's avatar Maxime Coquelin Committed by Linus Walleij

ARM: mach-ux500: enable 128KB way L2 cache on DB8540

DB8540 L2 was configured with 64KB way size, but it has 128KB as AP9540.

Fix this by modifying ux500_l2x0_init() to use 128KB way size for all
cpus in the x540 family.
Signed-off-by: default avatarMaxime Coquelin <maxime.coquelin@stericsson.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarFabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent cca438b5
...@@ -47,8 +47,8 @@ static int __init ux500_l2x0_init(void) ...@@ -47,8 +47,8 @@ static int __init ux500_l2x0_init(void)
/* Unlock before init */ /* Unlock before init */
ux500_l2x0_unlock(); ux500_l2x0_unlock();
/* DB9540's L2 has 128KB way size */ /* DBx540's L2 has 128KB way size */
if (cpu_is_u9540()) if (cpu_is_ux540_family())
/* 128KB way size */ /* 128KB way size */
aux_val |= (0x4 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT); aux_val |= (0x4 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment