From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Liang Date: Thu, 4 Feb 2021 10:31:53 +0800 Subject: [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension In-Reply-To: <20210117212713.8573-1-xypron.glpk@gmx.de> References: <20210117212713.8573-1-xypron.glpk@gmx.de> Message-ID: <20210204023152.GA21217@andestech.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jan 17, 2021 at 09:27:13PM +0000, Heinrich Schuchardt wrote: > 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 > --- > 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 > Reviewed-by: Leo Liang