From: Magnus Damm Date: Thu, 1 Mar 2012 03:48:03 +0000 (+0900) Subject: ARM: mach-shmobile: r8a7779 L2 cache support X-Git-Tag: v3.4-rc1~89^2~2^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8bac13f591652d0c561f5788eaf0862f788a668f;p=karo-tx-linux.git ARM: mach-shmobile: r8a7779 L2 cache support L2 Cache support for r8a7779. Settings taken from out-of-tree kernel patches by Kouei Abe. Signed-off-by: Magnus Damm Signed-off-by: Rafael J. Wysocki --- diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 4378b4dea1dc..9bb133c2a932 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c @@ -34,6 +34,7 @@ #include #include #include +#include static struct map_desc r8a7779_io_desc[] __initdata = { /* 2M entity map for 0xf0000000 (MPCORE) */ @@ -242,6 +243,10 @@ static struct platform_device *r8a7779_late_devices[] __initdata = { void __init r8a7779_add_standard_devices(void) { +#ifdef CONFIG_CACHE_L2X0 + /* Early BRESP enable, Shared attribute override enable, 64K*16way */ + l2x0_init(__io(0xf0100000), 0x40470000, 0x82000fff); +#endif r8a7779_pm_init(); r8a7779_init_pm_domain(&r8a7779_sh4a);