opnsense-src/sys/dev/extres/regulator
Emmanuel Vadot 3f01401236 regulator: Disable unused regulator
bootloaders such as u-boot might enable regulators, or simply regulators could
be enabled by default by the PMIC, even if we don't have a driver for
the device or subsystem.
Disable unused regulators just before going to userland.
A tunable hw.regulator.disable_unused is added to not disable them in case
this causes problems on some board but the default behavior is to disable
everything unused.
I prefer to break thinks now and fix them rather than never switch to the
case were we disable regulators.

Tested on : Pine64-LTS (an idle board goes from ~0.33A to ~0.27A)
Tested on : BananaPi M2
Differential Revision:	https://reviews.freebsd.org/D14781
2018-04-04 06:44:24 +00:00
..
regdev_if.m
regnode_if.m
regulator.c regulator: Disable unused regulator 2018-04-04 06:44:24 +00:00
regulator.h extres/regulators: Add sysctls for regulators 2018-03-11 04:37:05 +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 Rename gpiobus_map_pin() to gpiobus_acquire_pin(), to better reflect the 2016-05-26 15:45:36 +00:00
regulator_fixed.h