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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 99498905ac1fbc73a97d27d21ea449fb939072e3 Mon Sep 17 00:00:00 2001
  2. From: Jon Mason <jonmason@broadcom.com>
  3. Date: Tue, 1 Dec 2015 11:24:09 -0500
  4. Subject: [PATCH] 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. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  11. ---
  12. arch/arm/boot/dts/bcm4708.dtsi | 2 ++
  13. arch/arm/mach-bcm/Kconfig | 1 +
  14. arch/arm/mach-bcm/Makefile | 3 +++
  15. 3 files changed, 6 insertions(+)
  16. --- a/arch/arm/boot/dts/bcm4708.dtsi
  17. +++ b/arch/arm/boot/dts/bcm4708.dtsi
  18. @@ -15,6 +15,7 @@
  19. cpus {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. + enable-method = "brcm,bcm-nsp-smp";
  23. cpu@0 {
  24. device_type = "cpu";
  25. @@ -27,6 +28,7 @@
  26. device_type = "cpu";
  27. compatible = "arm,cortex-a9";
  28. next-level-cache = <&L2>;
  29. + secondary-boot-reg = <0xffff0400>;
  30. reg = <0x1>;
  31. };
  32. };
  33. --- a/arch/arm/mach-bcm/Kconfig
  34. +++ b/arch/arm/mach-bcm/Kconfig
  35. @@ -57,6 +57,7 @@ config ARCH_BCM_5301X
  36. select ARM_ERRATA_754322
  37. select ARM_ERRATA_775420
  38. select ARM_ERRATA_764369 if SMP
  39. + select HAVE_SMP
  40. help
  41. Support for Broadcom BCM470X and BCM5301X SoCs with ARM CPU cores.
  42. --- a/arch/arm/mach-bcm/Makefile
  43. +++ b/arch/arm/mach-bcm/Makefile
  44. @@ -43,6 +43,9 @@ obj-$(CONFIG_ARCH_BCM2835) += board_bcm2
  45. # BCM5301X
  46. obj-$(CONFIG_ARCH_BCM_5301X) += bcm_5301x.o
  47. +ifeq ($(CONFIG_ARCH_BCM_5301X),y)
  48. +obj-$(CONFIG_SMP) += platsmp.o
  49. +endif
  50. # BCM63XXx
  51. ifeq ($(CONFIG_ARCH_BCM_63XX),y)