aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/cpu-probe.c
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2007-09-13 07:32:02 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-04-28 12:14:23 -0400
commit0b6d497fcbb72b356c9d6446810a9597ee55c432 (patch)
tree73460a333895a5b9b382fcd5bd13c235234514a9 /arch/mips/kernel/cpu-probe.c
parentfb2a27e743cd565c25cd896911e494482a8b7251 (diff)
[MIPS] Basic SPRAM support
Signed-off-by: Chris Dearman <chris@mips.com> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-rw-r--r--arch/mips/kernel/cpu-probe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 89c3304cb93c..add717dccf77 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -675,6 +675,12 @@ static void __cpuinit decode_configs(struct cpuinfo_mips *c)
675 return; 675 return;
676} 676}
677 677
678#ifdef CONFIG_CPU_MIPSR2
679extern void spram_config(void);
680#else
681static inline void spram_config(void) {}
682#endif
683
678static inline void cpu_probe_mips(struct cpuinfo_mips *c) 684static inline void cpu_probe_mips(struct cpuinfo_mips *c)
679{ 685{
680 decode_configs(c); 686 decode_configs(c);
@@ -712,6 +718,8 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
712 c->cputype = CPU_74K; 718 c->cputype = CPU_74K;
713 break; 719 break;
714 } 720 }
721
722 spram_config();
715} 723}
716 724
717static inline void cpu_probe_alchemy(struct cpuinfo_mips *c) 725static inline void cpu_probe_alchemy(struct cpuinfo_mips *c)