diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 05:27:43 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 05:27:43 -0400 |
commit | 72c35543f8cf1316773ffbd9619575bb84ac44fb (patch) | |
tree | 5dc8ba51079cbc65be0ee0e881da03e6ac0b0b5b /include/asm-sh | |
parent | 9d549a7d8ef71f684a35cf1e438543957cf81d12 (diff) |
sh: Support for L2 cache on newer SH-4A CPUs.
This implements preliminary support for the L2 caches found
on newer SH-4A CPUs.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r-- | include/asm-sh/cpu-features.h | 1 | ||||
-rw-r--r-- | include/asm-sh/processor.h | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/asm-sh/cpu-features.h b/include/asm-sh/cpu-features.h index e1260aae3ee3..4bccd7c032f9 100644 --- a/include/asm-sh/cpu-features.h +++ b/include/asm-sh/cpu-features.h | |||
@@ -19,5 +19,6 @@ | |||
19 | #define CPU_HAS_PERF_COUNTER 0x0010 /* Hardware performance counters */ | 19 | #define CPU_HAS_PERF_COUNTER 0x0010 /* Hardware performance counters */ |
20 | #define CPU_HAS_PTEA 0x0020 /* PTEA register */ | 20 | #define CPU_HAS_PTEA 0x0020 /* PTEA register */ |
21 | #define CPU_HAS_LLSC 0x0040 /* movli.l/movco.l */ | 21 | #define CPU_HAS_LLSC 0x0040 /* movli.l/movco.l */ |
22 | #define CPU_HAS_L2_CACHE 0x0080 /* Secondary cache / URAM */ | ||
22 | 23 | ||
23 | #endif /* __ASM_SH_CPU_FEATURES_H */ | 24 | #endif /* __ASM_SH_CPU_FEATURES_H */ |
diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h index bdd472705546..b7cba4e91a72 100644 --- a/include/asm-sh/processor.h +++ b/include/asm-sh/processor.h | |||
@@ -54,14 +54,15 @@ enum cpu_type { | |||
54 | }; | 54 | }; |
55 | 55 | ||
56 | struct sh_cpuinfo { | 56 | struct sh_cpuinfo { |
57 | enum cpu_type type; | 57 | unsigned int type; |
58 | unsigned long loops_per_jiffy; | 58 | unsigned long loops_per_jiffy; |
59 | 59 | ||
60 | struct cache_info icache; | 60 | struct cache_info icache; /* Primary I-cache */ |
61 | struct cache_info dcache; | 61 | struct cache_info dcache; /* Primary D-cache */ |
62 | struct cache_info scache; /* Secondary cache */ | ||
62 | 63 | ||
63 | unsigned long flags; | 64 | unsigned long flags; |
64 | }; | 65 | } __attribute__ ((aligned(SMP_CACHE_BYTES))); |
65 | 66 | ||
66 | extern struct sh_cpuinfo boot_cpu_data; | 67 | extern struct sh_cpuinfo boot_cpu_data; |
67 | 68 | ||