bcm68360: add initial support
Subsystems (7)
PATCH 1/8 bcm68360: add initial support
This add the initial support of the broadcom bcm68360 SoC family.
--- arch/arm/Kconfig | 6 ++ arch/arm/dts/bcm68360.dtsi | 217 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 223 insertions(+) create mode 100644 arch/arm/dts/bcm68360.dtsi
arch/arm/Kconfig +6 -0
@@ -622,6 +622,12 @@ config ARCH_BCM63158 select OF_CONTROL imply CMD_DM +config ARCH_BCM68360 + bool "Broadcom BCM68360 family" + select DM + select OF_CONTROL + imply CMD_DM + config ARCH_BCM6858 bool "Broadcom BCM6858 family" select DM
arch/arm/dts/bcm68360.dtsi new file +217 -0
217 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 2/8 watchdog: bcm6345: allow to use this driver on arm bcm68360
This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 too.
--- drivers/watchdog/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/watchdog/Kconfig +2 -1
@@ -85,7 +85,8 @@ config WDT_AT91 config WDT_BCM6345 bool "BCM6345 watchdog timer support" - depends on WDT && (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158) + depends on WDT && (ARCH_BMIPS || ARCH_BCM68360 || \ + ARCH_BCM6858 || ARCH_BCM63158) help Select this to enable watchdog timer for BCM6345 SoCs. The watchdog timer is stopped when initialized.
Signature · 1 line
2.7.4
PATCH 2/8 watchdog: bcm6345: allow to use this driver on arm bcm68360
Quoted 4 lines · Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 too.
Signed-off-by Philippe Reynes <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/aa3e3ec3/attachment.sig>
PATCH 3/8 spi: bcm63xx-hsspi: allow to use this driver on arm bcm68360
In reply to Philippe ReynesThis IP is also used on some arm SoC, so we allow to use it on arm bcm68360 too.
--- drivers/spi/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/spi/Kconfig +2 -1
@@ -84,7 +84,8 @@ config ATMEL_SPI config BCM63XX_HSSPI bool "BCM63XX HSSPI driver" - depends on (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158) + depends on (ARCH_BMIPS || ARCH_BCM68360 || \ + ARCH_BCM6858 || ARCH_BCM63158) help Enable the BCM6328 HSSPI driver. This driver can be used to access the SPI NOR flash on platforms embedding this Broadcom
Signature · 1 line
2.7.4
PATCH 3/8 spi: bcm63xx-hsspi: allow to use this driver on arm bcm68360
Quoted 4 lines · Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 too.
Signed-off-by Philippe Reynes <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/0b091ae5/attachment.sig>
PATCH 4/8 nand: brcmnand: add bcm68360 support
In reply to Philippe ReynesThis adds the nand support for chipset bcm68360.
--- drivers/mtd/nand/raw/Kconfig | 6 ++ drivers/mtd/nand/raw/brcmnand/Makefile | 1 + drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c | 123 ++++++++++++++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c
drivers/mtd/nand/raw/Kconfig +6 -0
@@ -78,6 +78,12 @@ config NAND_BRCMNAND_6368 help Enable support for broadcom nand driver on bcm6368. +config NAND_BRCMNAND_68360 + bool "Support Broadcom NAND controller on bcm68360" + depends on NAND_BRCMNAND && ARCH_BCM68360 + help + Enable support for broadcom nand driver on bcm68360. + config NAND_BRCMNAND_6838 bool "Support Broadcom NAND controller on bcm6838" depends on NAND_BRCMNAND && ARCH_BMIPS && SOC_BMIPS_BCM6838
drivers/mtd/nand/raw/brcmnand/Makefile +1 -0
@@ -2,6 +2,7 @@ obj-$(CONFIG_NAND_BRCMNAND_6368) += bcm6368_nand.o obj-$(CONFIG_NAND_BRCMNAND_63158) += bcm63158_nand.o +obj-$(CONFIG_NAND_BRCMNAND_68360) += bcm68360_nand.o obj-$(CONFIG_NAND_BRCMNAND_6838) += bcm6838_nand.o obj-$(CONFIG_NAND_BRCMNAND_6858) += bcm6858_nand.o obj-$(CONFIG_NAND_BRCMNAND) += brcmnand.o
drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c new file +123 -0
123 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 4/8 nand: brcmnand: add bcm68360 support
Quoted 3 lines · Philippe Reynes
This adds the nand support for chipset bcm68360.
Signed-off-by Philippe Reynes <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/30638cb8/attachment.sig>
PATCH 5/8 led: bcm6858: allow to use this driver on arm bcm68360
In reply to Philippe ReynesThis IP is also used on some arm SoC, so we allow to use it on arm bcm68360 too.
--- drivers/led/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/led/Kconfig +1 -1
@@ -30,7 +30,7 @@ config LED_BCM6358 config LED_BCM6858 bool "LED Support for BCM6858" - depends on LED && (ARCH_BCM6858 || ARCH_BCM63158) + depends on LED && (ARCH_BCM68360 || ARCH_BCM6858 || ARCH_BCM63158) help This option enables support for LEDs connected to the BCM6858 HW has blinking capabilities and up to 32 LEDs can be controlled.
Signature · 1 line
2.7.4
PATCH 5/8 led: bcm6858: allow to use this driver on arm bcm68360
Quoted 4 lines · Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 too.
Signed-off-by Philippe Reynes <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/60549e0e/attachment.sig>
PATCH 6/8 gpio: bcm6345: allow to use this driver on arm bcm68360
In reply to Philippe ReynesThis IP is also used on some arm SoC, so we allow to use it on arm bcm68360 too.
--- drivers/gpio/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpio/Kconfig +2 -1
@@ -55,7 +55,8 @@ config ALTERA_PIO config BCM6345_GPIO bool "BCM6345 GPIO driver" - depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158) + depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM68360 || \ + ARCH_BCM6858 || ARCH_BCM63158) help This driver supports the GPIO banks on BCM6345 SoCs.
Signature · 1 line
2.7.4
PATCH 6/8 gpio: bcm6345: allow to use this driver on arm bcm68360
Quoted 4 lines · Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 too.
Signed-off-by Philippe Reynes <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/1d32a139/attachment.sig>
PATCH 7/8 gpio: do not include <asm/arch/gpio.h> on ARCH_BCM68360
In reply to Philippe ReynesAs no gpio.h is defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for arch bcm68360.
--- arch/arm/include/asm/gpio.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/include/asm/gpio.h +5 -5
@@ -1,9 +1,9 @@#if !defined(CONFIG_ARCH_UNIPHIER ) && !defined(CONFIG_ARCH_STI ) && \ - !defined(CONFIG_ARCH_K3 ) && !defined(CONFIG_ARCH_BCM6858 ) && \ - !defined(CONFIG_ARCH_BCM63158 ) && !defined(CONFIG_ARCH_ROCKCHIP ) && \ - !defined(CONFIG_ARCH_LX2160A ) && !defined(CONFIG_ARCH_LS1028A ) && \ - !defined(CONFIG_ARCH_LS2080A ) && !defined(CONFIG_ARCH_LS1088A ) && \ - !defined(CONFIG_ARCH_ASPEED ) + !defined(CONFIG_ARCH_K3 ) && !defined(CONFIG_ARCH_BCM68360 ) && \ + !defined(CONFIG_ARCH_BCM6858 ) && !defined(CONFIG_ARCH_BCM63158 ) && \ + !defined(CONFIG_ARCH_ROCKCHIP ) && !defined(CONFIG_ARCH_LX2160A ) && \ + !defined(CONFIG_ARCH_LS1028A ) && !defined(CONFIG_ARCH_LS2080A ) && \ + !defined(CONFIG_ARCH_LS1088A ) && !defined(CONFIG_ARCH_ASPEED )#include <asm/arch/gpio.h> #endif #include <asm-generic/gpio.h>
Signature · 1 line
2.7.4
PATCH 7/8 gpio: do not include <asm/arch/gpio.h> on ARCH_BCM68360
Quoted 5 lines · Philippe Reynes
As no
gpio.his defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for arch bcm68360.Signed-off-by Philippe Reynes <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/513a086c/attachment.sig>
PATCH 8/8 bcm968360bg: add initial support
In reply to Philippe ReynesThis add the initial support of the broadcom reference board bcm968360bg with a bcm68360 SoC.
This board has 512 MB of RAM, 256 MB of flash (nand), 2 USB port, 1 UART, and 4 ethernet ports.
--- arch/arm/Kconfig | 1 + arch/arm/dts/Makefile | 3 + arch/arm/dts/bcm968360bg.dts | 168 +++++++++++++++++++++++++++++++ board/broadcom/bcm968360bg/Kconfig | 17 ++++ board/broadcom/bcm968360bg/MAINTAINERS | 6 ++ board/broadcom/bcm968360bg/Makefile | 3 + board/broadcom/bcm968360bg/bcm968360bg.c | 61 +++++++++++ configs/bcm968360bg_ram_defconfig | 53 ++++++++++ include/configs/broadcom_bcm968360bg.h | 40 ++++++++ 9 files changed, 352 insertions(+) create mode 100644 arch/arm/dts/bcm968360bg.dts create mode 100644 board/broadcom/bcm968360bg/Kconfig create mode 100644 board/broadcom/bcm968360bg/MAINTAINERS create mode 100644 board/broadcom/bcm968360bg/Makefile create mode 100644 board/broadcom/bcm968360bg/bcm968360bg.c create mode 100644 configs/bcm968360bg_ram_defconfig create mode 100644 include/configs/broadcom_bcm968360bg.h
arch/arm/Kconfig +1 -0
@@ -1791,6 +1791,7 @@ source "board/armltd/vexpress64/Kconfig" source "board/broadcom/bcm23550_w1d/Kconfig" source "board/broadcom/bcm28155_ap/Kconfig" source "board/broadcom/bcm963158/Kconfig" +source "board/broadcom/bcm968360bg/Kconfig" source "board/broadcom/bcm968580xref/Kconfig" source "board/broadcom/bcmcygnus/Kconfig" source "board/broadcom/bcmnsp/Kconfig"
arch/arm/dts/Makefile +3 -0
@@ -816,6 +816,9 @@ dtb-$(CONFIG_ARCH_BCM283X) += \ dtb-$(CONFIG_ARCH_BCM63158) += \ bcm963158.dtb +dtb-$(CONFIG_ARCH_BCM68360) += \ + bcm968360bg.dtb + dtb-$(CONFIG_ARCH_BCM6858) += \ bcm968580xref.dtb
arch/arm/dts/bcm968360bg.dts new file +168 -0
168 lines not on this page · raw message
board/broadcom/bcm968360bg/Kconfig new file +17 -0
@@ -0,0 +1,17 @@ +if ARCH_BCM68360 + +config SYS_VENDOR + default "broadcom" + +config SYS_BOARD + default "bcm968360bg" + +config SYS_CONFIG_NAME + default "broadcom_bcm968360bg" + +endif + +config TARGET_BCM968360BG + bool "Support Broadcom bcm968360bg" + depends on ARCH_BCM68360 + select ARM64
board/broadcom/bcm968360bg/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +BCM968360BG BOARD +M: Philippe Reynes <[email protected]> +S: Maintained +F: board/broadcom/bcm968360bg +F: include/configs/broadcom_bcm968360bg.h +F: configs/bcm968360bg_ram_defconfig
board/broadcom/bcm968360bg/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-y += bcm968360bg.o
board/broadcom/bcm968360bg/bcm968360bg.c new file +61 -0
61 lines not on this page · raw message
configs/bcm968360bg_ram_defconfig new file +53 -0
53 lines not on this page · raw message
include/configs/broadcom_bcm968360bg.h new file +40 -0
@@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright (C) 2020 Philippe Reynes <[email protected]> +*/ + +#include <linux/sizes.h> + +/* +* common +*/ + +/* UART */ +#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \ + 230400, 500000, 1500000 } +/* Memory usage */ +#define CONFIG_SYS_MAXARGS 24 +#define CONFIG_SYS_MALLOC_LEN (1024 * 1024) + +/* +* 6858 +*/ + +/* RAM */ +#define CONFIG_SYS_SDRAM_BASE 0x00000000 + +/* U-Boot */ +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + SZ_16M) +#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE + +#define CONFIG_SKIP_LOWLEVEL_INIT + +#ifdef CONFIG_MTD_RAW_NAND +#define CONFIG_SYS_MAX_NAND_DEVICE 1 +#define CONFIG_SYS_NAND_SELF_INIT +#define CONFIG_SYS_NAND_ONFI_DETECTION +#endif /* CONFIG_MTD_RAW_NAND */ + +/* +* 968360bg +*/
Signature · 1 line
2.7.4
PATCH 8/8 bcm968360bg: add initial support
Quoted 7 lines · Philippe Reynes
This add the initial support of the broadcom reference board bcm968360bg with a bcm68360 SoC.
This board has 512 MB of RAM, 256 MB of flash (nand), 2 USB port, 1 UART, and 4 ethernet ports.
Signed-off-by Philippe Reynes <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/20f3610d/attachment.sig>
PATCH 1/8 bcm68360: add initial support
In reply to Philippe ReynesQuoted 3 lines · Philippe Reynes
This add the initial support of the broadcom bcm68360 SoC family.
Signed-off-by Philippe Reynes <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/1b32c194/attachment.sig>