summaryrefslogtreecommitdiff
path: root/drivers/sysreset/Kconfig
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-09-12 22:11:46 +0300
committerLeo Yu-Chi Liang <ycliang@andestech.com>2021-10-07 11:08:23 +0300
commit24ed5317d427bfe278a1329abbf4522dba1025a3 (patch)
tree819a4d8ac328adbc91870b97c08e6385ec05ba6a /drivers/sysreset/Kconfig
parent09d7cc3369fcb9a6c86996ae8a58ff5dc34b3798 (diff)
downloadu-boot-24ed5317d427bfe278a1329abbf4522dba1025a3.tar.xz
sysreset: provide SBI based sysreset driver
Provide sysreset driver using the SBI system reset extension. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'drivers/sysreset/Kconfig')
-rw-r--r--drivers/sysreset/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/sysreset/Kconfig b/drivers/sysreset/Kconfig
index ac77ffbc8b..43a948cfcd 100644
--- a/drivers/sysreset/Kconfig
+++ b/drivers/sysreset/Kconfig
@@ -85,6 +85,18 @@ config SYSRESET_PSCI
Enable PSCI SYSTEM_RESET function call. To use this, PSCI firmware
must be running on your system.
+config SYSRESET_SBI
+ bool "Enable support for SBI System Reset"
+ depends on RISCV_SMODE && SBI_V02
+ select SYSRESET_CMD_POWEROFF if CMD_POWEROFF
+ help
+ Enable system reset and poweroff via the SBI system reset extension.
+ The extension was introduced in version 0.3 of the SBI specification.
+
+ If the SBI implementation provides the extension, is board specific.
+ The RISC-V platform specification mandates the extension for rich
+ operating system platforms.
+
config SYSRESET_SOCFPGA
bool "Enable support for Intel SOCFPGA family"
depends on ARCH_SOCFPGA && (TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10)