[PATCH v2 0/5] board: sl28: add basic PSCI implementation

Michael Walle michael at walle.cc
Mon Feb 28 13:48:36 CET 2022


Add PSCI support to reset and power-off the board. Because this board can
be used without TF-A, supply a (mandatory) PSCI implementation.

The armv8 u-boot part already contains most bits for the implementation, it
is just, that it isn't compatible with the layerscape parts. Thus, we first
need to clean that up and then we can add our three little functions for
the PSCI support.

Changes since v1:
 - mark psci_update_dt() as __weak
 - rebase to latest master

Michael Walle (5):
  armv8: include psci_update_dt() unconditionally
  armv8: layerscape: get rid of smc_call()
  armv8: psci: skip setup code if we are not EL3
  armv8: psci: add ARMV8_PSCI_RELOCATE Kconfig option
  board: sl28: add basic PSCI implementation

 arch/arm/cpu/armv8/Kconfig                | 30 +++++++++-----
 arch/arm/cpu/armv8/cpu-dt.c               |  9 +++--
 arch/arm/cpu/armv8/cpu.c                  |  3 ++
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig |  3 ++
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c   | 49 +++++++++--------------
 arch/arm/cpu/armv8/fsl-layerscape/mp.c    | 11 ++---
 arch/arm/cpu/armv8/sec_firmware.c         | 19 ++++-----
 board/freescale/ls1043ardb/Kconfig        |  8 ----
 board/kontron/sl28/Makefile               |  2 +
 board/kontron/sl28/psci.c                 | 42 +++++++++++++++++++
 configs/kontron_sl28_defconfig            |  2 +
 11 files changed, 106 insertions(+), 72 deletions(-)
 create mode 100644 board/kontron/sl28/psci.c

-- 
2.30.2



More information about the U-Boot mailing list