diff mbox series

[8/9] platform: generic: thead: Add definition of T-Head's vendor ID

Message ID 20240327101137.3644359-9-christoph.muellner@vrull.eu
State Not Applicable
Headers show
Series T-Head: Allow read access to th.mxstatus CSR | expand

Commit Message

Christoph Müllner March 27, 2024, 10:11 a.m. UTC
This patch adds a macro for T-Head's vendor ID to the C9xx encodings.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
---
 platform/generic/include/thead/c9xx_encoding.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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