]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd/riscv/sbi: support System Reset Extension
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 17 Jan 2021 21:27:13 +0000 (21:27 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 25 Feb 2021 10:06:08 +0000 (18:06 +0800)
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>
cmd/riscv/sbi.c

index 2c905f1f8f8e72becc909f32908cbaae06bcb2a8..90c0811e14c60565ddd2be0cee449039f817271f 100644 (file)
@@ -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,