[U-Boot] [PATCH v2 9/9] Add support for the NXP LS1021A-TSN board
Bin Meng
bmeng.cn at gmail.com
Sun Jul 14 02:09:57 UTC 2019
On Sun, Jul 14, 2019 at 8:19 AM Vladimir Oltean <olteanv at gmail.com> wrote:
>
> From: Jianchao Wang <jianchao.wang at nxp.com>
>
> The LS1021A-TSN is a development board built by VVDN/Argonboards in
> partnership with NXP.
>
> It features the LS1021A SoC and the first-generation SJA1105T Ethernet
> switch for prototyping implementations of a subset of IEEE 802.1 TSN
> standards.
>
> Supported boot media: microSD card (via SPL), QSPI flash.
>
> Rev. A of the board uses a Spansion S25FL512S_256K serial flash, which
> is 64 MB in size and has an erase sector size of 256KB (therefore,
> flashing the RCW would erase part of U-Boot).
>
> Rev. B and C of the board use a Spansion S25FL256S1 serial flash, which
> is only 32 MB in size but has an erase sector size of 64KB (therefore
> the RCW image can be flashed without erasing U-Boot).
>
> To avoid the problems above, the U-Boot base address has been selected
> at 0x100000 (the start of the 5th 256KB erase sector), which works for
> all board revisions. Actually 0x40000 would have been enough, but
> 0x100000 is common for all Layerscape devices.
>
> eTSEC3 is connecting directly to SJA1105 via an RGMII fixed-link, but
> SJA1105 is currently not supported by uboot. Therefore, eTSEC3 is
> disabled.
>
> Signed-off-by: Xiaoliang Yang <xiaoliang.yang at nxp.com>
> Signed-off-by: Mingkai Hu <mingkai.hu at nxp.com>
> Signed-off-by: Jianchao Wang <jianchao.wang at nxp.com>
> Signed-off-by: Changming Huang <jerry.huang at nxp.com>
> Signed-off-by: Vladimir Oltean <olteanv at gmail.com>
>
> [Vladimir] Code taken from https://github.com/openil/u-boot (which
> itself is mostly copied from ls1021a-iot) and adapted with the following
> changes:
>
> - Add a008850 errata workaround
> - Converted eTSEC, MMC to DM to avoid all build warnings
> - Plugged in distro boot feature, including support for extlinux.conf
> - Added defconfig for QSPI boot
> - Added the board/freescale/ls1021atsn/README.rst for initial setup
> - Increased CONFIG_SYS_MONITOR_LEN so that the SPL malloc pool does not
> get overwritten during copying of the u-boot.bin payload from MMC to
> DDR.
> ---
> Changes from v1:
>
> Increased CONFIG_SYS_MONITOR_LEN so that the SPL malloc pool does not
> get overwritten during copying of the u-boot.bin payload from MMC to
> DDR.
> Completely removed all traces of IFC support (for CPLD control), which
> has no chance of working on this board.
> Made ddrmc_init a static function.
>
> arch/arm/Kconfig | 14 +
> arch/arm/dts/Makefile | 2 +-
> arch/arm/dts/ls1021a-tsn.dts | 77 +++++
> board/freescale/ls1021atsn/Kconfig | 18 ++
> board/freescale/ls1021atsn/MAINTAINERS | 8 +
> board/freescale/ls1021atsn/Makefile | 3 +
> board/freescale/ls1021atsn/README.rst | 97 ++++++
> board/freescale/ls1021atsn/ls1021atsn.c | 259 ++++++++++++++++
> board/freescale/ls1021atsn/ls102xa_pbi.cfg | 15 +
> board/freescale/ls1021atsn/ls102xa_rcw_sd.cfg | 8 +
> configs/ls1021atsn_qspi_defconfig | 77 +++++
> configs/ls1021atsn_sdcard_defconfig | 86 ++++++
> include/configs/ls1021atsn.h | 289 ++++++++++++++++++
> 13 files changed, 952 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm/dts/ls1021a-tsn.dts
> create mode 100644 board/freescale/ls1021atsn/Kconfig
> create mode 100644 board/freescale/ls1021atsn/MAINTAINERS
> create mode 100644 board/freescale/ls1021atsn/Makefile
> create mode 100644 board/freescale/ls1021atsn/README.rst
> create mode 100644 board/freescale/ls1021atsn/ls1021atsn.c
> create mode 100644 board/freescale/ls1021atsn/ls102xa_pbi.cfg
> create mode 100644 board/freescale/ls1021atsn/ls102xa_rcw_sd.cfg
> create mode 100644 configs/ls1021atsn_qspi_defconfig
> create mode 100644 configs/ls1021atsn_sdcard_defconfig
> create mode 100644 include/configs/ls1021atsn.h
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list