diff mbox series

[1/3] platform: generic: thead: move to thead c9xx header to vendor specific postion

Message ID IA1PR20MB4953CEF2405E057BE1B9D7AFBB409@IA1PR20MB4953.namprd20.prod.outlook.com
State Superseded
Headers show
Series platform: generic: add T-HEAD th1520 soc support | expand

Commit Message

Inochi Amaoto May 23, 2023, 6:36 a.m. UTC
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@outlook.com>
---
 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%)

Comments

Guo Ren May 23, 2023, 9:44 a.m. UTC | #1
On Tue, May 23, 2023 at 2:36 PM Inochi Amaoto <inochiama@outlook.com> wrote:
>
> 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@outlook.com>
> ---
>  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 0f0a9f3..fe38d8f 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.40.1

Acked-by: Guo Ren <guoren@kernel.org>
>
>
> --
> opensbi mailing list
> opensbi@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
diff mbox series

Patch

diff --git a/platform/generic/allwinner/sun20i-d1.c b/platform/generic/allwinner/sun20i-d1.c
index 0f0a9f3..fe38d8f 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