summaryrefslogtreecommitdiffstats
path: root/arch/mips/pmc-sierra/msp71xx/msp_setup.c
diff options
context:
space:
mode:
authorAnoop P A <anoop.pa@gmail.com>2011-01-25 13:51:03 +0530
committerRalf Baechle <ralf@linux-mips.org>2011-03-25 18:45:14 +0100
commit088f3876fc9234feca0cdfdf710b8fafa87bfce1 (patch)
tree0bacb9393936aab712dd5b41cb8821a0b00404f6 /arch/mips/pmc-sierra/msp71xx/msp_setup.c
parent92592c9ccac9ab9c652533e08d0daad06f1dc501 (diff)
MIPS: MSP71xx: Add VSMP/SMTC support.
[Ralf: Fixed more checkpatch assertions and inclusion of unnecessary header <linux/sched.h>.] Signed-off-by: Anoop P A <anoop.pa@gmail.com> To: linux-mips@linux-mips.org To: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/2042/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pmc-sierra/msp71xx/msp_setup.c')
-rw-r--r--arch/mips/pmc-sierra/msp71xx/msp_setup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/pmc-sierra/msp71xx/msp_setup.c b/arch/mips/pmc-sierra/msp71xx/msp_setup.c
index a54e85b3cf2..fb37a10e030 100644
--- a/arch/mips/pmc-sierra/msp71xx/msp_setup.c
+++ b/arch/mips/pmc-sierra/msp71xx/msp_setup.c
@@ -146,6 +146,8 @@ void __init plat_mem_setup(void)
pm_power_off = msp_power_off;
}
+extern struct plat_smp_ops msp_smtc_smp_ops;
+
void __init prom_init(void)
{
unsigned long family;
@@ -226,6 +228,14 @@ void __init prom_init(void)
*/
msp_serial_setup();
+#ifdef CONFIG_MIPS_MT_SMP
+ register_smp_ops(&vsmp_smp_ops);
+#endif
+
+#ifdef CONFIG_MIPS_MT_SMTC
+ register_smp_ops(&msp_smtc_smp_ops);
+#endif
+
#ifdef CONFIG_PMCTWILED
/*
* Setup LED states before the subsys_initcall loads other