Skip to content

Commit

Permalink
sh: Refactor PRR masking to catch newer SH7760 cuts.
Browse files Browse the repository at this point in the history
Newer SH7760 cuts have a range of acceptable PRR values..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Sep 27, 2006
1 parent b638d0b commit 73388cc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions arch/sh/kernel/cpu/sh4/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,15 @@ int __init detect_cpu_and_cache_system(void)
break;
case 0x500 ... 0x501:
switch (prr) {
case 0x10: cpu_data->type = CPU_SH7750R; break;
case 0x11: cpu_data->type = CPU_SH7751R; break;
case 0x50: cpu_data->type = CPU_SH7760; break;
case 0x10:
cpu_data->type = CPU_SH7750R;
break;
case 0x11:
cpu_data->type = CPU_SH7751R;
break;
case 0x50 ... 0x5f:
cpu_data->type = CPU_SH7760;
break;
}

cpu_data->icache.ways = 2;
Expand Down

0 comments on commit 73388cc

Please sign in to comment.