diff mbox series

ARM: stm32: Add USB host boot support

Message ID 20210212125052.26972-1-marex@denx.de
State Accepted
Commit 0bbfae717f4a42bfac728c116d33615cef032723
Delegated to: Patrick Delaunay
Headers show
Series ARM: stm32: Add USB host boot support | expand

Commit Message

Marek Vasut Feb. 12, 2021, 12:50 p.m. UTC
Add support for booting from USB pen drive, since USB host port is
available on the STM32MP1.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
 include/configs/stm32mp1.h | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Patrick DELAUNAY Feb. 23, 2021, 9:01 a.m. UTC | #1
Hi Marek,

On 2/12/21 1:50 PM, Marek Vasut wrote:
> Add support for booting from USB pen drive, since USB host port is
> available on the STM32MP1.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>   include/configs/stm32mp1.h | 7 +++++++
>   1 file changed, 7 insertions(+)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick
Patrick DELAUNAY Feb. 26, 2021, 2:40 p.m. UTC | #2
Hi,

On 2/12/21 1:50 PM, Marek Vasut wrote:
> Add support for booting from USB pen drive, since USB host port is
> available on the STM32MP1.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>   include/configs/stm32mp1.h | 7 +++++++
>   1 file changed, 7 insertions(+)
>

Applied to u-boot-stm/master, thanks!

Regards
Patrick
diff mbox series

Patch

diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
index c5539285af1..36e400453ea 100644
--- a/include/configs/stm32mp1.h
+++ b/include/configs/stm32mp1.h
@@ -102,11 +102,18 @@ 
 #define BOOT_TARGET_UBIFS(func)
 #endif
 
+#ifdef CONFIG_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_USB(func)		\
 	BOOT_TARGET_PXE(func)
 
 /*