From: max.oss.09@gmail.com
To: Max Krummenacher <max.krummenacher@toradex.com>
Cc: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>,
Emanuele Ghidoli <emanuele.ghidoli@toradex.com>,
Fabio Estevam <festevam@denx.de>,
Francesco Dolcini <francesco.dolcini@toradex.com>,
Marcel Ziswiler <marcel.ziswiler@toradex.com>,
Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>,
u-boot@lists.denx.de
Subject: [PATCH v1 1/4] board: apalis-imx8: add reset code
Date: Wed, 7 Aug 2024 16:16:17 +0200 [thread overview]
Message-ID: <20240807141655.4165667-2-max.oss.09@gmail.com> (raw)
In-Reply-To: <20240807141655.4165667-1-max.oss.09@gmail.com>
From: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
With commit 922d4504bcab ("imx: scu_api: update to version 1.16 and
add more APIs") added the reboot API.
Add the board code to use that.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
board/toradex/apalis-imx8/apalis-imx8.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index 72d67d90d418..570bf2a27d4b 100644
--- a/board/toradex/apalis-imx8/apalis-imx8.c
+++ b/board/toradex/apalis-imx8/apalis-imx8.c
@@ -290,6 +290,14 @@ int board_init(void)
return 0;
}
+void reset_cpu(void)
+{
+ sc_pm_reboot(-1, SC_PM_RESET_TYPE_COLD);
+
+ do {
+ } while (1);
+}
+
#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
int ft_board_setup(void *blob, struct bd_info *bd)
{
--
2.42.0
next prev parent reply other threads:[~2024-08-07 14:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-07 14:16 [PATCH v1 0/4] apalis/colibri imx8: enable additional features max.oss.09
2024-08-07 14:16 ` max.oss.09 [this message]
2024-08-07 14:16 ` [PATCH v1 2/4] apalis-imx8: enable i.MX specific BOOTAUX max.oss.09
2024-08-07 14:16 ` [PATCH v1 3/4] colibri-imx8x: " max.oss.09
2024-08-07 14:16 ` [PATCH v1 4/4] colibri-imx8x: enable i.MX specific SNVS configuration max.oss.09
2024-08-07 14:38 ` [PATCH v1 0/4] apalis/colibri imx8: enable additional features Francesco Dolcini
2024-08-23 19:13 ` Fabio Estevam
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=20240807141655.4165667-2-max.oss.09@gmail.com \
--to=max.oss.09@gmail.com \
--cc=andrejs.cainikovs@toradex.com \
--cc=emanuele.ghidoli@toradex.com \
--cc=festevam@denx.de \
--cc=francesco.dolcini@toradex.com \
--cc=marcel.ziswiler@toradex.com \
--cc=max.krummenacher@toradex.com \
--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