diff options
author | Magnus Damm <damm@opensource.se> | 2012-02-29 22:48:03 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-03-12 17:19:42 -0400 |
commit | 8bac13f591652d0c561f5788eaf0862f788a668f (patch) | |
tree | bcabed2cb84cc8e06c0f009354770ba6d647df03 /arch | |
parent | 3e353b875b2480e98acb9ed96a377025d0ed7b82 (diff) |
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 <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7779.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 4378b4dea1d..9bb133c2a93 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <asm/mach-types.h> | 34 | #include <asm/mach-types.h> |
35 | #include <asm/mach/arch.h> | 35 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/map.h> | 36 | #include <asm/mach/map.h> |
37 | #include <asm/hardware/cache-l2x0.h> | ||
37 | 38 | ||
38 | static struct map_desc r8a7779_io_desc[] __initdata = { | 39 | static struct map_desc r8a7779_io_desc[] __initdata = { |
39 | /* 2M entity map for 0xf0000000 (MPCORE) */ | 40 | /* 2M entity map for 0xf0000000 (MPCORE) */ |
@@ -242,6 +243,10 @@ static struct platform_device *r8a7779_late_devices[] __initdata = { | |||
242 | 243 | ||
243 | void __init r8a7779_add_standard_devices(void) | 244 | void __init r8a7779_add_standard_devices(void) |
244 | { | 245 | { |
246 | #ifdef CONFIG_CACHE_L2X0 | ||
247 | /* Early BRESP enable, Shared attribute override enable, 64K*16way */ | ||
248 | l2x0_init(__io(0xf0100000), 0x40470000, 0x82000fff); | ||
249 | #endif | ||
245 | r8a7779_pm_init(); | 250 | r8a7779_pm_init(); |
246 | 251 | ||
247 | r8a7779_init_pm_domain(&r8a7779_sh4a); | 252 | r8a7779_init_pm_domain(&r8a7779_sh4a); |