u-boot/drivers/power/regulator
Eugen Hristev 4fcba5d556 regulator: implement basic reference counter
Some devices share a regulator supply, when the first one will request
regulator disable, the second device will have it's supply cut off before
graciously shutting down. Hence there will be timeouts and other failed
operations.
Implement a reference counter mechanism similar with what is done in
Linux, to keep track of enable and disable requests, and only disable the
regulator when the last of the consumers has requested shutdown.

Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2023-07-04 11:20:56 +09:00
..
act8846.c
anatop_regulator.c power: regulator: add driver for ANATOP regulator 2021-04-20 07:31:12 -04:00
as3722_regulator.c
axp_regulator.c power: regulator: Add a driver for AXP PMIC regulators 2023-01-23 01:18:31 +00:00
axp_usb_power.c power: regulator: Add a driver for the AXP USB power supply 2023-04-28 01:29:40 +01:00
bd71837.c regulator: bd718x7: Bypass bogus warnings 2022-02-05 15:49:01 +01:00
da9063.c
fan53555.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
fixed.c regulator: fixed: add possibility to enable by clock 2022-04-12 19:10:44 +02:00
gpio-regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
Kconfig power: regulator: Add a driver for the AXP USB power supply 2023-04-28 01:29:40 +01:00
lp873x_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
lp87565_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
Makefile power: regulator: Add a driver for the AXP USB power supply 2023-04-28 01:29:40 +01:00
max77686.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
npcm8xx_regulator.c power: regulator: Add support for NPCM8xx 2022-12-26 15:44:00 +09:00
palmas_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
pbias_regulator.c
pca9450.c power: pmic: Add NXP PCA9451A PMIC support 2023-03-30 00:45:39 +02:00
pfuze100.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
pwm_regulator.c
regulator-uclass.c power: regulator: fix autoset error handling 2022-10-26 11:47:12 +09:00
regulator_common.c regulator: implement basic reference counter 2023-07-04 11:20:56 +09:00
regulator_common.h regulator: implement basic reference counter 2023-07-04 11:20:56 +09:00
rk8xx.c
s2mps11_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
s5m8767.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
sandbox.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
scmi_regulator.c power: regulator: scmi: simplify scmi_voltd_set_enable() 2022-06-23 13:12:56 -04:00
stm32-vrefbuf.c
stpmic1.c
tps62360_regulator.c
tps65090_regulator.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
tps65219_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
tps65910_regulator.c
tps65941_regulator.c power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00