u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] riscv: enable SBI system reset
@ 2021-09-12 19:11 Heinrich Schuchardt
  2021-09-12 19:11 ` [PATCH v6 1/4] riscv: add missing SBI extension definitions Heinrich Schuchardt
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Heinrich Schuchardt @ 2021-09-12 19:11 UTC (permalink / raw)
  To: Rick Chen, Leo
  Cc: Bin Meng, Sean Anderson, Marek Behún, Green Wan,
	Simon Glass, David Abdurachmanov, Dimitri John Ledkov,
	Ley Foon Tan, Chee Hong Ang, Sebastian Reichel, Siew Chin Lim,
	u-boot, Heinrich Schuchardt

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 missing constants
* Provide a system reset driver using the system reset extension.

v6:
	* enable SYSRESET_SBI for qemu-riscvXX_spl_defconfig
v5:
	* add a configuration actually using the driver
	* don't add __efi_runtime in arch/riscv/lib/sbi.c
	* use '=' not ':' in array initialization with enum indices
	* enable SYSRESET_SBI for qemu-riscvXX_smode_defconfig
v4:
	* remove the UEFI SystemReset() implementation
	* simplify the code using an array to translate reset types
	* remove a superfluos check to determine if the device was probed
v3:
	add SBI_HSM_HART_STATUS_SUSPENDED,
	    SBI_HSM_HART_STATUS_SUSPEND_PENDING,
	    SBI_HSM_HART_STATUS_RESUME_PENDING
v2:
	correct constants that were blindly copied from Linux

Heinrich Schuchardt (4):
  riscv: add missing SBI extension definitions
  cmd/sbi: use constants instead of numerical values
  sysreset: provide SBI based sysreset driver
  configs: enable SYSRESET_SBI on qemu-riscvXX_smode_defconfig

 MAINTAINERS                          |  1 +
 arch/riscv/cpu/cpu.c                 | 13 ++++++-
 arch/riscv/include/asm/sbi.h         | 40 ++++++++++++++++++++--
 arch/riscv/lib/sbi.c                 | 12 +++++++
 cmd/riscv/sbi.c                      | 30 ++++++++--------
 configs/qemu-riscv32_smode_defconfig |  1 +
 configs/qemu-riscv32_spl_defconfig   |  1 +
 configs/qemu-riscv64_smode_defconfig |  1 +
 configs/qemu-riscv64_spl_defconfig   |  1 +
 drivers/sysreset/Kconfig             | 12 +++++++
 drivers/sysreset/Makefile            |  1 +
 drivers/sysreset/sysreset_sbi.c      | 51 ++++++++++++++++++++++++++++
 12 files changed, 146 insertions(+), 18 deletions(-)
 create mode 100644 drivers/sysreset/sysreset_sbi.c

-- 
2.32.0


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

end of thread, other threads:[~2021-09-14  9:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-12 19:11 [PATCH v6 0/4] riscv: enable SBI system reset Heinrich Schuchardt
2021-09-12 19:11 ` [PATCH v6 1/4] riscv: add missing SBI extension definitions Heinrich Schuchardt
2021-09-12 19:11 ` [PATCH v6 2/4] cmd/sbi: use constants instead of numerical values Heinrich Schuchardt
2021-09-12 19:11 ` [PATCH v6 3/4] sysreset: provide SBI based sysreset driver Heinrich Schuchardt
2021-09-12 19:49   ` Samuel Holland
2021-09-12 19:11 ` [PATCH v6 4/4] configs: enable SYSRESET_SBI on qemu-riscvXX_smode_defconfig Heinrich Schuchardt
2021-09-14  9:02   ` Leo Liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).