[PATCH v5 3/4] sysreset: provide SBI based sysreset driver
Bin Meng
bmeng.cn at gmail.com
Sat Sep 11 13:58:49 CEST 2021
On Fri, Sep 10, 2021 at 10:15 PM Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Provide sysreset driver using the SBI system reset extension.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at 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.cn at gmail.com>
More information about the U-Boot
mailing list