All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] riscv: enable SBI system reset
@ 2021-07-21 16:33 Heinrich Schuchardt
  2021-07-21 16:33 ` [PATCH v2 1/3] risv: add missing SBI extension definitions Heinrich Schuchardt
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Heinrich Schuchardt @ 2021-07-21 16:33 UTC (permalink / raw)
  To: Rick Chen
  Cc: Leo, Alexander Graf, Bin Meng, Sean Anderson, Green Wan,
	Marek Behún, Pragnesh Patel, Atish Patra, Ley Foon Tan,
	Chee Hong Ang, Simon Glass, Siew Chin Lim, Sebastian Reichel,
	u-boot, Heinrich Schuchardt

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.

* Provide a system reset driver using the system reset extension.

v2:
	correct constants in patch 1 which were copied from incorrect Linux
	avoid a superfluous check in the sysreset driver
	drop K210 specific patches which need further work

Heinrich Schuchardt (3):
  risv: add missing SBI extension definitions
  cmd/sbi: use constants instead of numerical values
  sysreset: provide SBI based sysreset driver

 MAINTAINERS                     |  1 +
 arch/riscv/cpu/cpu.c            | 13 ++++-
 arch/riscv/include/asm/sbi.h    | 37 ++++++++++++-
 arch/riscv/lib/sbi.c            | 21 ++++++--
 cmd/riscv/sbi.c                 | 30 +++++------
 drivers/sysreset/Kconfig        | 11 ++++
 drivers/sysreset/Makefile       |  1 +
 drivers/sysreset/sysreset_sbi.c | 96 +++++++++++++++++++++++++++++++++
 lib/efi_loader/Kconfig          |  2 +-
 9 files changed, 189 insertions(+), 23 deletions(-)
 create mode 100644 drivers/sysreset/sysreset_sbi.c

--
2.30.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-08-02  8:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 16:33 [PATCH v2 0/3] riscv: enable SBI system reset Heinrich Schuchardt
2021-07-21 16:33 ` [PATCH v2 1/3] risv: add missing SBI extension definitions Heinrich Schuchardt
2021-07-21 17:02   ` Sean Anderson
2021-07-26  7:59     ` Leo Liang
2021-07-26  7:10   ` Leo Liang
2021-08-02  8:45   ` Leo Liang
2021-07-21 16:33 ` [PATCH v2 2/3] cmd/sbi: use constants instead of numerical values Heinrich Schuchardt
2021-07-21 16:33 ` [PATCH v2 3/3] sysreset: provide SBI based sysreset driver Heinrich Schuchardt
2021-07-21 17:05   ` Sean Anderson
2021-07-26  8:12   ` Leo Liang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.