]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: phytec: phycore-imx93: Enter fastboot on USB boot by default
authorPrimoz Fiser <primoz.fiser@norik.com>
Thu, 12 Feb 2026 08:33:30 +0000 (09:33 +0100)
committerFabio Estevam <festevam@gmail.com>
Sat, 28 Feb 2026 18:31:49 +0000 (15:31 -0300)
In case board is booted from USB, enter fastboot by default to enable
the UUU flashing. In case of abort continue with the regular bootstd
scan. User also has possibility to override the default bootcmd from
the environment. Last but not least, this syncs behavior with other
PHYTEC boards from the i.MX family.

Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
board/phytec/phycore_imx93/phycore-imx93.c

index cdaedd52c141002b9ebafe4555a3f3877bff4d8c..036c9f5de7ea8837269e0c446632f844cf97f93e 100644 (file)
@@ -41,6 +41,11 @@ int board_late_init(void)
        case MMC1_BOOT:
                env_set_ulong("mmcdev", 0);
                break;
+       case USB_BOOT:
+               printf("Detect USB boot. Will enter fastboot mode!\n");
+               if (!strcmp(env_get("bootcmd"), env_get_default("bootcmd")))
+                       env_set("bootcmd", "fastboot 0; bootflow scan -lb;");
+               break;
        default:
                break;
        }