summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-3.9/043-MIPS-BCM63XX-Add-SMP-support-to-prom.c.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-09-06 19:01:17 +0000
committerJonas Gorski <jogo@openwrt.org>2013-09-06 19:01:17 +0000
commitf8cd14921d9ae957a092378317bc11ededdeb0ef (patch)
treeddabb353f50dd7bfff81bb4b52bbbb9faaf86896 /target/linux/brcm63xx/patches-3.9/043-MIPS-BCM63XX-Add-SMP-support-to-prom.c.patch
parentdc028776f0812f629546ef8081e2e30d9918ea36 (diff)
downloadmaster-31e0f0ae-f8cd14921d9ae957a092378317bc11ededdeb0ef.tar.gz
master-31e0f0ae-f8cd14921d9ae957a092378317bc11ededdeb0ef.tar.bz2
master-31e0f0ae-f8cd14921d9ae957a092378317bc11ededdeb0ef.zip
brcm63xx: drop linux 3.9 support
It is EOL since quite a while, so no need to keep it around. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 37911
Diffstat (limited to 'target/linux/brcm63xx/patches-3.9/043-MIPS-BCM63XX-Add-SMP-support-to-prom.c.patch')
-rw-r--r--target/linux/brcm63xx/patches-3.9/043-MIPS-BCM63XX-Add-SMP-support-to-prom.c.patch82
1 files changed, 0 insertions, 82 deletions
diff --git a/target/linux/brcm63xx/patches-3.9/043-MIPS-BCM63XX-Add-SMP-support-to-prom.c.patch b/target/linux/brcm63xx/patches-3.9/043-MIPS-BCM63XX-Add-SMP-support-to-prom.c.patch
deleted file mode 100644
index 23f6d852c8..0000000000
--- a/target/linux/brcm63xx/patches-3.9/043-MIPS-BCM63XX-Add-SMP-support-to-prom.c.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From 7c44eabf20cba12049bf9eebfa192afcc2053b2d Mon Sep 17 00:00:00 2001
-From: Kevin Cernekee <cernekee@gmail.com>
-Date: Sat, 9 Jul 2011 12:15:06 -0700
-Subject: [PATCH V2 1/2] MIPS: BCM63XX: Add SMP support to prom.c
-
-This involves two changes to the BSP code:
-
-1) register_smp_ops() for BMIPS SMP
-
-2) The CPU1 boot vector on some of the BCM63xx platforms conflicts with
-the special interrupt vector (IV). Move it to 0x8000_0380 at boot time,
-to resolve the conflict.
-
-Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
-[jogo@openwrt.org: moved SMP ops registration into ifdef guard,
- changed ifdef guards to if (IS_ENABLED())]
-Signed-off-by: Jonas Gorski <jogo@openwrt.org>
----
-V1 -> V2:
- * changed ifdef guards to if (IS_ENABLED())
-
- arch/mips/bcm63xx/prom.c | 41 +++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 41 insertions(+)
-
---- a/arch/mips/bcm63xx/prom.c
-+++ b/arch/mips/bcm63xx/prom.c
-@@ -8,7 +8,11 @@
-
- #include <linux/init.h>
- #include <linux/bootmem.h>
-+#include <linux/smp.h>
- #include <asm/bootinfo.h>
-+#include <asm/bmips.h>
-+#include <asm/smp-ops.h>
-+#include <asm/mipsregs.h>
- #include <bcm63xx_board.h>
- #include <bcm63xx_cpu.h>
- #include <bcm63xx_io.h>
-@@ -54,6 +58,43 @@ void __init prom_init(void)
-
- /* do low level board init */
- board_prom_init();
-+
-+ if (IS_ENABLED(CONFIG_CPU_BMIPS4350) && IS_ENABLED(CONFIG_SMP)) {
-+ /* set up SMP */
-+ register_smp_ops(&bmips_smp_ops);
-+
-+ /*
-+ * BCM6328 might not have its second CPU enabled, while BCM6358
-+ * needs special handling for its shared TLB, so disable SMP
-+ * for now.
-+ */
-+ if (BCMCPU_IS_6328()) {
-+ bmips_smp_enabled = 0;
-+ } else if (BCMCPU_IS_6358()) {
-+ bmips_smp_enabled = 0;
-+ }
-+
-+ if (!bmips_smp_enabled)
-+ return;
-+
-+ /*
-+ * The bootloader has set up the CPU1 reset vector at
-+ * 0xa000_0200.
-+ * This conflicts with the special interrupt vector (IV).
-+ * The bootloader has also set up CPU1 to respond to the wrong
-+ * IPI interrupt.
-+ * Here we will start up CPU1 in the background and ask it to
-+ * reconfigure itself then go back to sleep.
-+ */
-+ memcpy((void *)0xa0000200, &bmips_smp_movevec, 0x20);
-+ __sync();
-+ set_c0_cause(C_SW0);
-+ cpumask_set_cpu(1, &bmips_booted_mask);
-+
-+ /*
-+ * FIXME: we really should have some sort of hazard barrier here
-+ */
-+ }
- }
-
- void __init prom_free_prom_memory(void)