]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx: kontron-sl-mx8mm: Autostart fastboot if booted from USB
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 7 Oct 2025 08:16:08 +0000 (10:16 +0200)
committerFabio Estevam <festevam@gmail.com>
Tue, 7 Oct 2025 11:58:28 +0000 (08:58 -0300)
This is useful for development and manufacturing setups as fastboot
can be used without requiring any user input on the device.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
board/kontron/sl-mx8mm/sl-mx8mm.c

index cf71a4cf367066c2b90c0df221c2bd97fb3347de..220c9701ca54dfb27501a880f4a3a2a53921cb4c 100644 (file)
@@ -167,6 +167,11 @@ int board_late_init(void)
                env_set("touch_rst_gpio", "87");
        }
 
+       if (is_usb_boot()) {
+               env_set("bootcmd", "fastboot 0");
+               env_set("bootdelay", "0");
+       }
+
        return 0;
 }