Conclusive WHLE-LS1046A support
cover Conclusive WHLE-LS1046A support
Hi all,
this series adds support for Conclusive WHLE-LS1046A, a QorIQ LS1046A SoC based Single Board Computer by Conclusive Engineering.
Patch [1/2] adds support for storing U-Boot environment on an ext4 partition of MMC. This is required for whle_ls1046a_emmc_defconfig.
Patch [2/2] introduces support for Conclusive WHLE-LS1046A, including board init and Device Tree files. This board offers two boot methods, over QSPI and eMMC, with their respective defconfigs being provided.
Artur Rojek (1):
board: Add support for Conclusive WHLE-LS1046A
Jakub Klama (1):
armv8: layerscape: Enable ext4 environment storage
arch/arm/Kconfig | 19 ++ arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 5 + arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-ls1046a-whle.dts | 208 ++++++++++++++++++ board/conclusive/whle-ls1046a/Kconfig | 15 ++ board/conclusive/whle-ls1046a/MAINTAINERS | 9 + board/conclusive/whle-ls1046a/Makefile | 7 + board/conclusive/whle-ls1046a/ddr.c | 21 ++ board/conclusive/whle-ls1046a/eth.c | 64 ++++++ board/conclusive/whle-ls1046a/whle-ls1046a.c | 218 +++++++++++++++++++ configs/whle_ls1046a_emmc_defconfig | 82 +++++++ configs/whle_ls1046a_qspi_defconfig | 83 +++++++ include/configs/whle_ls1046a.h | 90 ++++++++ 13 files changed, 822 insertions(+) create mode 100644 arch/arm/dts/fsl-ls1046a-whle.dts create mode 100644 board/conclusive/whle-ls1046a/Kconfig create mode 100644 board/conclusive/whle-ls1046a/MAINTAINERS create mode 100644 board/conclusive/whle-ls1046a/Makefile create mode 100644 board/conclusive/whle-ls1046a/ddr.c create mode 100644 board/conclusive/whle-ls1046a/eth.c create mode 100644 board/conclusive/whle-ls1046a/whle-ls1046a.c create mode 100644 configs/whle_ls1046a_emmc_defconfig create mode 100644 configs/whle_ls1046a_qspi_defconfig create mode 100644 include/configs/whle_ls1046a.h
Signature · 1 line
2.42.1
PATCH 1/2 armv8: layerscape: Enable ext4 environment storage
From: Jakub Klama <[email protected]>
Some boards keep their environment on MMC storage within an ext4 partition.
--- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +5 -0
@@ -857,6 +857,11 @@ enum env_location arch_env_get_location(enum env_operation op, int prio) break; } +#ifdef CONFIG_ENV_IS_IN_EXT4 +if (env_loc ==ENVL_MMC ) +return ENVL_EXT4 ; +#endif +return env_loc; }#endif /* CONFIG_TFABOOT */
Signature · 1 line
2.42.1
Re: [PATCH 1/2] armv8: layerscape: Enable ext4 environment storage
Quoted 7 lines · Artur Rojek
From: Jakub Klama <[email protected]>
Some boards keep their environment on MMC storage within an ext4 partition.
Signed-off-by Jakub Klama <[email protected]>Signed-off-by Artur Rojek <[email protected]>
Signature · 1 line
Tom
PATCH 2/2 board: Add support for Conclusive WHLE-LS1046A
In reply to Artur RojekIntroduce support for Conclusive WHLE-LS1046A Single Board Computer.
--- arch/arm/Kconfig | 19 ++ arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-ls1046a-whle.dts | 208 ++++++++++++++++++ board/conclusive/whle-ls1046a/Kconfig | 15 ++ board/conclusive/whle-ls1046a/MAINTAINERS | 9 + board/conclusive/whle-ls1046a/Makefile | 7 + board/conclusive/whle-ls1046a/ddr.c | 21 ++ board/conclusive/whle-ls1046a/eth.c | 64 ++++++ board/conclusive/whle-ls1046a/whle-ls1046a.c | 218 +++++++++++++++++++ configs/whle_ls1046a_emmc_defconfig | 82 +++++++ configs/whle_ls1046a_qspi_defconfig | 83 +++++++ include/configs/whle_ls1046a.h | 90 ++++++++ 12 files changed, 817 insertions(+) create mode 100644 arch/arm/dts/fsl-ls1046a-whle.dts create mode 100644 board/conclusive/whle-ls1046a/Kconfig create mode 100644 board/conclusive/whle-ls1046a/MAINTAINERS create mode 100644 board/conclusive/whle-ls1046a/Makefile create mode 100644 board/conclusive/whle-ls1046a/ddr.c create mode 100644 board/conclusive/whle-ls1046a/eth.c create mode 100644 board/conclusive/whle-ls1046a/whle-ls1046a.c create mode 100644 configs/whle_ls1046a_emmc_defconfig create mode 100644 configs/whle_ls1046a_qspi_defconfig create mode 100644 include/configs/whle_ls1046a.h
arch/arm/Kconfig +19 -0
@@ -1851,6 +1851,24 @@ config TARGET_SL28 help Support for Kontron SMARC-sAL28 board. +config TARGET_WHLE_LS1046A + bool "Support Conclusive WHLE-LS1046A" + select ARCH_LS1046A + select ARM64 + select ARMV8_MULTIENTRY + select ARCH_SUPPORT_TFABOOT + select BOARD_EARLY_INIT_F + select BOARD_LATE_INIT + select GPIO_EXTRA_HEADER + select DM_SPI_FLASH if DM_SPI + imply SCSI + help + Support for Conclusive WHLE-LS1046A platform. + The WHLE-LS1046A is a high-performance Single Board Computer with + extensive connectivity features that supports the QorIQ LS1046A + Layerscape Architecture processor: + https://conclusive.tech/products/whle-ls1-sbc/ + config TARGET_TEN64 bool "Support ten64" select ARCH_LS1088A
@@ -2299,6 +2317,7 @@ source "board/cortina/presidio-asic/Kconfig" source "board/broadcom/bcmns/Kconfig" source "board/broadcom/bcmns3/Kconfig" source "board/cavium/thunderx/Kconfig" +source "board/conclusive/whle-ls1046a/Kconfig" source "board/eets/pdu001/Kconfig" source "board/emulation/qemu-arm/Kconfig" source "board/freescale/ls2080aqds/Kconfig"
arch/arm/dts/Makefile +1 -0
@@ -615,6 +615,7 @@ dtb-$(CONFIG_FSL_LSCH2) += fsl-ls1043a-qds-duart.dtb \ fsl-ls1046a-qds-lpuart.dtb \ fsl-ls1046a-rdb.dtb \ fsl-ls1046a-frwy.dtb \ + fsl-ls1046a-whle.dtb \ fsl-ls1012a-qds.dtb \ fsl-ls1012a-rdb.dtb \ fsl-ls1012a-2g5rdb.dtb \
arch/arm/dts/fsl-ls1046a-whle.dts new file +208 -0
208 lines not on this page · raw message
board/conclusive/whle-ls1046a/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +if TARGET_WHLE_LS1046A + +config SYS_BOARD + default "whle-ls1046a" + +config SYS_VENDOR + default "conclusive" + +config SYS_SOC + default "fsl-layerscape" + +config SYS_CONFIG_NAME + default "whle_ls1046a" + +endif
board/conclusive/whle-ls1046a/MAINTAINERS new file +9 -0
@@ -0,0 +1,9 @@ +WHLE-LS1046A Board +M: Jakub Klama <[email protected]> +M: Artur Rojek <[email protected]> +S: Maintained +F: board/conclusive/whle-ls1046a +F: include/configs/whle_ls1046a.h +F: configs/whle_ls1046a_emmc_defconfig +F: configs/whle_ls1046a_qspi_defconfig +F: arch/arm/dts/fsl-ls1046a-whle.dts
board/conclusive/whle-ls1046a/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright 2020-2023 Conclusive Engineering Sp. z o. o. + +obj-y += ddr.o +obj-y += whle-ls1046a.o +obj-$(CONFIG_NET) += eth.o
board/conclusive/whle-ls1046a/ddr.c new file +21 -0
@@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Copyright 2019 NXP +* Copyright 2020-2023 Conclusive Engineering Sp. z o. o. +*/ + +#include <config.h> +#include <fsl_ddr_sdram.h> +#include <asm/global_data.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int fsl_initdram (void ) +{ + gd->ram_size =tfa_get_dram_size (); + +if (!gd->ram_size) + gd->ram_size =fsl_ddr_sdram_size (); + +return 0 ; +}
board/conclusive/whle-ls1046a/eth.c new file +64 -0
64 lines not on this page · raw message
board/conclusive/whle-ls1046a/whle-ls1046a.c new file +218 -0
218 lines not on this page · raw message
configs/whle_ls1046a_emmc_defconfig new file +82 -0
82 lines not on this page · raw message
configs/whle_ls1046a_qspi_defconfig new file +83 -0
83 lines not on this page · raw message
include/configs/whle_ls1046a.h new file +90 -0
90 lines not on this page · raw message
Signature · 1 line
2.42.1
Re: [PATCH 2/2] board: Add support for Conclusive WHLE-LS1046A
Quoted 5 lines · Artur Rojek
Introduce support for Conclusive WHLE-LS1046A Single Board Computer.
Co-developed-by Jakub Klama <[email protected]>Signed-off-by Jakub Klama <[email protected]>Signed-off-by Artur Rojek <[email protected]>
[snip]
board/conclusive/whle-ls1046a/whle-ls1046a.c line 213
Quoted 8 lines
board/conclusive/whle-ls1046a/whle-ls1046a.c new file +8
-0+fdt_fixup_memory_banks (blob, base, size,2 ); +ft_cpu_setup (blob, bd); + +#ifdef CONFIG_SYS_DPAA_FMAN +#ifndef CONFIG_DM_ETH +fdt_fixup_fman_ethernet (blob); +#endif +#endif
DM_ETH is a must-have at this point so you can just drop the non-DM_ETH case.
[snip]
include/configs/whle_ls1046a.h
Quoted 5 lines
include/configs/whle_ls1046a.h new file +0
-0
In here, please see if there's any defines that are either not required, or could be in another header (for example only needed in your board code, so a header in the board directory).
Quoted 10 lines
include/configs/whle_ls1046a.h new file +10
-0+#define QSPI_NOR_BOOTCOMMAND CONFIG_BOOTCOMMAND +#define QSPI_NAND_BOOTCOMMAND CONFIG_BOOTCOMMAND +#define SD_BOOTCOMMAND CONFIG_BOOTCOMMAND + +#undef CFG_EXTRA_ENV_SETTINGS +#define CFG_EXTRA_ENV_SETTINGS \ + "hwconfig=fsl_ddr:bank_intlv=auto\0" \ + "kernel_addr_r=0x81000000\0" \ + "kernel_size=0x07000000\0" \ + "kernel_comp_addr_r=0x88000000\0" \
include/configs/whle_ls1046a.h line 85
Quoted 10 lines
include/configs/whle_ls1046a.h new file +10
-0+"kernel_comp_size=0x04000000\0" \ +"ramdisk_addr_r=0x90000000\0" \ +"ramdisk_size=0x08000000\0" \ +"fdt_addr_r=0x98000000\0" \ +"pxefile_addr_r=0x99000000\0" \ +"scriptaddr=0x9a000000\0" \ +"fdtfile=fsl-ls1046a-whle.dtb\0" \ +"console=ttyS0,115200\0" \ +CONFIG_MTDPARTS_DEFAULT "\0" \ +BOOTENV
Please move this to a plain text environment (see board/*/*/*.env) and move from the distro_bootcmd macros to BOOTSTD. Thanks.
Signature · 1 line
Tom