[PATCH 8/9] platform: generic: thead: Add definition of T-Head's vendor ID
Christoph Müllner
christoph.muellner at vrull.eu
Wed Mar 27 03:11:36 PDT 2024
This patch adds a macro for T-Head's vendor ID to the C9xx encodings.
Signed-off-by: Christoph Müllner <christoph.muellner at vrull.eu>
---
platform/generic/include/thead/c9xx_encoding.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/platform/generic/include/thead/c9xx_encoding.h b/platform/generic/include/thead/c9xx_encoding.h
index 58adbef..a4811f6 100644
--- a/platform/generic/include/thead/c9xx_encoding.h
+++ b/platform/generic/include/thead/c9xx_encoding.h
@@ -1,6 +1,8 @@
#ifndef __RISCV_THEAD_C9XX_ENCODING_H____
#define __RISCV_THEAD_C9XX_ENCODING_H____
+#define THEAD_VENDOR_ID 0x5b7
+
/* T-HEAD C9xx M mode CSR. */
#define THEAD_C9XX_CSR_MXSTATUS 0x7c0
#define THEAD_C9XX_CSR_MHCR 0x7c1
--
2.44.0
More information about the opensbi
mailing list