mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: i.MX7/8M: Fix boot source detection on i.MX8MP
@ 2022-06-10  7:11 Uwe Kleine-König
  2022-06-10  7:51 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2022-06-10  7:11 UTC (permalink / raw)
  To: barebox

On i.MX8MP the indicator for serial boot is 14, which is different from
the value found for i.MX8MM. So consider 14 as serial boot, too and
document the machines where the respective values are found.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/mach-imx/boot.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c
index 652e2869f2d7..d12acb0715f6 100644
--- a/arch/arm/mach-imx/boot.c
+++ b/arch/arm/mach-imx/boot.c
@@ -522,7 +522,8 @@ static void __imx7_get_boot_source(enum bootsource *src, int *instance,
 	case 5:
 		*src = BOOTSOURCE_NOR;
 		break;
-	case 15:
+	case 14: /* observed on i.MX8MP for USB "serial" booting */
+	case 15: /* observed on i.MX8MM for USB "serial" booting */
 		*src = BOOTSOURCE_SERIAL;
 		break;
 	default:

base-commit: 6a3f9ed1f5c55957b2ed4f460955281539e8e785
prerequisite-patch-id: b42dc9f4cc168071380985b52b581c1a1298f303
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] ARM: i.MX7/8M: Fix boot source detection on i.MX8MP
  2022-06-10  7:11 [PATCH] ARM: i.MX7/8M: Fix boot source detection on i.MX8MP Uwe Kleine-König
@ 2022-06-10  7:51 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2022-06-10  7:51 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox

On Fri, Jun 10, 2022 at 09:11:43AM +0200, Uwe Kleine-König wrote:
> On i.MX8MP the indicator for serial boot is 14, which is different from
> the value found for i.MX8MM. So consider 14 as serial boot, too and
> document the machines where the respective values are found.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  arch/arm/mach-imx/boot.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c
> index 652e2869f2d7..d12acb0715f6 100644
> --- a/arch/arm/mach-imx/boot.c
> +++ b/arch/arm/mach-imx/boot.c
> @@ -522,7 +522,8 @@ static void __imx7_get_boot_source(enum bootsource *src, int *instance,
>  	case 5:
>  		*src = BOOTSOURCE_NOR;
>  		break;
> -	case 15:
> +	case 14: /* observed on i.MX8MP for USB "serial" booting */
> +	case 15: /* observed on i.MX8MM for USB "serial" booting */
>  		*src = BOOTSOURCE_SERIAL;
>  		break;
>  	default:
> 
> base-commit: 6a3f9ed1f5c55957b2ed4f460955281539e8e785
> prerequisite-patch-id: b42dc9f4cc168071380985b52b581c1a1298f303
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


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

end of thread, other threads:[~2022-06-10  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10  7:11 [PATCH] ARM: i.MX7/8M: Fix boot source detection on i.MX8MP Uwe Kleine-König
2022-06-10  7:51 ` Sascha Hauer

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