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 22/23] sysreset: rockchip: use fst reset for ARM64 SOC
Date: Fri, 31 May 2024 19:48:36 +0530 [thread overview]
Message-ID: <20240531141837.13189-23-linux.amoon@gmail.com> (raw)
In-Reply-To: <20240531141837.13189-1-linux.amoon@gmail.com>
From: Kever Yang <kever.yang@rock-chips.com>
Rockchip ARM64 SOC will change cpu entry, only fst reset can reset it.
Cc: Jagan Teki <jagan@edgeble.ai>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---
drivers/sysreset/sysreset_rockchip.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/sysreset/sysreset_rockchip.c b/drivers/sysreset/sysreset_rockchip.c
index f353f9b4c7..17aa191349 100644
--- a/drivers/sysreset/sysreset_rockchip.c
+++ b/drivers/sysreset/sysreset_rockchip.c
@@ -22,7 +22,12 @@ int rockchip_sysreset_request(struct udevice *dev, enum sysreset_t type)
switch (type) {
case SYSRESET_WARM:
+#ifdef CONFIG_ARM64
+ /* Rockchip 64bit SOC need fst reset for cpu reset entry */
+ writel(0xfdb9, cru_base + offset->glb_srst_fst_value);
+#else
writel(0xeca8, cru_base + offset->glb_srst_snd_value);
+#endif
break;
case SYSRESET_COLD:
writel(0xfdb9, cru_base + offset->glb_srst_fst_value);
--
2.44.0
next prev parent reply other threads:[~2024-05-31 14:23 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 ` [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 ` Anand Moon [this message]
2024-05-31 16:44 ` [PATCH RFC v2 22/23] sysreset: rockchip: use fst reset for ARM64 SOC 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-23-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