[PATCH v2 07/12] board: stm32mp1: remove bootdelay configuration for usb or serial boot

Patrick Delaunay patrick.delaunay at st.com
Wed Apr 22 14:29:15 CEST 2020


It is not allowed to change the user setting of bootdelay, so
remove the check of the boot-source to disable it dynamically
in board_late_init()


Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
---

Changes in v2:
- remove bootdelay configuration after Wolfgang's comment on dropped patch
  [11/16] board: stm32mp1: check env_get result in board_late_init

 board/st/stm32mp1/stm32mp1.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 280c5b7ae4..687d605e29 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -692,7 +692,6 @@ int board_init(void)
 
 int board_late_init(void)
 {
-	char *boot_device;
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 	const void *fdt_compat;
 	int fdt_compat_len;
@@ -740,11 +739,6 @@ int board_late_init(void)
 	board_check_usb_power();
 #endif /* CONFIG_ADC */
 
-	/* Check the boot-source to disable bootdelay */
-	boot_device = env_get("boot_device");
-	if (!strcmp(boot_device, "serial") || !strcmp(boot_device, "usb"))
-		env_set("bootdelay", "0");
-
 	return 0;
 }
 
-- 
2.17.1



More information about the U-Boot mailing list