mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master 1/2] ARM: i.MX8MQ: fix early boot hang
@ 2024-03-13 14:41 Ahmad Fatoum
  2024-03-13 14:41 ` [PATCH master 2/2] pmdomain: imx: gpc2: ignore missing regulators Ahmad Fatoum
  2024-03-15  7:09 ` [PATCH master 1/2] ARM: i.MX8MQ: fix early boot hang Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2024-03-13 14:41 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Commit 6ea731079140 ("ARM: i.MX8MQ: Streamline lowlevel startup code")
changed i.MX8MQ PBL code to mimic the code introduced for later i.MX8M
variants. The mimicry went a bit too far though and it exchanged i.MX8MQ
boot source lookup with that of the i.MX8MN. Fix this to avoid the boot
hanging with:

  Unhandled bootsource BOOTSOURCE_0

Fixes: 6ea731079140 ("ARM: i.MX8MQ: Streamline lowlevel startup code")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/mach-imx/atf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/atf.c b/arch/arm/mach-imx/atf.c
index 9cbc38ef11e8..8b804602681b 100644
--- a/arch/arm/mach-imx/atf.c
+++ b/arch/arm/mach-imx/atf.c
@@ -323,7 +323,7 @@ void imx8mq_load_bl33(void *bl33)
 	enum bootsource src;
 	int instance;
 
-	imx8mn_get_boot_source(&src, &instance);
+	imx8mq_get_boot_source(&src, &instance);
 	switch (src) {
 	case BOOTSOURCE_MMC:
 		imx8m_esdhc_load_image(instance, bl33);
-- 
2.39.2




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-15  7:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 14:41 [PATCH master 1/2] ARM: i.MX8MQ: fix early boot hang Ahmad Fatoum
2024-03-13 14:41 ` [PATCH master 2/2] pmdomain: imx: gpc2: ignore missing regulators Ahmad Fatoum
2024-03-15  7:09 ` [PATCH master 1/2] ARM: i.MX8MQ: fix early boot hang Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox