Skip to contentSkip to conversation

board: ns2: Add support for Broadcom Northstar 2

PATCH Superseded Jon Mason 3 participants 3 messages Mar 8, 2017 – Mar 15, 2017

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH v2 1/1 board: ns2: Add support for Broadcom Northstar 2

Add support for the Broadcom Northstar2 SoC and SVK (bcm958712k). The BCM5871X is a series of quad-core 64-bit 2GHz ARMv8 Cortex-A57 processors targeting a broad range of networking applications.

---
 arch/arm/Kconfig                      |  9 ++++++
 board/broadcom/bcm958712k/MAINTAINERS |  6 ++++
 board/broadcom/bcmns2/Kconfig         | 15 +++++++++
 board/broadcom/bcmns2/Makefile        |  7 +++++
 board/broadcom/bcmns2/northstar2.c    | 58 +++++++++++++++++++++++++++++++++++
 configs/bcm958712k_defconfig          | 10 ++++++
 include/configs/bcm_northstar2.h      | 55 +++++++++++++++++++++++++++++++++
 7 files changed, 160 insertions(+)
 create mode 100644 board/broadcom/bcm958712k/MAINTAINERS
 create mode 100644 board/broadcom/bcmns2/Kconfig
 create mode 100644 board/broadcom/bcmns2/Makefile
 create mode 100644 board/broadcom/bcmns2/northstar2.c
 create mode 100644 configs/bcm958712k_defconfig
 create mode 100644 include/configs/bcm_northstar2.h
arch/arm/Kconfig +9 -0
index e84b74e..db6aa88 100644
@@ -471,6 +471,14 @@ config TARGET_BCMNSP
 	bool "Support bcmnsp"
 	select CPU_V7
 
+config TARGET_BCMNS2
+	bool "Support Broadcom Northstar2"
+	select ARM64
+	help
+	  Support for Broadcom Northstar 2 SoCs.  NS2 is a quad-core 64-bit
+	  ARMv8 Cortex-A57 processors targeting a broad range of networking
+	  applications
+
 config ARCH_EXYNOS
 	bool "Samsung EXYNOS"
 	select DM
@@ -1091,6 +1099,7 @@ source "board/broadcom/bcm23550_w1d/Kconfig"
 source "board/broadcom/bcm28155_ap/Kconfig"
 source "board/broadcom/bcmcygnus/Kconfig"
 source "board/broadcom/bcmnsp/Kconfig"
+source "board/broadcom/bcmns2/Kconfig"
 source "board/cavium/thunderx/Kconfig"
 source "board/cirrus/edb93xx/Kconfig"
 source "board/compulab/cm_t335/Kconfig"
board/broadcom/bcm958712k/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..024fb14
@@ -0,0 +1,6 @@
+BCM958712K BOARD
+M:	Jon Mason <[email protected]>
+S:	Maintained
+F:	board/broadcom/bcmns2/
+F:	include/configs/bcm_northstar2.h
+F:	configs/bcm958712k_defconfig
board/broadcom/bcmns2/Kconfig new file +15 -0
new file mode 100644
index 0000000..3ac6724
@@ -0,0 +1,15 @@
+if TARGET_BCMNS2
+
+config SYS_BOARD
+	default "bcmns2"
+
+config SYS_VENDOR
+	default "broadcom"
+
+config SYS_SOC
+	default "ns2"
+
+config SYS_CONFIG_NAME
+	default "bcm_northstar2"
+
+endif
board/broadcom/bcmns2/Makefile new file +7 -0
new file mode 100644
index 0000000..f6ddd80
@@ -0,0 +1,7 @@
+#
+# Copyright 2016 Broadcom Ltd.
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y	:= northstar2.o
board/broadcom/bcmns2/northstar2.c new file +58 -0

58 lines not on this page · raw message

configs/bcm958712k_defconfig new file +10 -0
new file mode 100644
index 0000000..96e4bce
@@ -0,0 +1,10 @@
+CONFIG_ARM=y
+CONFIG_TARGET_BCMNS2=y
+CONFIG_IDENT_STRING=" Broadcom Northstar 2"
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_BOOTDELAY=5
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_SYS_PROMPT="u-boot> "
+# CONFIG_CMD_IMLS is not set
+CONFIG_SYS_NS16550=y
+CONFIG_OF_LIBFDT=y
include/configs/bcm_northstar2.h new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
2.9.3
#1 lore raw

PATCH v2 1/1 board: ns2: Add support for Broadcom Northstar 2

Quoted 5 lines · Jon Mason

Add support for the Broadcom Northstar2 SoC and SVK (bcm958712k). The BCM5871X is a series of quad-core 64-bit 2GHz ARMv8 Cortex-A57 processors targeting a broad range of networking applications.

+(bcm958712k) In file included from include/config.h:5:0,
+(bcm958712k) from ../include/common.h:21,
+(bcm958712k) from ../board/broadcom/bcmns2/northstar2.c:6:
+(bcm958712k) #define V2M_BASE 0x80000000
+(bcm958712k) ^ +(bcm958712k) ../include/configs/bcm_northstar2.h:16:25: note: in expansion of macro ‘V2M_BASE’
+(bcm958712k) #define PHYS_SDRAM_1 V2M_BASE
+(bcm958712k) ^ +(bcm958712k) ../include/configs/bcm_northstar2.h:21:33: note: in expansion of macro ‘PHYS_SDRAM_1’
+(bcm958712k) #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
+(bcm958712k) ^
+(bcm958712k) ../board/broadcom/bcmns2/northstar2.c:41:30: note: in expansion of macro ‘
CONFIG_SYS_SDRAM_BASE’ +(bcm958712k) gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE, +(bcm958712k) ^ +(bcm958712k) In file included from ../board/broadcom/bcmns2/northstar2.c:6:0:
+(bcm958712k) ../include/common.h:467:6: note: expected ‘long int *’ but argument is of type ‘unsigned int’ +(bcm958712k) long get_ram_size (long *, long); +(bcm958712k) ^ w+(bcm958712k) ../board/broadcom/bcmns2/northstar2.c: In function ‘dram_init’: w+(bcm958712k) ../include/configs/bcm_northstar2.h:15:21: warning: passing argument 1 of

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170314/76eaafd5/attachment.sig>
#2 lore raw

PATCH v2 1/1 board: ns2: Add support for Broadcom Northstar 2

Quoted 18 lines · Tom Rini
Quoted 5 lines · Jon Mason

Add support for the Broadcom Northstar2 SoC and SVK (bcm958712k). The BCM5871X is a series of quad-core 64-bit 2GHz ARMv8 Cortex-A57 processors targeting a broad range of networking applications.

(quoted diff) +10 -0
+(bcm958712k) In file included from include/config.h:5:0,
+(bcm958712k)                  from ../include/common.h:21,
+(bcm958712k)                  from ../board/broadcom/bcmns2/northstar2.c:6:
+(bcm958712k)  #define V2M_BASE    0x80000000
+(bcm958712k)                      ^                                                    +(bcm958712k) ../include/configs/bcm_northstar2.h:16:25: note: in expansion of macro ‘V2M_BASE’
+(bcm958712k)  #define PHYS_SDRAM_1    V2M_BASE
+(bcm958712k)                          ^                                                +(bcm958712k) ../include/configs/bcm_northstar2.h:21:33: note: in expansion of macro ‘PHYS_SDRAM_1’
+(bcm958712k)  #define CONFIG_SYS_SDRAM_BASE   PHYS_SDRAM_1
+(bcm958712k)                                  ^
+(bcm958712k) ../board/broadcom/bcmns2/northstar2.c:41:30: note: in expansion of macro ‘
Quoted 3 lines

CONFIG_SYS_SDRAM_BASE’ +(bcm958712k) gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE, +(bcm958712k) ^ +(bcm958712k) In file included from ../board/broadcom/bcmns2/northstar2.c:6:0:
+(bcm958712k) ../include/common.h:467:6: note: expected ‘long int *’ but argument is of type ‘unsigned int’ +(bcm958712k) long get_ram_size (long *, long); +(bcm958712k) ^ w+(bcm958712k) ../board/broadcom/bcmns2/northstar2.c: In function ‘dram_init’: w+(bcm958712k) ../include/configs/bcm_northstar2.h:15:21: warning: passing argument 1 of

Sorry, I needed to cast the CONFIG_SYS_SDRAM_BASE in get_ram_size() as a long *, similar to other users. I'll send out a v3 which addresses this issue.

Thanks,
Jon

Quoted 8 lines

--
Tom

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot