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 01/23] rockchip: RK3328: Read the reset cause from clock reset unit for RK3328 SoC
Date: Fri, 31 May 2024 19:48:15 +0530 [thread overview]
Message-ID: <20240531141837.13189-2-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 RK3328 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 | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-rockchip/cru.h b/arch/arm/include/asm/arch-rockchip/cru.h
index 9778790f34..a1499e9652 100644
--- a/arch/arm/include/asm/arch-rockchip/cru.h
+++ b/arch/arm/include/asm/arch-rockchip/cru.h
@@ -13,6 +13,8 @@
#if defined(CONFIG_ROCKCHIP_RK3288)
# include <asm/arch-rockchip/cru_rk3288.h>
+#elif defined(CONFIG_ROCKCHIP_RK3328)
+#include <asm/arch-rockchip/cru_rk3328.h>
#elif defined(CONFIG_ROCKCHIP_RK3399)
# include <asm/arch-rockchip/cru_rk3399.h>
#elif defined(CONFIG_ROCKCHIP_RK3568)
diff --git a/arch/arm/mach-rockchip/cpu-info.c b/arch/arm/mach-rockchip/cpu-info.c
index a62ff53c6a..86b0c02970 100644
--- a/arch/arm/mach-rockchip/cpu-info.c
+++ b/arch/arm/mach-rockchip/cpu-info.c
@@ -14,7 +14,9 @@
char *get_reset_cause(void)
{
- struct rockchip_cru *cru = rockchip_get_cru();
+#if IS_ENABLED(CONFIG_ROCKCHIP_RK3328)
+ struct rk3328_cru *cru = rockchip_get_cru();
+#endif
char *cause = NULL;
if (IS_ERR(cru))
--
2.44.0
next prev parent reply other threads:[~2024-05-31 14:19 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 ` Anand Moon [this message]
2024-05-31 21:43 ` [PATCH RFC v2 01/23] rockchip: RK3328: Read the reset cause from clock reset unit for RK3328 SoC 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 ` [PATCH RFC v2 08/23] rockchip: RK3588: Read the reset cause from clock reset unit for RK3588 SoC Anand Moon
2024-05-31 21:45 ` 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-2-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox