diff mbox series

[v1,3/9] rockchip: RK3399: Read the reset cause from clock reset unit for RK3399 SoC

Message ID 20240516090031.2373-4-anand@edgeble.ai
State New
Delegated to: Kever Yang
Headers show
Series [v1,1/9] rockchip: RK3328: Read the reset cause from clock reset unit for RK3328 SoC | expand

Commit Message

Anand Moon May 16, 2024, 8:59 a.m. UTC
Read the reset cause from clock reset unit for RK3399 SoC.

Cc: Jagan Teki <jagan@edgeble.ai>
Signed-off-by: Anand Moon <anand@edgeble.ai>
---
 arch/arm/mach-rockchip/cpu-info.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/mach-rockchip/cpu-info.c b/arch/arm/mach-rockchip/cpu-info.c
index fce4bd7541..77833c8fce 100644
--- a/arch/arm/mach-rockchip/cpu-info.c
+++ b/arch/arm/mach-rockchip/cpu-info.c
@@ -10,6 +10,8 @@ 
 #include <asm/arch-rockchip/cru.h>
 #if IS_ENABLED(CONFIG_ROCKCHIP_RK3328)
 #include <asm/arch-rockchip/cru_rk3328.h>
+#elif IS_ENABLED(CONFIG_ROCKCHIP_RK3399)
+#include <asm/arch-rockchip/cru_rk3399.h>
 #endif
 #include <asm/arch-rockchip/hardware.h>
 #include <linux/err.h>
@@ -18,6 +20,8 @@  char *get_reset_cause(void)
 {
 #if IS_ENABLED(CONFIG_ROCKCHIP_RK3328)
 	struct rk3328_cru *cru = rockchip_get_cru();
+#elif IS_ENABLED(CONFIG_ROCKCHIP_RK3399)
+	struct rockchip_cru *cru = rockchip_get_cru();
 #endif
 	char *cause = NULL;