ARM: mach-ux500: enable 128KB way L2 cache on DB8540
authorMaxime Coquelin <maxime.coquelin@stericsson.com>
Wed, 23 Jan 2013 10:27:58 +0000 (11:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 Mar 2013 12:49:58 +0000 (13:49 +0100)
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: Maxime Coquelin <maxime.coquelin@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/cache-l2x0.c

index 1c1609da76cec13dd0032d9e123519ba83f9ba75..f815efe54c7356a4bf68dd388a19fb1824b6b22b 100644 (file)
@@ -47,8 +47,8 @@ static int __init ux500_l2x0_init(void)
        /* Unlock before init */
        ux500_l2x0_unlock();
 
-       /* DB9540's L2 has 128KB way size */
-       if (cpu_is_u9540())
+       /* DBx540's L2 has 128KB way size */
+       if (cpu_is_ux540_family())
                /* 128KB way size */
                aux_val |= (0x4 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT);
        else