aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/sbi.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-03-17 07:36:14 +0100
committerLeo Yu-Chi Liang <ycliang@andestech.com>2022-04-06 09:40:05 +0800
commitca7e93fa9f6c417a2d260440ff4c0aaded259989 (patch)
treed7af3313526b4c240f4df2c8f8d214d54ba4466d /arch/riscv/include/asm/sbi.h
parent70ae54bd2579568372e79f69417e5cb568b24b6f (diff)
downloadu-boot-ca7e93fa9f6c417a2d260440ff4c0aaded259989.zip
u-boot-ca7e93fa9f6c417a2d260440ff4c0aaded259989.tar.gz
u-boot-ca7e93fa9f6c417a2d260440ff4c0aaded259989.tar.bz2
riscv: provide missing base extension functions
Provide library functions to read: * machine vendor ID * machine architecture ID * machine implementation ID Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'arch/riscv/include/asm/sbi.h')
-rw-r--r--arch/riscv/include/asm/sbi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h
index 7645312..81fcfe0 100644
--- a/arch/riscv/include/asm/sbi.h
+++ b/arch/riscv/include/asm/sbi.h
@@ -155,6 +155,9 @@ long sbi_get_spec_version(void);
int sbi_get_impl_id(void);
int sbi_get_impl_version(long *version);
int sbi_probe_extension(int ext);
+int sbi_get_mvendorid(long *mvendorid);
+int sbi_get_marchid(long *marchid);
+int sbi_get_mimpid(long *mimpid);
void sbi_srst_reset(unsigned long type, unsigned long reason);
#endif