aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2009-06-01 22:49:25 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-06-01 23:12:57 -0400
commitb4bd9eb0d8f5c20f942ff037c8a7939f69cb188a (patch)
treea35037457635387e609e01ba2e556ed05745070e /arch
parentfab88d9fe98e9091aafeb9789fbf2e04fdace8ed (diff)
sh: sh7724: L2 cache initialization.
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7724.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c
index 191f0e2a7e08..000f3b82669b 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c
@@ -495,6 +495,15 @@ void __init plat_early_device_setup(void)
495 ARRAY_SIZE(sh7724_early_devices)); 495 ARRAY_SIZE(sh7724_early_devices));
496} 496}
497 497
498#define RAMCR_CACHE_L2FC 0x0002
499#define RAMCR_CACHE_L2E 0x0001
500#define L2_CACHE_ENABLE (RAMCR_CACHE_L2E|RAMCR_CACHE_L2FC)
501void __uses_jump_to_uncached l2_cache_init(void)
502{
503 /* Enable L2 cache */
504 ctrl_outl(L2_CACHE_ENABLE, RAMCR);
505}
506
498enum { 507enum {
499 UNUSED = 0, 508 UNUSED = 0,
500 509