summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-03-13 15:41:35 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-03-15 08:09:05 +0100
commita4d3c0b78250e347446ab35f9d7327847eb15abf (patch)
tree1ae28cc8ee5d6b979e2cfcc730e6eb86dae07321
parent6314692c53904c4d893535676fdd35d93adf166e (diff)
downloadbarebox-a4d3c0b78250.tar.gz
barebox-a4d3c0b78250.tar.xz
ARM: i.MX8MQ: fix early boot hang
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> Link: https://lore.barebox.org/20240313144136.2157496-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-imx/atf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/atf.c b/arch/arm/mach-imx/atf.c
index 2d8388e8e9..8243378448 100644
--- a/arch/arm/mach-imx/atf.c
+++ b/arch/arm/mach-imx/atf.c
@@ -320,7 +320,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);