aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/kernel/cpu/sh5/probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/cpu/sh5/probe.c')
-rw-r--r--arch/sh/kernel/cpu/sh5/probe.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh5/probe.c b/arch/sh/kernel/cpu/sh5/probe.c
index 31f8cb0f637..eca427c2f2f 100644
--- a/arch/sh/kernel/cpu/sh5/probe.c
+++ b/arch/sh/kernel/cpu/sh5/probe.c
@@ -15,8 +15,9 @@
#include <linux/string.h>
#include <asm/processor.h>
#include <asm/cache.h>
+#include <asm/tlb.h>
-int __init detect_cpu_and_cache_system(void)
+void cpu_probe(void)
{
unsigned long long cir;
@@ -33,6 +34,8 @@ int __init detect_cpu_and_cache_system(void)
/* CPU.VCR aliased at CIR address on SH5-101 */
boot_cpu_data.type = CPU_SH5_101;
+ boot_cpu_data.family = CPU_FAMILY_SH5;
+
/*
* First, setup some sane values for the I-cache.
*/
@@ -67,5 +70,6 @@ int __init detect_cpu_and_cache_system(void)
set_bit(SH_CACHE_MODE_WB, &(boot_cpu_data.dcache.flags));
#endif
- return 0;
+ /* Setup some I/D TLB defaults */
+ sh64_tlb_init();
}