From: Jon Fraser Date: Tue, 21 Oct 2014 04:27:54 +0000 (-0700) Subject: MIPS: BMIPS: Allow BMIPS3300 to utilize SMP ebase relocation code X-Git-Tag: v4.14-rc1~6332^2~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa0106725923eba6497a7348424c97038a571ad9;p=platform%2Fkernel%2Flinux-rpi.git MIPS: BMIPS: Allow BMIPS3300 to utilize SMP ebase relocation code BMIPS3300 processors do not have the hardware to support SMP, but with a small tweak, the SMP ebase relocation code allows BMIPS3300-based platforms to reuse the S2/S3 power management code from BMIPS4380-based chips. Normally this is as simple as adding one line to prom_init(): board_ebase_setup = &bmips_ebase_setup; Signed-off-by: Jon Fraser Signed-off-by: Kevin Cernekee Cc: f.fainelli@gmail.com Cc: mbizon@freebox.fr Cc: jogo@openwrt.org Cc: linux-mips@linux-mips.org Cc: devicetree@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/8159/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index 8383fa4..887c3ea 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -541,6 +541,7 @@ void bmips_ebase_setup(void) &bmips_smp_int_vec, 0x80); __sync(); return; + case CPU_BMIPS3300: case CPU_BMIPS4380: /* * 0x8000_0000: reset/NMI (initially in kseg1)