cmd/riscv/sbi: support System Reset Extension
PATCH 1/1 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
--- cmd/riscv/sbi.c | 1 + 1 file changed, 1 insertion(+)
cmd/riscv/sbi.c +1 -0
@@ -29,6 +29,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,
--
2.28.0
PATCH 1/1 cmd/riscv/sbi: support System Reset Extension
Quoted 15 lines
-----Original Message-----
From: Heinrich Schuchardt <[email protected]>
Sent: 18 January 2021 02:57
To: Rick Chen <[email protected]>
Cc: Atish Patra <[email protected]>; Bin Meng <[email protected]>; Pragnesh Patel <[email protected]>; u-boot at lists.denx.de; Heinrich Schuchardt <[email protected]>
Subject: [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe
Let the sbi command detect the 'System Reset Extension' (EID #0x53525354 "SRST").
Quoted 6 lines
Cf. https://github.com/riscv/riscv-sbi-doc
Signed-off-by Heinrich Schuchardt <[email protected]>---
cmd/riscv/sbi.c| 1 +1 file changed, 1 insertion(+)
PATCH 1/1 cmd/riscv/sbi: support System Reset Extension
In reply to Heinrich SchuchardtQuoted 23 lines · Heinrich Schuchardt
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 <[email protected]>--- cmd/riscv/sbi.c | 1 + 1 file changed, 1 insertion(+)cmd/riscv/sbi.c +1
-1@@ -29,6 +29,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, --
Quoted 2 lines
2.28.0
PATCH 1/1 cmd/riscv/sbi: support System Reset Extension
In reply to Heinrich SchuchardtQuoted 11 lines · Heinrich Schuchardt
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 <[email protected]>--- cmd/riscv/sbi.c | 1 + 1 file changed, 1 insertion(+)
We should also update the reset command to call into SBI when this extension is available.
Regards,
Bin