serial: bcm6858: add serial support
Subsystems (2)
PATCH 1/3 serial: bcm6858: add serial support
This driver add the support of serial on bcm6858.
It's based on serial for bcm6345.
--- drivers/serial/Kconfig | 6 + drivers/serial/Makefile | 1 + drivers/serial/serial_bcm6858.c | 300 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 307 insertions(+) create mode 100644 drivers/serial/serial_bcm6858.c
drivers/serial/Kconfig +6 -0
@@ -479,6 +479,12 @@ config BCM6345_SERIAL help Select this to enable UART on BCM6345 SoCs. +config BCM6858_SERIAL + bool "Support for BCM6858 UART" + depends on DM_SERIAL && ARCH_BCM6858 + help + Select this to enable UART on BCM6358 SoCs. + config FSL_LINFLEXUART bool "Freescale Linflex UART support" depends on DM_SERIAL
drivers/serial/Makefile +1 -0
@@ -35,6 +35,7 @@ obj-$(CONFIG_AR933X_UART) += serial_ar933x.o obj-$(CONFIG_ARM_DCC) += arm_dcc.o obj-$(CONFIG_ATMEL_USART) += atmel_usart.o obj-$(CONFIG_BCM6345_SERIAL) += serial_bcm6345.o +obj-$(CONFIG_BCM6858_SERIAL) += serial_bcm6858.o obj-$(CONFIG_EFI_APP) += serial_efi.o obj-$(CONFIG_LPC32XX_HSUART) += lpc32xx_hsuart.o obj-$(CONFIG_MCFUART) += mcfuart.o
drivers/serial/serial_bcm6858.c new file +300 -0
300 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 2/3 bcm6858: add initial support
This add the initial support of the broadcom bcm6858 SoC family, only the cpu, dram and uart are supported.
--- arch/arm/Kconfig | 7 ++++ arch/arm/dts/bcm6858.dtsi | 85 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 arch/arm/dts/bcm6858.dtsi
arch/arm/Kconfig +7 -0
@@ -538,6 +538,12 @@ config ARCH_BCM283X imply CMD_DM imply FAT_WRITE +config ARCH_BCM6858 + bool "Broadcom BCM6858 family" + select DM + select OF_CONTROL + imply CMD_DM + config TARGET_VEXPRESS_CA15_TC2 bool "Support vexpress_ca15_tc2" select CPU_V7A
@@ -1468,6 +1474,7 @@ source "board/armltd/vexpress/Kconfig" source "board/armltd/vexpress64/Kconfig" source "board/broadcom/bcm23550_w1d/Kconfig" source "board/broadcom/bcm28155_ap/Kconfig" +source "board/broadcom/bcm968580xref/Kconfig" source "board/broadcom/bcmcygnus/Kconfig" source "board/broadcom/bcmnsp/Kconfig" source "board/broadcom/bcmns2/Kconfig"
arch/arm/dts/bcm6858.dtsi new file +85 -0
85 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 2/3 bcm6858: add initial support
Quoted 4 lines · Philippe Reynes
This add the initial support of the broadcom bcm6858 SoC family, only the cpu, dram and uart are supported.
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: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181117/376f77e5/attachment.sig>
PATCH 3/3 bcm968580xref: add initial support
In reply to Philippe ReynesThis add the initial support of the broadcom reference board bcm968580xref with a bcm6858 SoC.
This board has 512 MB of ram, 256 MB of flash (nand),
2 usb port, 1 uart, 4 ethernet ports (LAN), 1 ethernet port (WAN).
--- arch/arm/dts/bcm968580xref.dts | 31 ++++++++++++++ board/broadcom/bcm968580xref/Kconfig | 17 ++++++++ board/broadcom/bcm968580xref/MAINTAINERS | 6 +++ board/broadcom/bcm968580xref/Makefile | 3 ++ board/broadcom/bcm968580xref/bcm968580xref.c | 61 ++++++++++++++++++++++++++++ configs/bcm968580_ram_defconfig | 36 ++++++++++++++++ include/configs/broadcom_bcm968580xref.h | 36 ++++++++++++++++ 7 files changed, 190 insertions(+) create mode 100644 arch/arm/dts/bcm968580xref.dts create mode 100644 board/broadcom/bcm968580xref/Kconfig create mode 100644 board/broadcom/bcm968580xref/MAINTAINERS create mode 100644 board/broadcom/bcm968580xref/Makefile create mode 100644 board/broadcom/bcm968580xref/bcm968580xref.c create mode 100644 configs/bcm968580_ram_defconfig create mode 100644 include/configs/broadcom_bcm968580xref.h
arch/arm/dts/bcm968580xref.dts new file +31 -0
@@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2018 Philippe Reynes <[email protected]> + */ + +/dts-v1/; + +#include "bcm6858.dtsi" + +/ { + model = "Broadcom bcm68580xref"; + compatible = "broadcom,bcm68580xref", "brcm,bcm6858"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x20000000>; + }; +}; + +&uart0 { + u-boot,dm-pre-reloc; + status = "okay"; +};
board/broadcom/bcm968580xref/Kconfig new file +17 -0
@@ -0,0 +1,17 @@ +if ARCH_BCM6858 + +config SYS_VENDOR + default "broadcom" + +config SYS_BOARD + default "bcm968580xref" + +config SYS_CONFIG_NAME + default "broadcom_bcm968580xref" + +endif + +config TARGET_BCM968580XREF + bool "Support Broadcom bcm968580xref" + depends on ARCH_BCM6858 + select ARM64
board/broadcom/bcm968580xref/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +BROADCOM BCM968580XREF +M: Philippe Reynes <[email protected]> +S: Maintained +F: board/broadcom/bcm968580xref/ +F: include/configs/broadcom_bcm968580xref.h +F: configs/bcm9686580xref_ram_defconfig
board/broadcom/bcm968580xref/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-y += bcm968580xref.o
board/broadcom/bcm968580xref/bcm968580xref.c new file +61 -0
61 lines not on this page · raw message
configs/bcm968580_ram_defconfig new file +36 -0
@@ -0,0 +1,36 @@ +CONFIG_ARM=y +CONFIG_ARCH_BCM6858=y +CONFIG_SYS_TEXT_BASE=0x10000000 +CONFIG_SYS_MALLOC_F_LEN=0x8000 +CONFIG_SPL_SYS_MALLOC_F_LEN=0x400 +CONFIG_TARGET_BCM968580XREF=y +CONFIG_ENV_VARS_UBOOT_CONFIG=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_TPL_SYS_MALLOC_F_LEN=0x400 +CONFIG_FIT=y +CONFIG_FIT_SIGNATURE=y +CONFIG_FIT_VERBOSE=y +CONFIG_IMAGE_FORMAT_LEGACY=y +CONFIG_SUPPORT_RAW_INITRD=y +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_HUSH_PARSER=y +CONFIG_CMD_BOOTEFI_SELFTEST=y +CONFIG_DOS_PARTITION=y +CONFIG_ISO_PARTITION=y +CONFIG_EFI_PARTITION=y +CONFIG_OF_EMBED=y +CONFIG_DEFAULT_DEVICE_TREE="bcm968580xref" +# CONFIG_NET is not set +CONFIG_BLK=y +CONFIG_CLK=y +CONFIG_FIRMWARE=y +# CONFIG_MMC is not set +CONFIG_SPECIFY_CONSOLE_INDEX=y +# CONFIG_SPL_SERIAL_PRESENT is not set +CONFIG_CONS_INDEX=0 +CONFIG_DM_SERIAL=y +CONFIG_SERIAL_SEARCH_ALL=y +CONFIG_BCM6858_SERIAL=y +CONFIG_SYSRESET=y +CONFIG_REGEX=y +# CONFIG_GENERATE_SMBIOS_TABLE is not set
include/configs/broadcom_bcm968580xref.h new file +36 -0
@@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright (C) 2018 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 + +/* +* 968580xref +*/ + +#define CONFIG_ENV_SIZE (8 * 1024)
Signature · 1 line
2.7.4
PATCH 3/3 bcm968580xref: add initial support
Quoted 7 lines · Philippe Reynes
This add the initial support of the broadcom reference board bcm968580xref with a bcm6858 SoC.
This board has 512 MB of ram, 256 MB of flash (nand),
2 usb port, 1 uart, 4 ethernet ports (LAN), 1 ethernet port (WAN).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: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181117/5b6f9e45/attachment.sig>
PATCH 1/3 serial: bcm6858: add serial support
In reply to Philippe ReynesQuoted 4 lines · Philippe Reynes
This driver add the support of serial on bcm6858.
It's based on serial for bcm6345.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: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181117/6f3e35a1/attachment.sig>