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

Anup Patel anup at brainfault.org
Tue Nov 14 07:45:24 PST 2023


On Thu, Oct 5, 2023 at 12:28 PM Inochi Amaoto <inochiama at 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 at outlook.com>

Looks good to me.

Reviewed-by: Anup Patel <anup at brainfault.org>

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

> ---
>  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
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi



More information about the opensbi mailing list