yocto_layer_test/meta-st/meta-st-stm32mpu-hce/recipes-bsp/u-boot/u-boot-stm32mp/0001-If-a-devices-Main-Powe...

34 lines
1.0 KiB
Diff
Raw Permalink Normal View History

2023-10-04 07:29:08 +00:00
From e95aa0076313ed818b6b78cc1d5345dae2770731 Mon Sep 17 00:00:00 2001
From: mirikaKang <david.kang@sdt.inc>
Date: Tue, 29 Jun 2021 17:33:16 +0900
Subject: [PATCH] If a devices Main Power is used external power source instead
USB Power source
---
board/st/stm32mp1/stm32mp1.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 617d05d209..f96575e41c 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -490,9 +490,16 @@ static int board_check_usb_power(void)
pr_err("* Current too low, use a 3A power supply! *\n");
pr_err("****************************************************\n\n");
}
-
+/* Added by SDT */
+/* If a devices Main Power is used external power source instead USB Power source*/
+#ifdef USED_USB_POWER
led_error_blink(nb_blink);
-
+#else
+ if( nb_blink == U32_MAX )
+ pr_info("This Device Used External PowerSource\n");
+ else
+ led_error_blink(nb_blink);
+#endif
return 0;
}
#endif /* CONFIG_ADC */