diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/probe.c')
| -rw-r--r-- | arch/sh/kernel/cpu/sh4/probe.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c index 2e42572b1b11..91e3677ae09d 100644 --- a/arch/sh/kernel/cpu/sh4/probe.c +++ b/arch/sh/kernel/cpu/sh4/probe.c | |||
| @@ -129,6 +129,13 @@ int __init detect_cpu_and_cache_system(void) | |||
| 129 | boot_cpu_data.flags |= CPU_HAS_FPU | CPU_HAS_PERF_COUNTER | | 129 | boot_cpu_data.flags |= CPU_HAS_FPU | CPU_HAS_PERF_COUNTER | |
| 130 | CPU_HAS_LLSC; | 130 | CPU_HAS_LLSC; |
| 131 | break; | 131 | break; |
| 132 | case 0x4004: | ||
| 133 | boot_cpu_data.type = CPU_SH7786; | ||
| 134 | boot_cpu_data.icache.ways = 4; | ||
| 135 | boot_cpu_data.dcache.ways = 4; | ||
| 136 | boot_cpu_data.flags |= CPU_HAS_FPU | CPU_HAS_PERF_COUNTER | | ||
| 137 | CPU_HAS_LLSC | CPU_HAS_PTEAEX; | ||
| 138 | break; | ||
| 132 | case 0x3008: | 139 | case 0x3008: |
| 133 | boot_cpu_data.icache.ways = 4; | 140 | boot_cpu_data.icache.ways = 4; |
| 134 | boot_cpu_data.dcache.ways = 4; | 141 | boot_cpu_data.dcache.ways = 4; |
| @@ -192,11 +199,6 @@ int __init detect_cpu_and_cache_system(void) | |||
| 192 | break; | 199 | break; |
| 193 | } | 200 | } |
| 194 | 201 | ||
| 195 | #ifdef CONFIG_SH_DIRECT_MAPPED | ||
| 196 | boot_cpu_data.icache.ways = 1; | ||
| 197 | boot_cpu_data.dcache.ways = 1; | ||
| 198 | #endif | ||
| 199 | |||
| 200 | #ifdef CONFIG_CPU_HAS_PTEA | 202 | #ifdef CONFIG_CPU_HAS_PTEA |
| 201 | boot_cpu_data.flags |= CPU_HAS_PTEA; | 203 | boot_cpu_data.flags |= CPU_HAS_PTEA; |
| 202 | #endif | 204 | #endif |
