]> git.baikalelectronics.ru Git - uboot.git/commit
power: regulator: Add a driver for the AXP USB power supply
authorSamuel Holland <samuel@sholland.org>
Sun, 22 Jan 2023 23:46:20 +0000 (17:46 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Fri, 28 Apr 2023 00:29:40 +0000 (01:29 +0100)
commitf354be06608510460a8b0ad4d663ae517a58a618
treefa1adf12d514c54579eb7fb5271c396f7f17455a
parent877f89639ab99a5e394c7d9e0265c9d3b59d599a
power: regulator: Add a driver for the AXP USB power supply

This driver reports the presence/absence of voltage on the PMIC's USB
VBUS pin. This information is used by the USB PHY driver. The
corresponding Linux driver uses the power supply class, which does not
exist in U-Boot. UCLASS_REGULATOR seems to be the closest match.

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>
drivers/power/regulator/Kconfig
drivers/power/regulator/Makefile
drivers/power/regulator/axp_usb_power.c [new file with mode: 0644]