diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-04-17 16:01:27 +0200 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2024-05-01 22:40:17 +0800 |
commit | c57c187bd44a4a3939ea711dc86b9cef775be3f4 (patch) | |
tree | 50627468b4fad6eb256bc49c35b167260a14ccee | |
parent | 61ac0840a8044f049da276bed8a8f1779eb0b39b (diff) | |
download | u-boot-c57c187bd44a4a3939ea711dc86b9cef775be3f4.zip u-boot-c57c187bd44a4a3939ea711dc86b9cef775be3f4.tar.gz u-boot-c57c187bd44a4a3939ea711dc86b9cef775be3f4.tar.bz2 |
cmd: sbi: add Supervisor Software Events extension
OpenSBI has implemented the Supervisor Software Events Extension.
Allow detecting it in the sbi command.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
-rw-r--r-- | arch/riscv/include/asm/sbi.h | 1 | ||||
-rw-r--r-- | cmd/riscv/sbi.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index d1113f3..ad32ded 100644 --- a/arch/riscv/include/asm/sbi.h +++ b/arch/riscv/include/asm/sbi.h @@ -34,6 +34,7 @@ enum sbi_ext_id { SBI_EXT_NACL = 0x4E41434C, SBI_EXT_STA = 0x535441, SBI_EXT_DBTR = 0x44425452, + SBI_EXT_SSE = 0x535345, }; enum sbi_ext_base_fid { diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index bd9d9c4..55507b0 100644 --- a/cmd/riscv/sbi.c +++ b/cmd/riscv/sbi.c @@ -54,6 +54,7 @@ static struct sbi_ext extensions[] = { { SBI_EXT_NACL, "Nested Acceleration Extension" }, { SBI_EXT_STA, "Steal-time Accounting Extension" }, { SBI_EXT_DBTR, "Debug Trigger Extension" }, + { SBI_EXT_SSE, "Supervisor Software Events" }, }; static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc, |