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>
This commit is contained in:
parent
b638d0b921
commit
73388cc7c6
|
@ -99,9 +99,15 @@ int __init detect_cpu_and_cache_system(void)
|
||||||
break;
|
break;
|
||||||
case 0x500 ... 0x501:
|
case 0x500 ... 0x501:
|
||||||
switch (prr) {
|
switch (prr) {
|
||||||
case 0x10: cpu_data->type = CPU_SH7750R; break;
|
case 0x10:
|
||||||
case 0x11: cpu_data->type = CPU_SH7751R; break;
|
cpu_data->type = CPU_SH7750R;
|
||||||
case 0x50: cpu_data->type = CPU_SH7760; break;
|
break;
|
||||||
|
case 0x11:
|
||||||
|
cpu_data->type = CPU_SH7751R;
|
||||||
|
break;
|
||||||
|
case 0x50 ... 0x5f:
|
||||||
|
cpu_data->type = CPU_SH7760;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu_data->icache.ways = 2;
|
cpu_data->icache.ways = 2;
|
||||||
|
|
Loading…
Reference in New Issue