diff mbox series

[RFC,v2,03/23] rockchip: RK3399: Read the reset cause from clock reset unit for RK3399 SoC

Message ID 20240531141837.13189-4-linux.amoon@gmail.com
State RFC
Delegated to: Kever Yang
Headers show
Series Enable display cpuinfo to get the reset cause | expand

Commit Message

Anand Moon May 31, 2024, 2:18 p.m. UTC
From: Anand Moon <anand@edgeble.ai>

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>
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
 arch/arm/mach-rockchip/cpu-info.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/mach-rockchip/cpu-info.c b/arch/arm/mach-rockchip/cpu-info.c
index 86b0c02970..e7cbcf5090 100644
--- a/arch/arm/mach-rockchip/cpu-info.c
+++ b/arch/arm/mach-rockchip/cpu-info.c
@@ -16,6 +16,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;