diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-06-01 22:49:28 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-01 23:12:59 -0400 |
commit | 138f025267dcc07d5e7d0bb1f20e9a6b5f2fdcf7 (patch) | |
tree | 197c46d9d22635e2208c9050de63bc788ec74042 /arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |
parent | b4bd9eb0d8f5c20f942ff037c8a7939f69cb188a (diff) |
sh: sh7723: 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/sh/kernel/cpu/sh4a/setup-sh7723.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index 04cb4aae7ea7..d8f4a13aeff9 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
15 | #include <linux/uio_driver.h> | 15 | #include <linux/uio_driver.h> |
16 | #include <linux/sh_timer.h> | 16 | #include <linux/sh_timer.h> |
17 | #include <linux/io.h> | ||
17 | #include <asm/clock.h> | 18 | #include <asm/clock.h> |
18 | #include <asm/mmzone.h> | 19 | #include <asm/mmzone.h> |
19 | 20 | ||
@@ -485,6 +486,15 @@ void __init plat_early_device_setup(void) | |||
485 | ARRAY_SIZE(sh7723_early_devices)); | 486 | ARRAY_SIZE(sh7723_early_devices)); |
486 | } | 487 | } |
487 | 488 | ||
489 | #define RAMCR_CACHE_L2FC 0x0002 | ||
490 | #define RAMCR_CACHE_L2E 0x0001 | ||
491 | #define L2_CACHE_ENABLE (RAMCR_CACHE_L2E|RAMCR_CACHE_L2FC) | ||
492 | void __uses_jump_to_uncached l2_cache_init(void) | ||
493 | { | ||
494 | /* Enable L2 cache */ | ||
495 | ctrl_outl(L2_CACHE_ENABLE, RAMCR); | ||
496 | } | ||
497 | |||
488 | enum { | 498 | enum { |
489 | UNUSED=0, | 499 | UNUSED=0, |
490 | 500 | ||