All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Moon <linux.amoon@gmail.com>
To: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
	Kever Yang <kever.yang@rock-chips.com>,
	Jagan Teki <jagan@edgeble.ai>, Jonas Karlman <jonas@kwiboo.se>,
	Quentin Schulz <quentin.schulz@cherry.de>
Cc: Anand Moon <anand@edgeble.ai>, Anand Moon <linux.amoon@gmail.com>,
	u-boot@lists.denx.de
Subject: [PATCH RFC v2 08/23] rockchip: RK3588: Read the reset cause from clock reset unit for RK3588 SoC
Date: Fri, 31 May 2024 19:48:22 +0530	[thread overview]
Message-ID: <20240531141837.13189-9-linux.amoon@gmail.com> (raw)
In-Reply-To: <20240531141837.13189-1-linux.amoon@gmail.com>

From: Anand Moon <anand@edgeble.ai>

Read the reset cause from clock reset unit for RK3588 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/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 a1499e9652..19bd2b405b 100644
--- a/arch/arm/include/asm/arch-rockchip/cru.h
+++ b/arch/arm/include/asm/arch-rockchip/cru.h
@@ -19,6 +19,8 @@
 # include <asm/arch-rockchip/cru_rk3399.h>
 #elif defined(CONFIG_ROCKCHIP_RK3568)
 #include <asm/arch-rockchip/cru_rk3568.h>
+#elif defined(CONFIG_ROCKCHIP_RK3588)
+#include <asm/arch-rockchip/cru_rk3588.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 e12f84a1d2..113a03acdf 100644
--- a/arch/arm/mach-rockchip/cpu-info.c
+++ b/arch/arm/mach-rockchip/cpu-info.c
@@ -20,6 +20,8 @@ char *get_reset_cause(void)
 	struct rockchip_cru *cru = rockchip_get_cru();
 #elif IS_ENABLED(CONFIG_ROCKCHIP_RK3568)
 	struct rk3568_cru *cru = rockchip_get_cru();
+#elif IS_ENABLED(CONFIG_ROCKCHIP_RK3588)
+	struct rk3588_cru *cru = rockchip_get_cru();
 #endif
 	char *cause = NULL;
 
-- 
2.44.0


  parent reply	other threads:[~2024-05-31 14:20 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31 14:18 [PATCH RFC v2 00/23] Enable display cpuinfo to get the reset cause Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 01/23] rockchip: RK3328: Read the reset cause from clock reset unit for RK3328 SoC Anand Moon
2024-05-31 21:43   ` Dragan Simic
2024-07-16  2:28   ` Kever Yang
2024-07-16  5:40     ` Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 02/23] rockchip: RK3328: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 03/23] rockchip: RK3399: Read the reset cause from clock reset unit for RK3399 SoC Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 04/23] rockchip: RK3399: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 05/23] arm: rockchip: Enable display cpuinfo to be build with SPL_BUILD Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 06/23] rockchip: RK3568: Read the reset cause from clock reset unit for RK356x SoC Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 07/23] rockchip: RK3568: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` Anand Moon [this message]
2024-05-31 21:45   ` [PATCH RFC v2 08/23] rockchip: RK3588: Read the reset cause from clock reset unit for RK3588 SoC Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 09/23] rockchip: RK3588: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 10/23] rockchip: PX30: Read the reset cause from clock reset unit for PX30 SoC Anand Moon
2024-05-31 21:48   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 11/23] rockchip: PX30: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 12/23] rockchip: RK3288: Read the reset cause from clock reset unit for RK3288 SoC Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 13/23] rockchip: RK3288: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 14/23] rockchip: RK3308: Read the reset cause from clock reset unit for RK3308 SoC Anand Moon
2024-05-31 21:49   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 15/23] rockchip: RK3308: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 16/23] rockchip: RK3368: Read the reset cause from clock reset unit for RK3368 SoC Anand Moon
2024-05-31 21:51   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 17/23] rockchip: RK3368: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 18/23] rockchip: RV1108: Read the reset cause from clock reset unit for RV1108 SoC Anand Moon
2024-05-31 21:52   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 19/23] rockchip: RV1108: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 20/23] rockchip: RV1126: Read the reset cause from clock reset unit for RV1126 SoC Anand Moon
2024-05-31 21:53   ` Dragan Simic
2024-06-01  5:25     ` Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 21/23] rockchip: RV1126: Enable display cpuinfo support on all boards Anand Moon
2024-05-31 14:18 ` [PATCH RFC v2 22/23] sysreset: rockchip: use fst reset for ARM64 SOC Anand Moon
2024-05-31 16:44   ` Jonas Karlman
2024-06-01  4:39     ` Anand Moon
2024-07-15 10:19     ` Kever Yang
2024-05-31 21:55   ` Dragan Simic
2024-05-31 14:18 ` [PATCH RFC v2 23/23] sysreset: rockchip: use dev_read_addr_ptr get cru base Anand Moon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240531141837.13189-9-linux.amoon@gmail.com \
    --to=linux.amoon@gmail.com \
    --cc=anand@edgeble.ai \
    --cc=jagan@edgeble.ai \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=quentin.schulz@cherry.de \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.