Files
u-boot/board
Patrice Chotard ecde6614bc board: stm32pm1: Fix board_check_usb_power()
Depending of plugged power source (computer, wall charger, ...) it can
happen that we got the following message:

"****************************************************"
"*      USB TYPE-C charger not compliant with       *"
"*                   specification                  *"
"****************************************************"
"                                                    "
"### ERROR ### Please RESET the board ###            "

This issue has been detected on STM32MP135f-DK board.

It's due to max_uV and min_uV value are initialized at beginning of
board_check_usb_power() and can then be used for the 2 iteration of
adc_measurement().
max_uV/min_uV values issued of the first adc_measurement() iteration
are used as input of the second adc_measurement() iteration, which
can lead to incoherent pair of min_uV/max_uV values.

To ensure that adc_measurement() returns coherent value for max_uV and
min_uV, initialize max_uV and min_uV at each loop start.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
2026-04-30 08:01:11 +02:00
..
2026-04-27 11:26:40 -06:00
2025-11-29 14:42:24 -03:00
2025-05-09 15:05:14 -06:00
2026-04-27 11:26:40 -06:00
2026-04-21 20:49:40 -03:00
2025-06-02 17:26:16 -06:00
2024-07-22 10:51:47 -06:00
2026-03-18 13:07:36 -06:00
2025-05-09 15:05:14 -06:00
2026-04-27 11:26:40 -06:00
2026-04-27 11:26:40 -06:00
2025-04-11 12:16:44 -06:00
2026-04-27 11:26:40 -06:00
2025-04-11 12:16:44 -06:00