All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leo Liang <ycliang@andestech.com>
To: u-boot@lists.denx.de
Subject: [PATCH 1/1] cmd/riscv/sbi: support System Reset Extension
Date: Thu, 4 Feb 2021 10:31:53 +0800	[thread overview]
Message-ID: <20210204023152.GA21217@andestech.com> (raw)
In-Reply-To: <20210117212713.8573-1-xypron.glpk@gmx.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 <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
>

Reviewed-by: Leo Liang <ycliang@andestech.com>

  parent reply	other threads:[~2021-02-04  2:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2021-02-04  3:06 ` Bin Meng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210204023152.GA21217@andestech.com \
    --to=ycliang@andestech.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.