uboot-bcm53xx: Add U-Boot for NorthStar BCM53xx
[openwrt/staging/hauke.git] / package / boot / uboot-bcm53xx / patches / 0004-arm-Add-support-for-the-Broadcom-Northstar-SoCs.patch
1 From b81ea0a64b01ae42e8b41d2a8b9a3fabffe97489 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
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
9 The original Northstar is an ARM SoC series that comprise
10 BCM4709x and BCM5301x and uses a dual-core Cortex A9, the
11 global timer and a few other things.
12
13 This series should not be confused with North Star Plus
14 (NSP) which is partly supported by U-Boot already.
15
16 The SoC is well supported by the Linux kernel and OpenWrt
17 as it is used in many routers.
18
19 Since we currently don't need any chip-specific quirks
20 and can get the system up from just the device tree, a
21 mach-* directory doesn't even need to be added, just
22 some small Kconfig fragments.
23
24 Cc: Rafał Miłecki <rafal@milecki.pl>
25 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
26 ---
27 arch/arm/Kconfig | 21 ++++++++++++++++++++-
28 1 file changed, 20 insertions(+), 1 deletion(-)
29
30 --- a/arch/arm/Kconfig
31 +++ b/arch/arm/Kconfig
32 @@ -357,7 +357,7 @@ config SYS_ARM_ARCH
33
34 choice
35 prompt "Select the ARM data write cache policy"
36 - default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || RZA1
37 + default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || TARGET_BCMNS || RZA1
38 default SYS_ARM_CACHE_WRITEBACK
39
40 config SYS_ARM_CACHE_WRITEBACK
41 @@ -670,6 +670,25 @@ config TARGET_BCMCYGNUS
42 imply HASH_VERIFY
43 imply NETDEVICES
44
45 +config TARGET_BCMNS
46 + bool "Support Broadcom Northstar"
47 + select CPU_V7A
48 + select DM
49 + select DM_GPIO
50 + select DM_SERIAL
51 + select OF_CONTROL
52 + select TIMER
53 + select SYS_NS16550
54 + select ARM_GLOBAL_TIMER
55 + imply SYS_THUMB_BUILD
56 + imply MTD_RAW_NAND
57 + imply NAND_BRCMNAND
58 + imply NAND_BRCMNAND_IPROC
59 + help
60 + Support for Broadcom Northstar SoCs. NS is a dual-core 32-bit
61 + ARMv7 Cortex-A9 SoC family including BCM4708, BCM47094,
62 + BCM5301x etc.
63 +
64 config TARGET_BCMNS2
65 bool "Support Broadcom Northstar2"
66 select ARM64