bcm53xx: add linux 4.4 support
[openwrt/svn-archive/archive.git] / target / linux / bcm53xx / patches-4.4 / 134-ARM-BCM-Add-SMP-support-for-Broadcom-4708.patch
1 From 16e1bf7dde22ee22a331aabf824cc31a6794a4cb Mon Sep 17 00:00:00 2001
2 From: Jon Mason <jonmason@broadcom.com>
3 Date: Thu, 15 Oct 2015 14:09:10 -0400
4 Subject: [PATCH 134/134] ARM: BCM: Add SMP support for Broadcom 4708
5
6 Add SMP support for Broadcom's 4708 SoCs.
7
8 Signed-off-by: Jon Mason <jonmason@broadcom.com>
9 Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
10 Tested-by: Hauke Mehrtens <hauke@hauke-m.de>
11 Signed-off-by: Kapil Hali <kapilh@broadcom.com>
12 ---
13 arch/arm/boot/dts/bcm4708.dtsi | 2 ++
14 arch/arm/mach-bcm/Kconfig | 1 +
15 arch/arm/mach-bcm/Makefile | 3 +++
16 3 files changed, 6 insertions(+)
17
18 --- a/arch/arm/boot/dts/bcm4708.dtsi
19 +++ b/arch/arm/boot/dts/bcm4708.dtsi
20 @@ -15,6 +15,7 @@
21 cpus {
22 #address-cells = <1>;
23 #size-cells = <0>;
24 + enable-method = "brcm,bcm-nsp-smp";
25
26 cpu@0 {
27 device_type = "cpu";
28 @@ -27,6 +28,7 @@
29 device_type = "cpu";
30 compatible = "arm,cortex-a9";
31 next-level-cache = <&L2>;
32 + secondary-boot-reg = <0xffff0400>;
33 reg = <0x1>;
34 };
35 };
36 --- a/arch/arm/mach-bcm/Kconfig
37 +++ b/arch/arm/mach-bcm/Kconfig
38 @@ -55,6 +55,7 @@ config ARCH_BCM_5301X
39 select ARM_ERRATA_754322
40 select ARM_ERRATA_775420
41 select ARM_ERRATA_764369 if SMP
42 + select HAVE_SMP
43
44 help
45 Support for Broadcom BCM470X and BCM5301X SoCs with ARM CPU cores.
46 --- a/arch/arm/mach-bcm/Makefile
47 +++ b/arch/arm/mach-bcm/Makefile
48 @@ -39,6 +39,9 @@ obj-$(CONFIG_ARCH_BCM2835) += board_bcm2
49
50 # BCM5301X
51 obj-$(CONFIG_ARCH_BCM_5301X) += bcm_5301x.o
52 +ifeq ($(CONFIG_ARCH_BCM_5301X),y)
53 +obj-$(CONFIG_SMP) += platsmp.o
54 +endif
55
56 # BCM63XXx
57 ifeq ($(CONFIG_ARCH_BCM_63XX),y)