134-ARM-BCM-Add-SMP-support-for-Broadcom-4708.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. Add SMP support for Broadcom's 4708 SoCs.
  6. Signed-off-by: Jon Mason <jonmason@broadcom.com>
  7. Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
  8. Tested-by: Hauke Mehrtens <hauke@hauke-m.de>
  9. Signed-off-by: Kapil Hali <kapilh@broadcom.com>
  10. ---
  11. arch/arm/boot/dts/bcm4708.dtsi | 2 ++
  12. arch/arm/mach-bcm/Kconfig | 1 +
  13. arch/arm/mach-bcm/Makefile | 3 +++
  14. 3 files changed, 6 insertions(+)
  15. --- a/arch/arm/boot/dts/bcm4708.dtsi
  16. +++ b/arch/arm/boot/dts/bcm4708.dtsi
  17. @@ -15,6 +15,7 @@
  18. cpus {
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. + enable-method = "brcm,bcm-nsp-smp";
  22. cpu@0 {
  23. device_type = "cpu";
  24. @@ -27,6 +28,7 @@
  25. device_type = "cpu";
  26. compatible = "arm,cortex-a9";
  27. next-level-cache = <&L2>;
  28. + secondary-boot-reg = <0xffff0400>;
  29. reg = <0x1>;
  30. };
  31. };
  32. --- a/arch/arm/mach-bcm/Kconfig
  33. +++ b/arch/arm/mach-bcm/Kconfig
  34. @@ -41,6 +41,7 @@ config ARCH_BCM_5301X
  35. select ARM_ERRATA_754322
  36. select ARM_ERRATA_775420
  37. select ARM_ERRATA_764369 if SMP
  38. + select HAVE_SMP
  39. help
  40. Support for Broadcom BCM470X and BCM5301X SoCs with ARM CPU cores.
  41. --- a/arch/arm/mach-bcm/Makefile
  42. +++ b/arch/arm/mach-bcm/Makefile
  43. @@ -36,6 +36,9 @@ obj-$(CONFIG_ARCH_BCM2835) += board_bcm2
  44. # BCM5301X
  45. obj-$(CONFIG_ARCH_BCM_5301X) += bcm_5301x.o
  46. +ifeq ($(CONFIG_ARCH_BCM_5301X),y)
  47. +obj-$(CONFIG_SMP) += platsmp.o
  48. +endif
  49. # BCM63XXx
  50. ifeq ($(CONFIG_ARCH_BCM_63XX),y)