summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-04-08 12:49:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-29 08:01:32 +0200
commit485788954c1c4be5f64be143228fc54ec41c00f0 (patch)
tree7f2f7034af557314ceced91bd6ed7a75af33456f /drivers/regulator/Kconfig
parent0af79fbb6779921d3f1962773adb7fb57d3c89d4 (diff)
downloadbarebox-485788954c1c4be5f64be143228fc54ec41c00f0.tar.gz
Add initial regulator support
Provide minimal regulator support. Only supported operations are enabling and disabling regulators. Association of devices with their regulators is limited to devicetree only. If regulator support is disabled the API expands to static inline stubs so consumers can still use the API. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/regulator/Kconfig')
-rw-r--r--drivers/regulator/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
new file mode 100644
index 0000000..55f87a4
--- /dev/null
+++ b/drivers/regulator/Kconfig
@@ -0,0 +1,13 @@
+menuconfig REGULATOR
+ depends on OFDEVICE
+ bool "voltage regulator support"
+
+if REGULATOR
+
+config REGULATOR_FIXED
+ bool "fixed/gpio regulator"
+ help
+ This enables a simple fixed regulator. It is used for regulators
+ which are not software controllable or controllable via gpio.
+
+endif