freebsd-dev/sys/dev/extres/regulator
Emmanuel Vadot a601368040 regulator: Add a regnode_set_constraint function
This method check that boot_on or always_on is set to 1 and if it
is it will try to enable the regulator.
The binding docs aren't clear on what to do but Linux enable the regulator
if any of those properties is set so we want to do the same.
The function first check the status to see if the regulator is
already enabled it then get the voltage to check if it is in a acceptable
range and then enables it.
This will be either called from the regnode_init method (if it's needed by the platform)
or by a SYSINIT at SI_SUB_LAST

Reviewed by:	mmel
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D22106
2019-10-23 09:56:53 +00:00
..
regdev_if.m
regnode_if.m Fix handling of enable counter for shared GPIO line in fixed regulator. 2018-06-16 08:25:38 +00:00
regulator_bus.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
regulator_fixed.c regulator_fixed: Do not disable fixed regulator at probe 2018-11-26 18:46:15 +00:00
regulator_fixed.h
regulator.c regulator: Add a regnode_set_constraint function 2019-10-23 09:56:53 +00:00
regulator.h regulator: Add a regnode_set_constraint function 2019-10-23 09:56:53 +00:00