Skip to contentSkip to conversation

ARM: mach-shmobile: r8a7779 L2 cache support

PATCH Applied Magnus Damm 2 participants 2 messages Mar 1, 2012 – Mar 7, 2012

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/1 ARM: mach-shmobile: r8a7779 L2 cache support

From: Magnus Damm <[email protected]>

L2 Cache support for r8a7779. Settings taken from
out-of-tree kernel patches by Kouei Abe.

---

 arch/arm/mach-shmobile/setup-r8a7779.c |    5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach-shmobile/setup-r8a7779.c +5 -0
@@ -34,6 +34,7 @@
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
+#include <asm/hardware/cache-l2x0.h>
 
 static struct map_desc r8a7779_io_desc[] __initdata = {
 	/* 2M entity map for 0xf0000000 (MPCORE) */
@@ -242,6 +243,10 @@ static struct platform_device *r8a7779_l
 
 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);
#1 lore raw
Quoted 6 lines · Magnus Damm

From: Magnus Damm <[email protected]>

L2 Cache support for r8a7779. Settings taken from
out-of-tree kernel patches by Kouei Abe.

Applied.

Thanks,
Rafael

Quoted 28 lines

---

 arch/arm/mach-shmobile/setup-r8a7779.c |    5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach-shmobile/setup-r8a7779.c +5 -0
@@ -34,6 +34,7 @@
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
+#include <asm/hardware/cache-l2x0.h>
 
 static struct map_desc r8a7779_io_desc[] __initdata = {
 	/* 2M entity map for 0xf0000000 (MPCORE) */
@@ -242,6 +243,10 @@ static struct platform_device *r8a7779_l
 
 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);