[PATCH RFC v2 18/23] rockchip: RV1108: Read the reset cause from clock reset unit for RV1108 SoC

Dragan Simic dsimic at manjaro.org
Fri May 31 23:52:12 CEST 2024


Hello Anand,

On 2024-05-31 16:18, Anand Moon wrote:
> From: Anand Moon <anand at edgeble.ai>
> 
> Read the reset cause from clock reset unit for RV1108 SoC.
> 
> Cc: Jagan Teki <jagan at edgeble.ai>
> Signed-off-by: Anand Moon <anand at edgeble.ai>
> Signed-off-by: Anand Moon <linux.amoon at gmail.com>
> ---
>  arch/arm/include/asm/arch-rockchip/cru.h | 2 ++
>  arch/arm/mach-rockchip/cpu-info.c        | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/arch/arm/include/asm/arch-rockchip/cru.h
> b/arch/arm/include/asm/arch-rockchip/cru.h
> index 9cdd960fb1..e886adf515 100644
> --- a/arch/arm/include/asm/arch-rockchip/cru.h
> +++ b/arch/arm/include/asm/arch-rockchip/cru.h
> @@ -27,6 +27,8 @@
>  #include <asm/arch-rockchip/cru_rk3308.h>

Although not related to this patch directly, a single space character
should be added between "#" and "include", for consistency.

>  #elif defined(CONFIG_ROCKCHIP_RK3368)
>  #include <asm/arch-rockchip/cru_rk3368.h>

The same comment as above.

> +#elif defined(CONFIG_ROCKCHIP_RV1108)
> +#include <asm/arch-rockchip/cru_rv1108.h>

The same comment as above, bit this time related to this patch.

>  #endif
> 
>  /* CRU_GLB_RST_ST */
> diff --git a/arch/arm/mach-rockchip/cpu-info.c
> b/arch/arm/mach-rockchip/cpu-info.c
> index b9d2756a70..b2cfdade13 100644
> --- a/arch/arm/mach-rockchip/cpu-info.c
> +++ b/arch/arm/mach-rockchip/cpu-info.c
> @@ -30,6 +30,8 @@ char *get_reset_cause(void)
>  	struct rk3308_cru *cru = rockchip_get_cru();
>  #elif IS_ENABLED(CONFIG_ROCKCHIP_RK3368)
>  	struct rk3368_cru *cru = rockchip_get_cru();
> +#elif IS_ENABLED(CONFIG_ROCKCHIP_RV1108)
> +	struct rv1108_cru *cru = rockchip_get_cru();
>  #endif
>  	char *cause = NULL;


More information about the U-Boot mailing list