* [PATCH 1/1] cmd: sbi: add support for Debug Trigger Extension
@ 2024-01-17 16:46 Heinrich Schuchardt
2024-01-31 3:00 ` Leo Liang
0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2024-01-17 16:46 UTC (permalink / raw)
To: Rick Chen; +Cc: Leo, u-boot, Heinrich Schuchardt
Detect and show if the SBI implements the Debug Trigger Extension.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
arch/riscv/include/asm/sbi.h | 1 +
cmd/riscv/sbi.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h
index bf4c9af6220..d1113f3d703 100644
--- a/arch/riscv/include/asm/sbi.h
+++ b/arch/riscv/include/asm/sbi.h
@@ -33,6 +33,7 @@ enum sbi_ext_id {
SBI_EXT_CPPC = 0x43505043,
SBI_EXT_NACL = 0x4E41434C,
SBI_EXT_STA = 0x535441,
+ SBI_EXT_DBTR = 0x44425452,
};
enum sbi_ext_base_fid {
diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index 940d9bc1681..9daf0e247ad 100644
--- a/cmd/riscv/sbi.c
+++ b/cmd/riscv/sbi.c
@@ -53,6 +53,7 @@ static struct sbi_ext extensions[] = {
{ SBI_EXT_CPPC, "Collaborative Processor Performance Control Extension" },
{ SBI_EXT_NACL, "Nested Acceleration Extension" },
{ SBI_EXT_STA, "Steal-time Accounting Extension" },
+ { SBI_EXT_DBTR, "Debug Trigger Extension" },
};
static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc,
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] cmd: sbi: add support for Debug Trigger Extension
2024-01-17 16:46 [PATCH 1/1] cmd: sbi: add support for Debug Trigger Extension Heinrich Schuchardt
@ 2024-01-31 3:00 ` Leo Liang
0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2024-01-31 3:00 UTC (permalink / raw)
To: Heinrich Schuchardt; +Cc: Rick Chen, u-boot
On Wed, Jan 17, 2024 at 05:46:52PM +0100, Heinrich Schuchardt wrote:
> Detect and show if the SBI implements the Debug Trigger Extension.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
> arch/riscv/include/asm/sbi.h | 1 +
> cmd/riscv/sbi.c | 1 +
> 2 files changed, 2 insertions(+)
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-31 3:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-17 16:46 [PATCH 1/1] cmd: sbi: add support for Debug Trigger Extension Heinrich Schuchardt
2024-01-31 3:00 ` Leo Liang
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.