From c1a69874476810aa47bb1ca8bbe7697f855dba5f Mon Sep 17 00:00:00 2001 From: Inochi Amaoto Date: Sat, 7 Oct 2023 11:06:28 +0800 Subject: [PATCH] platform: generic: thead: move to thead c9xx header to vendor specific postion 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 Acked-by: Guo Ren Reviewed-by: Anup Patel --- 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 -#include +#include #include #include #include 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.34.1