summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Chotard <[email protected]>2025-04-01 18:12:51 +0200
committerPatrice Chotard <[email protected]>2025-04-25 16:00:23 +0200
commit9231b6070be08badc46a8aa0fd8f69fbaeee12e0 (patch)
tree4501d6fc160b12b12154e647c43926a04e0bb422
parenta7f00c8adaf3a8bc463ac55be4e4755f3b0ad4c9 (diff)
configs: stm32mp25: add USB host boot support
Add support for booting from USB pen drive, since USB host port is available on the STM32MP2. Signed-off-by: Patrice Chotard <[email protected]>
-rw-r--r--include/configs/stm32mp25_common.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/configs/stm32mp25_common.h b/include/configs/stm32mp25_common.h
index 1c28ce1c1e9..481b25a1f02 100644
--- a/include/configs/stm32mp25_common.h
+++ b/include/configs/stm32mp25_common.h
@@ -41,11 +41,18 @@
#define BOOT_TARGET_UBIFS(func)
#endif
+#ifdef CONFIG_CMD_USB
+#define BOOT_TARGET_USB(func) func(USB, usb, 0)
+#else
+#define BOOT_TARGET_USB(func)
+#endif
+
#define BOOT_TARGET_DEVICES(func) \
BOOT_TARGET_MMC1(func) \
BOOT_TARGET_UBIFS(func) \
BOOT_TARGET_MMC0(func) \
- BOOT_TARGET_MMC2(func)
+ BOOT_TARGET_MMC2(func) \
+ BOOT_TARGET_USB(func)
/*
* default bootcmd for stm32mp25: