0004-arm-Add-support-for-the-Broadcom-Northstar-SoCs.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. From b81ea0a64b01ae42e8b41d2a8b9a3fabffe97489 Mon Sep 17 00:00:00 2001
  2. From: Linus Walleij <[email protected]>
  3. Date: Mon, 24 Apr 2023 09:38:29 +0200
  4. Subject: [PATCH 4/5] arm: Add support for the Broadcom Northstar SoCs
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. The original Northstar is an ARM SoC series that comprise
  9. BCM4709x and BCM5301x and uses a dual-core Cortex A9, the
  10. global timer and a few other things.
  11. This series should not be confused with North Star Plus
  12. (NSP) which is partly supported by U-Boot already.
  13. The SoC is well supported by the Linux kernel and OpenWrt
  14. as it is used in many routers.
  15. Since we currently don't need any chip-specific quirks
  16. and can get the system up from just the device tree, a
  17. mach-* directory doesn't even need to be added, just
  18. some small Kconfig fragments.
  19. Cc: Rafał Miłecki <[email protected]>
  20. Signed-off-by: Linus Walleij <[email protected]>
  21. ---
  22. arch/arm/Kconfig | 21 ++++++++++++++++++++-
  23. 1 file changed, 20 insertions(+), 1 deletion(-)
  24. --- a/arch/arm/Kconfig
  25. +++ b/arch/arm/Kconfig
  26. @@ -357,7 +357,7 @@ config SYS_ARM_ARCH
  27. choice
  28. prompt "Select the ARM data write cache policy"
  29. - default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || RZA1
  30. + default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || TARGET_BCMNS || RZA1
  31. default SYS_ARM_CACHE_WRITEBACK
  32. config SYS_ARM_CACHE_WRITEBACK
  33. @@ -670,6 +670,25 @@ config TARGET_BCMCYGNUS
  34. imply HASH_VERIFY
  35. imply NETDEVICES
  36. +config TARGET_BCMNS
  37. + bool "Support Broadcom Northstar"
  38. + select CPU_V7A
  39. + select DM
  40. + select DM_GPIO
  41. + select DM_SERIAL
  42. + select OF_CONTROL
  43. + select TIMER
  44. + select SYS_NS16550
  45. + select ARM_GLOBAL_TIMER
  46. + imply SYS_THUMB_BUILD
  47. + imply MTD_RAW_NAND
  48. + imply NAND_BRCMNAND
  49. + imply NAND_BRCMNAND_IPROC
  50. + help
  51. + Support for Broadcom Northstar SoCs. NS is a dual-core 32-bit
  52. + ARMv7 Cortex-A9 SoC family including BCM4708, BCM47094,
  53. + BCM5301x etc.
  54. +
  55. config TARGET_BCMNS2
  56. bool "Support Broadcom Northstar2"
  57. select ARM64