[PATCH RFC v2 20/23] rockchip: RV1126: Read the reset cause from clock reset unit for RV1126 SoC
Anand Moon
linux.amoon at gmail.com
Fri May 31 16:18:34 CEST 2024
From: Anand Moon <anand at edgeble.ai>
Read the reset cause from clock reset unit for RV1126 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 e886adf515..e1a8d8adad 100644
--- a/arch/arm/include/asm/arch-rockchip/cru.h
+++ b/arch/arm/include/asm/arch-rockchip/cru.h
@@ -29,6 +29,8 @@
#include <asm/arch-rockchip/cru_rk3368.h>
#elif defined(CONFIG_ROCKCHIP_RV1108)
#include <asm/arch-rockchip/cru_rv1108.h>
+#elif defined(CONFIG_ROCKCHIP_RV1126)
+#include <asm/arch-rockchip/cru_rv1126.h>
#endif
/* CRU_GLB_RST_ST */
diff --git a/arch/arm/mach-rockchip/cpu-info.c b/arch/arm/mach-rockchip/cpu-info.c
index b2cfdade13..cb4ac39884 100644
--- a/arch/arm/mach-rockchip/cpu-info.c
+++ b/arch/arm/mach-rockchip/cpu-info.c
@@ -32,6 +32,8 @@ char *get_reset_cause(void)
struct rk3368_cru *cru = rockchip_get_cru();
#elif IS_ENABLED(CONFIG_ROCKCHIP_RV1108)
struct rv1108_cru *cru = rockchip_get_cru();
+#elif IS_ENABLED(CONFIG_ROCKCHIP_RV1126)
+ struct rv1126_cru *cru = rockchip_get_cru();
#endif
char *cause = NULL;
--
2.44.0
More information about the U-Boot
mailing list