Skip to contentSkip to conversation

bcm6750: add initial support

PATCH New Philippe Reynes 1 participant 6 messages Mar 6, 2020

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 bcm6750: add initial support

This add the initial support of the broadcom bcm6750 SoC family.

---
 arch/arm/Kconfig          |   7 ++
 arch/arm/dts/bcm6750.dtsi | 193 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 200 insertions(+)
 create mode 100644 arch/arm/dts/bcm6750.dtsi
arch/arm/Kconfig +7 -0
index 8d9f7fc..568b95a 100644
@@ -633,6 +633,13 @@ config ARCH_BCM63158
 	select OF_CONTROL
 	imply CMD_DM
 
+config ARCH_BCM6750
+	bool "Broadcom BCM6750 family"
+	select CPU_V7A
+	select DM
+	select OF_CONTROL
+	imply CMD_DM
+
 config ARCH_BCM68360
 	bool "Broadcom BCM68360 family"
 	select DM
arch/arm/dts/bcm6750.dtsi new file +193 -0

193 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/6 gpio: do not include <asm/arch/gpio.h> on ARCH_BCM6750

As no gpio.h is defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for arch bcm6750.

---
 arch/arm/include/asm/gpio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/gpio.h +1 -1
index 84e5cb4..cc178eb 100644
@@ -5,7 +5,7 @@
 	!defined(CONFIG_ARCH_LS1028A) && !defined(CONFIG_ARCH_LS2080A) && \
 	!defined(CONFIG_ARCH_LS1088A) && !defined(CONFIG_ARCH_ASPEED) && \
 	!defined(CONFIG_ARCH_LS1012A) && !defined(CONFIG_ARCH_U8500) && \
-	!defined(CONFIG_CORTINA_PLATFORM)
+	!defined(CONFIG_CORTINA_PLATFORM) && !defined(CONFIG_ARCH_BCM6750)
 #include <asm/arch/gpio.h>
 #endif
 #include <asm-generic/gpio.h>
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/6 gpio: bcm6345: allow to use this driver on arm bcm6750

In reply to Philippe Reynes

This IP is also used on some arm SoC, so we allow to use it on arm bcm6750 too.

---
 drivers/gpio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
index f751a8b..3a595b8 100644
@@ -55,7 +55,7 @@ config ALTERA_PIO
 
 config BCM6345_GPIO
 	bool "BCM6345 GPIO driver"
-	depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM68360 || \
+	depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM6750 || ARCH_BCM68360 || \
 			       ARCH_BCM6858 || ARCH_BCM63158)
 	help
 	  This driver supports the GPIO banks on BCM6345 SoCs.
Signature · 1 line
2.7.4
#3 lore raw

PATCH 4/6 nand: brcmnand: add bcm6750 support

In reply to Philippe Reynes

This adds the nand support for chipset bcm6750.

---
 drivers/mtd/nand/raw/Kconfig                 |   6 ++
 drivers/mtd/nand/raw/brcmnand/Makefile       |   1 +
 drivers/mtd/nand/raw/brcmnand/bcm6750_nand.c | 123 +++++++++++++++++++++++++++
 3 files changed, 130 insertions(+)
 create mode 100644 drivers/mtd/nand/raw/brcmnand/bcm6750_nand.c
drivers/mtd/nand/raw/Kconfig +6 -0
index 23201ca..3912337 100644
@@ -78,6 +78,12 @@ config NAND_BRCMNAND_6368
 	help
 	  Enable support for broadcom nand driver on bcm6368.
 
+config NAND_BRCMNAND_6750
+       bool "Support Broadcom NAND controller on bcm6750"
+       depends on NAND_BRCMNAND && ARCH_BCM6750
+       help
+         Enable support for broadcom nand driver on bcm6750.
+
 config NAND_BRCMNAND_68360
        bool "Support Broadcom NAND controller on bcm68360"
        depends on NAND_BRCMNAND && ARCH_BCM68360
drivers/mtd/nand/raw/brcmnand/Makefile +1 -0
index 5d9e7e3..d3b7325 100644
@@ -2,6 +2,7 @@
 
 obj-$(CONFIG_NAND_BRCMNAND_6368) += bcm6368_nand.o
 obj-$(CONFIG_NAND_BRCMNAND_63158) += bcm63158_nand.o
+obj-$(CONFIG_NAND_BRCMNAND_6750) += bcm6750_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
drivers/mtd/nand/raw/brcmnand/bcm6750_nand.c new file +123 -0

123 lines not on this page · raw message

Signature · 1 line
2.7.4
#4 lore raw

PATCH 5/6 watchdog: bcm6345: allow to use this driver on arm bcm6750

In reply to Philippe Reynes

This IP is also used on some arm SoC, so we allow to use it on arm bcm6750 too.

---
 drivers/watchdog/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
index d24c1e4..2dca5f6 100644
@@ -93,7 +93,7 @@ config WDT_AT91
 
 config WDT_BCM6345
 	bool "BCM6345 watchdog timer support"
-	depends on WDT && (ARCH_BMIPS || ARCH_BCM68360 || \
+	depends on WDT && (ARCH_BMIPS || ARCH_BCM6750 || ARCH_BCM68360 || \
 			   ARCH_BCM6858 || ARCH_BCM63158)
 	help
 	  Select this to enable watchdog timer for BCM6345 SoCs.
Signature · 1 line
2.7.4
#5 lore raw

PATCH 6/6 bcm96750ref1: add initial support

In reply to Philippe Reynes

This add the initial support of the broadcom reference board bcm968360bg with a bcm68360 SoC.

This board has 1 GB of RAM, 512 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/bcm96750ref1.dts              | 78 ++++++++++++++++++++++++++++++
 board/broadcom/bcm96750ref1/Kconfig        | 16 ++++++
 board/broadcom/bcm96750ref1/MAINTAINERS    |  6 +++
 board/broadcom/bcm96750ref1/Makefile       |  3 ++
 board/broadcom/bcm96750ref1/bcm96750ref1.c | 44 +++++++++++++++++
 configs/bcm96750ref1_ram_defconfig         | 68 ++++++++++++++++++++++++++
 include/configs/broadcom_bcm96750ref1.h    | 40 +++++++++++++++
 9 files changed, 259 insertions(+)
 create mode 100644 arch/arm/dts/bcm96750ref1.dts
 create mode 100644 board/broadcom/bcm96750ref1/Kconfig
 create mode 100644 board/broadcom/bcm96750ref1/MAINTAINERS
 create mode 100644 board/broadcom/bcm96750ref1/Makefile
 create mode 100644 board/broadcom/bcm96750ref1/bcm96750ref1.c
 create mode 100644 configs/bcm96750ref1_ram_defconfig
 create mode 100644 include/configs/broadcom_bcm96750ref1.h
arch/arm/Kconfig +1 -0
index 568b95a..a3e9130 100644
@@ -1839,6 +1839,7 @@ 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/bcm96750ref1/Kconfig"
 source "board/broadcom/bcm968580xref/Kconfig"
 source "board/broadcom/bcmcygnus/Kconfig"
 source "board/broadcom/bcmnsp/Kconfig"
arch/arm/dts/Makefile +3 -0
index 9c593b2..e3dcd89 100644
@@ -871,6 +871,9 @@ dtb-$(CONFIG_ARCH_BCM63158) += \
 dtb-$(CONFIG_ARCH_BCM68360) += \
 	bcm968360bg.dtb
 
+dtb-$(CONFIG_ARCH_BCM6750) += \
+	bcm96750ref1.dtb
+
 dtb-$(CONFIG_ARCH_BCM6858) += \
 	bcm968580xref.dtb
 
arch/arm/dts/bcm96750ref1.dts new file +78 -0

78 lines not on this page · raw message

board/broadcom/bcm96750ref1/Kconfig new file +16 -0
new file mode 100644
index 0000000..e76e2be
@@ -0,0 +1,16 @@
+if ARCH_BCM6750
+
+config SYS_VENDOR
+	default "broadcom"
+
+config SYS_BOARD
+	default "bcm96750ref1"
+
+config SYS_CONFIG_NAME
+	default "broadcom_bcm96750ref1"
+
+endif
+
+config TARGET_BCM96750REF1
+	bool "Support Broadcom bcm96750ref1"
+	depends on ARCH_BCM6750
board/broadcom/bcm96750ref1/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..e7a5c9c
@@ -0,0 +1,6 @@
+BCM96750REF1 BOARD
+M:	Philippe Reynes <[email protected]>
+S:	Maintained
+F:	board/broadcom/bcm96750ref1
+F:	include/configs/broadcom_bcm96750ref1.h
+F:	configs/bcm96750ref1_ram_defconfig
board/broadcom/bcm96750ref1/Makefile new file +3 -0
new file mode 100644
index 0000000..ac4ffae
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0+
+
+obj-y	+= bcm96750ref1.o
board/broadcom/bcm96750ref1/bcm96750ref1.c new file +44 -0

44 lines not on this page · raw message

configs/bcm96750ref1_ram_defconfig new file +68 -0

68 lines not on this page · raw message

include/configs/broadcom_bcm96750ref1.h new file +40 -0
new file mode 100644
index 0000000..fde4a5b
@@ -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)
+
+/*
+ * 6750
+ */
+
+/* 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 */
+
+/*
+ * 96750ref1
+ */
Signature · 1 line
2.7.4