1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-02-24 23:43:59 +01:00
Files
u-boot-megous/drivers
Samuel Holland 1da7b88cad phy: sun4i-usb: Refactor VBUS detection to match Linux
The Linux driver checks the VBUS detection GPIO first; then VBUS power
supply; then finally assumes VBUS is present. When adding VBUS power
supply support, we want to match that order, so we get the same behavior
in case both a GPIO and a power supply are provided in the device tree.

So refactor the function a bit to remove the early return, and use the
same "assume VBUS is present" final fallback.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2021-10-25 14:49:16 +01:00
..
2021-09-16 11:46:44 -04:00
2021-09-25 09:46:15 -06:00
2021-10-05 08:50:15 -04:00
2021-09-27 21:38:34 -04:00
2021-10-12 15:18:39 +03:00
2021-09-04 12:26:02 -04:00
2021-09-13 18:23:13 -04:00
2021-10-01 21:08:18 -04:00