summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-17 21:27:13 +0000
committerLeo Yu-Chi Liang <ycliang@andestech.com>2021-02-25 18:06:08 +0800
commit921d5477b971693892025a3b76feb3628a078b50 (patch)
treeaec051e34ef47e3ca7b49da864123b20a3328eaf /cmd
parentcbe607b920bc0827d8fe379ed4f5ae4e2058513e (diff)
downloadu-boot-921d5477b971693892025a3b76feb3628a078b50.tar.gz
u-boot-921d5477b971693892025a3b76feb3628a078b50.tar.xz
u-boot-921d5477b971693892025a3b76feb3628a078b50.zip
cmd/riscv/sbi: support System Reset Extension
Let the sbi command detect the 'System Reset Extension' (EID #0x53525354 "SRST"). Cf. https://github.com/riscv/riscv-sbi-doc Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Pragnesh Patel <pragnesh.patel@openfive.com> Reviewed-by: Leo Liang <ycliang@andestech.com> Reviewed-by: Bin Meng <bin.meng@windriver.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/riscv/sbi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index 2c905f1f8f..90c0811e14 100644
--- a/cmd/riscv/sbi.c
+++ b/cmd/riscv/sbi.c
@@ -43,6 +43,7 @@ static struct sbi_ext extensions[] = {
{ 0x00735049, "IPI Extension" },
{ 0x52464E43, "RFENCE Extension" },
{ 0x0048534D, "Hart State Management Extension" },
+ { 0x53525354, "System Reset Extension" },
};
static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc,