]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: sbi: add support for Debug Trigger Extension
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 17 Jan 2024 16:46:52 +0000 (17:46 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 31 Jan 2024 08:52:30 +0000 (16:52 +0800)
Detect and show if the SBI implements the Debug Trigger Extension.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/include/asm/sbi.h
cmd/riscv/sbi.c

index bf4c9af6220216b21db3ef061a02c7fe5d35722a..d1113f3d703c7d4932c9784431d249de7d334f85 100644 (file)
@@ -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 {
index 940d9bc1681aba88e8d13ce27473d3a214776b28..9daf0e247ad4d45419c3b4abbdbc79fb9ed4b345 100644 (file)
@@ -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,