diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 01:31:40 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 01:31:40 -0400 |
commit | 5b19c9081fbd0882c936ec087bf9055a20251dec (patch) | |
tree | 3bfb5779699b485fcf524ea34dd227e42f74ae78 /arch/sh/kernel/cpu/sh4/probe.c | |
parent | 555ef1963029d19d2367acd09f6b9a6a0056f217 (diff) |
sh: Support for SH7770/SH7780 CPU subtypes.
Merge support for SH7770 and SH7780 SH-4A subtypes.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/probe.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/probe.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c index 89986e70d041..85ff48c1533a 100644 --- a/arch/sh/kernel/cpu/sh4/probe.c +++ b/arch/sh/kernel/cpu/sh4/probe.c | |||
@@ -78,6 +78,21 @@ int __init detect_cpu_and_cache_system(void) | |||
78 | cpu_data->dcache.ways = 4; | 78 | cpu_data->dcache.ways = 4; |
79 | cpu_data->flags &= ~CPU_HAS_FPU; | 79 | cpu_data->flags &= ~CPU_HAS_FPU; |
80 | break; | 80 | break; |
81 | case 0x2001: | ||
82 | case 0x2004: | ||
83 | cpu_data->type = CPU_SH7770; | ||
84 | cpu_data->icache.ways = 4; | ||
85 | cpu_data->dcache.ways = 4; | ||
86 | break; | ||
87 | case 0x2006: | ||
88 | case 0x200A: | ||
89 | if (prr == 0x61) | ||
90 | cpu_data->type = CPU_SH7781; | ||
91 | else | ||
92 | cpu_data->type = CPU_SH7780; | ||
93 | cpu_data->icache.ways = 4; | ||
94 | cpu_data->dcache.ways = 4; | ||
95 | break; | ||
81 | case 0x8000: | 96 | case 0x8000: |
82 | cpu_data->type = CPU_ST40RA; | 97 | cpu_data->type = CPU_ST40RA; |
83 | break; | 98 | break; |