On Fri, Sep 10, 2021 at 10:15 PM Heinrich Schuchardt <heinrich.schucha...@canonical.com> wrote: > > Provide sysreset driver using the SBI system reset extension. > > Signed-off-by: Heinrich Schuchardt <heinrich.schucha...@canonical.com> > --- > v5: > * don't add __efi_runtime > * use '=' not ':' in array initialization with enum indices > 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 > --- > MAINTAINERS | 1 + > arch/riscv/cpu/cpu.c | 13 ++++++++- > arch/riscv/include/asm/sbi.h | 1 + > arch/riscv/lib/sbi.c | 12 ++++++++ > drivers/sysreset/Kconfig | 12 ++++++++ > drivers/sysreset/Makefile | 1 + > drivers/sysreset/sysreset_sbi.c | 51 +++++++++++++++++++++++++++++++++ > 7 files changed, 90 insertions(+), 1 deletion(-) > create mode 100644 drivers/sysreset/sysreset_sbi.c >
Reviewed-by: Bin Meng <bmeng...@gmail.com>