]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: stm32: Increase USB power-good delay on DHSOM
authorMarek Vasut <marex@denx.de>
Sat, 13 Nov 2021 02:24:44 +0000 (03:24 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 13 Dec 2021 13:33:47 +0000 (14:33 +0100)
The USB hub on STM32MP1 DHCOM boards needs to wait a bit longer until
the USB Vbus is stable. Increase the USB power-good delay to 1 s.

This adds default-undefined STM32MP_BOARD_EXTRA_ENV variable into
stm32mp15_common.h to reduce duplication in board-specific config
files adding custom environment.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
include/configs/stm32mp15_common.h
include/configs/stm32mp15_dh_dhsom.h

index 4e2cabff2e70fee8e5cb290891bf894c57f1ae48..dab679f71e3d7ab4b303ed568ec0b6d1b2bd359b 100644 (file)
        "env_check=if env info -p -d -q; then env save; fi\0" \
        "boot_net_usb_start=true\0"
 
+#ifndef STM32MP_BOARD_EXTRA_ENV
+#define STM32MP_BOARD_EXTRA_ENV
+#endif
+
 #include <config_distro_bootcmd.h>
 
 /*
        STM32MP_BOOTCMD \
        STM32MP_PARTS_DEFAULT \
        BOOTENV \
-       STM32MP_EXTRA
+       STM32MP_EXTRA \
+       STM32MP_BOARD_EXTRA_ENV
 
 #endif /* ifndef CONFIG_SPL_BUILD */
 #endif /* ifdef CONFIG_DISTRO_DEFAULTS*/
index c559cd72da750c5ced8cc9116831a1e0a12f6a77..bac9e8388a7e6f5be4f2120d0bbaa63a46ced0b1 100644 (file)
@@ -8,6 +8,9 @@
 #ifndef __CONFIG_STM32MP15_DH_DHSOM_H__
 #define __CONFIG_STM32MP15_DH_DHSOM_H__
 
+#define STM32MP_BOARD_EXTRA_ENV \
+       "usb_pgood_delay=1000\0"
+
 #include <configs/stm32mp15_common.h>
 
 #define CONFIG_SPL_TARGET              "u-boot.itb"