All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension
@ 2021-01-17 21:27 Heinrich Schuchardt
  2021-01-21  3:52 ` Pragnesh Patel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Heinrich Schuchardt @ 2021-01-17 21:27 UTC (permalink / raw)
  To: u-boot

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>
---
 cmd/riscv/sbi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index e66fc8e41d..9897483eb6 100644
--- a/cmd/riscv/sbi.c
+++ b/cmd/riscv/sbi.c
@@ -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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-04  3:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-17 21:27 [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension Heinrich Schuchardt
2021-01-21  3:52 ` Pragnesh Patel
2021-02-04  2:31 ` Leo Liang
2021-02-04  3:06 ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.