[PATCH 0/5] riscv: enable SBI system reset

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Mar 4 18:00:46 CET 2021


The purpose of this series is to provide the UEFI ResetSystem() service at
runtime on RISC-V systems.

With SBI v0.3 a system reset extension is available. This allows to
implement reboot and poweroff in U-Boot in a system independent way.

OpenSBI already provides an implementation of the extension for the
Kendryte K210 and other platforms.

* Provide a system reset driver using the system reset extension.
* Enable the driver on the MAIX board.
* Change the sbi command to use contants instead of raw numbers where
  applicable.

Heinrich Schuchardt (5):
  risv: add missing SBI extension definitions
  cmd/sbi: use constants instead of numerical values
  sysreset: provide SBI based sysreset driver
  pinctrl: K210_PINCTRL depends on REGMAP and on SYSCON
  maix: enable SBI system reset for MAIX

 MAINTAINERS                         |   1 +
 arch/riscv/include/asm/sbi.h        |  37 +++++++++-
 arch/riscv/lib/sbi.c                |  21 ++++--
 board/sipeed/maix/maix.c            |   4 ++
 cmd/riscv/sbi.c                     |  30 ++++----
 configs/sipeed_maix_smode_defconfig |   2 +
 drivers/pinctrl/Kconfig             |   2 +
 drivers/sysreset/Kconfig            |   7 ++
 drivers/sysreset/Makefile           |   1 +
 drivers/sysreset/sysreset_sbi.c     | 102 ++++++++++++++++++++++++++++
 lib/efi_loader/Kconfig              |   2 +-
 11 files changed, 187 insertions(+), 22 deletions(-)
 create mode 100644 drivers/sysreset/sysreset_sbi.c

--
2.30.1



More information about the U-Boot mailing list