[PATCH v9 0/2] Basic Kontron SMARC-sAL28 board support

Michael Walle michael at walle.cc
Thu Oct 15 23:08:56 CEST 2020


Add basic board support for the Kontron SMARC-sAL28 board. Please note,
that this board doesn't support TF-a (yet). Therefore, the u-boot SPL is
the first code which is run and it has to set up the RAM.

changes since v8:
 - enable HS400 mode which is supported since the last mmc updates
 - enable ESDHC ADMA2 support, this fixes "bootefi bootmgr" with
   boards which have more than 2GiB memory (and thus uses 64 bit
   DMA addresses)

changes since v7:
 - removed CONFIG_WDT for now until the watchdog issue is clarified
 - enabled EFIDEBUG and NVEDIT_EFI
 - disabled EFI_LOADER_BOUNCE_BUFFER, doesn't help in my case,
   because efi_load_image() will still do DMA transfers with 64bit
   addresses. ADMA2 (with 64bit address support) support for the
   eSDHC is on the way.

changes since v6:
 - moved README to doc/board/kontron/sl28.rst
 - added device tree files to MAINTAINERS
 - converted preprocessor macros to actual code using IS_ENABLED()
 - fixed sec_init(), use CONFIG_IS_ENABLED() instead of IS_ENABLED()
 - removed unnecessary #ifdef CONFIG_OF_BOARD_SETUP
 - removed CONFIG_SPL_TARGET, because we use binman, this is not needed
   anymore
 - removed unnecessary CONFIG_SYS_MONITOR_BASE macro
 - redefinded memory addresses according to the comment in
   ti_armv7_common.h
 - removed empty BOOTENV for SPL build
 - removed fdt_high and initrd_high
Thanks Tom!

changes since v5:
 - moved CONFIG_ENV_OVERWRITE to defconfig. Thanks Kuldeep!

changes since v4:
 - dropped "armv8: ls1028a: move FSL_LAYERSCAPE to kconfig" as it is
   already upstream
 - new patch "board: sl28: add board specific nvm command"
 - use binman
 - sync device trees with linux
 - use "<devicetree>-u-boot.dtsi" style
 - rebase to lastest master

changes since v3:
 - rebase to latest master
 - use CONFIG_PCI_INIT_R
 - set fdtfile in default environment

changes since v2:
 - add variant 4 support. Since the atheros PHY dt bindings were merged
   into master, we can now use them
 - add environment section in include/configs/kontron_sl28.h
 - add cover letter

changes since v1:
 - fix watchdog device tree reference

Michael Walle (2):
  board: kontron: add sl28 support
  board: sl28: add board specific nvm command

 arch/arm/Kconfig                              |  11 +
 arch/arm/dts/Makefile                         |   3 +
 .../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi  | 135 +++++++++++++
 .../fsl-ls1028a-kontron-sl28-var3-u-boot.dtsi |   2 +
 .../arm/dts/fsl-ls1028a-kontron-sl28-var3.dts |  15 ++
 .../fsl-ls1028a-kontron-sl28-var4-u-boot.dtsi |   2 +
 .../arm/dts/fsl-ls1028a-kontron-sl28-var4.dts |  48 +++++
 arch/arm/dts/fsl-ls1028a-kontron-sl28.dts     | 189 ++++++++++++++++++
 board/kontron/sl28/Kconfig                    |  18 ++
 board/kontron/sl28/MAINTAINERS                |   7 +
 board/kontron/sl28/Makefile                   |   8 +
 board/kontron/sl28/cmds.c                     | 178 +++++++++++++++++
 board/kontron/sl28/common.c                   |  10 +
 board/kontron/sl28/ddr.c                      |  98 +++++++++
 board/kontron/sl28/sl28.c                     |  68 +++++++
 board/kontron/sl28/spl.c                      |  32 +++
 configs/kontron_sl28_defconfig                | 107 ++++++++++
 doc/board/index.rst                           |   1 +
 doc/board/kontron/index.rst                   |   9 +
 doc/board/kontron/sl28.rst                    | 160 +++++++++++++++
 include/configs/kontron_sl28.h                | 108 ++++++++++
 21 files changed, 1209 insertions(+)
 create mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-var3-u-boot.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dts
 create mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-var4-u-boot.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dts
 create mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28.dts
 create mode 100644 board/kontron/sl28/Kconfig
 create mode 100644 board/kontron/sl28/MAINTAINERS
 create mode 100644 board/kontron/sl28/Makefile
 create mode 100644 board/kontron/sl28/cmds.c
 create mode 100644 board/kontron/sl28/common.c
 create mode 100644 board/kontron/sl28/ddr.c
 create mode 100644 board/kontron/sl28/sl28.c
 create mode 100644 board/kontron/sl28/spl.c
 create mode 100644 configs/kontron_sl28_defconfig
 create mode 100644 doc/board/kontron/index.rst
 create mode 100644 doc/board/kontron/sl28.rst
 create mode 100644 include/configs/kontron_sl28.h

-- 
2.20.1



More information about the U-Boot mailing list