[PATCH v3 1/4] platform: generic: thead: move to thead c9xx header to vendor specific postion

Inochi Amaoto inochiama at outlook.com
Fri Oct 6 20:06:28 PDT 2023


The CSR encoding for t-head c9xx cores is shared across all the
platforms with these cores. So move header thead_c9xx.h to the
thead subdir.

Signed-off-by: Inochi Amaoto <inochiama at outlook.com>
Acked-by: Guo Ren <guoren at kernel.org>
---
 platform/generic/allwinner/sun20i-d1.c                        | 2 +-
 .../generic/include/{thead_c9xx.h => thead/c9xx_encoding.h}   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename platform/generic/include/{thead_c9xx.h => thead/c9xx_encoding.h} (98%)

diff --git a/platform/generic/allwinner/sun20i-d1.c b/platform/generic/allwinner/sun20i-d1.c
index a9a7e47..b960284 100644
--- a/platform/generic/allwinner/sun20i-d1.c
+++ b/platform/generic/allwinner/sun20i-d1.c
@@ -5,7 +5,7 @@
  */

 #include <platform_override.h>
-#include <thead_c9xx.h>
+#include <thead/c9xx_encoding.h>
 #include <sbi/riscv_asm.h>
 #include <sbi/riscv_io.h>
 #include <sbi/sbi_bitops.h>
diff --git a/platform/generic/include/thead_c9xx.h b/platform/generic/include/thead/c9xx_encoding.h
similarity index 98%
rename from platform/generic/include/thead_c9xx.h
rename to platform/generic/include/thead/c9xx_encoding.h
index bab0408..58adbef 100644
--- a/platform/generic/include/thead_c9xx.h
+++ b/platform/generic/include/thead/c9xx_encoding.h
@@ -1,5 +1,5 @@
-#ifndef __RISCV_THEAD_C9XX_H____
-#define __RISCV_THEAD_C9XX_H____
+#ifndef __RISCV_THEAD_C9XX_ENCODING_H____
+#define __RISCV_THEAD_C9XX_ENCODING_H____

 /* T-HEAD C9xx M mode CSR.  */
 #define THEAD_C9XX_CSR_MXSTATUS		0x7c0
--
2.42.0




More information about the opensbi mailing list