freebsd-skq/sys/dev/extres
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
..
clk Define meaning of remaining clock rounding flags combinations. 2018-02-27 16:08:08 +00:00
hwreset Remove redundant declarations. Newer gcc has a warning for these so will 2017-08-19 17:18:27 +00:00
phy Convert extres/phy to kobj model. 2018-01-20 17:02:17 +00:00
regulator regulator: Disable unused regulator 2018-04-04 06:44:24 +00:00
syscon Add SPDX tags to syscon bits, correct inconsistency in Copyright line. 2018-01-13 19:00:41 +00:00