MIPS: BMIPS: Allow BMIPS3300 to utilize SMP ebase relocation code
authorJon Fraser <jfraser@broadcom.com>
Tue, 21 Oct 2014 04:27:54 +0000 (21:27 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:10 +0000 (07:45 +0100)
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 <jfraser@broadcom.com>
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
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 <ralf@linux-mips.org>
arch/mips/kernel/smp-bmips.c

index 8383fa460d421dfab685ebeb3d54af8a6d50e74d..887c3ea0ed571db9f2737f59491479803d9eb7f9 100644 (file)
@@ -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)