diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 01:11:33 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 01:11:33 -0400 |
commit | 73388cc7c648861742e584a97fbffed16afc7dc3 (patch) | |
tree | 557a675be8c5ecf8d48e430623f918d14802bc6e | |
parent | b638d0b921dc95229af0dfd09cd24850336a2f75 (diff) |
sh: Refactor PRR masking to catch newer SH7760 cuts.
Newer SH7760 cuts have a range of acceptable PRR values..
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/cpu/sh4/probe.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c index 1208da8fe5d..89986e70d04 100644 --- a/arch/sh/kernel/cpu/sh4/probe.c +++ b/arch/sh/kernel/cpu/sh4/probe.c | |||
@@ -99,9 +99,15 @@ int __init detect_cpu_and_cache_system(void) | |||
99 | break; | 99 | break; |
100 | case 0x500 ... 0x501: | 100 | case 0x500 ... 0x501: |
101 | switch (prr) { | 101 | switch (prr) { |
102 | case 0x10: cpu_data->type = CPU_SH7750R; break; | 102 | case 0x10: |
103 | case 0x11: cpu_data->type = CPU_SH7751R; break; | 103 | cpu_data->type = CPU_SH7750R; |
104 | case 0x50: cpu_data->type = CPU_SH7760; break; | 104 | break; |
105 | case 0x11: | ||
106 | cpu_data->type = CPU_SH7751R; | ||
107 | break; | ||
108 | case 0x50 ... 0x5f: | ||
109 | cpu_data->type = CPU_SH7760; | ||
110 | break; | ||
105 | } | 111 | } |
106 | 112 | ||
107 | cpu_data->icache.ways = 2; | 113 | cpu_data->icache.ways = 2; |