diff options
| author | Annette Kobou <[email protected]> | 2025-08-25 15:54:31 +0200 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2025-09-05 09:03:28 -0300 |
| commit | 410d9ccc0388b77b1e21ba218b2e21138930c90f (patch) | |
| tree | 3d53f64b05a1886a2fd9022117263550c582ed34 | |
| parent | 6bd59313e0c9550e49d1973d664f896dab08c8f9 (diff) | |
imx: kontron-sl-mx6ul: Autostart fastboot if booted from USB
For booting via USB we want to automatically start the fastboot
command in order to access the board via uuu or other tools.
This allows for easier bringup of new boards during development
and manufacturing.
Signed-off-by: Annette Kobou <[email protected]>
Signed-off-by: Frieder Schrempf <[email protected]>
| -rw-r--r-- | board/kontron/sl-mx6ul/sl-mx6ul.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/kontron/sl-mx6ul/sl-mx6ul.c b/board/kontron/sl-mx6ul/sl-mx6ul.c index 16d89c64d61..e33907ee124 100644 --- a/board/kontron/sl-mx6ul/sl-mx6ul.c +++ b/board/kontron/sl-mx6ul/sl-mx6ul.c @@ -5,7 +5,9 @@ #include <asm/arch/clock.h> #include <asm/arch/sys_proto.h> +#include <asm/arch-mx6/imx-regs.h> #include <asm/global_data.h> +#include <env.h> #include <env_internal.h> #include <fdt_support.h> #include <phy.h> @@ -87,6 +89,16 @@ int board_init(void) return 0; } +int board_late_init(void) +{ + if (is_boot_from_usb()) { + env_set("bootdelay", "0"); + env_set("bootcmd", "fastboot 0"); + } + + return 0; +} + enum env_location env_get_location(enum env_operation op, int prio) { if (prio) |
