summaryrefslogtreecommitdiff
path: root/drivers/power/reset/Kconfig
diff options
context:
space:
mode:
authorJamie Lentin <jm@lentin.co.uk>2012-11-17 08:51:04 (GMT)
committerJason Cooper <jason@lakedaemon.net>2012-11-24 02:56:38 (GMT)
commit96ff0f5c7efd4a2205c48a76a6a1fcd2731e6128 (patch)
treed928f8f738dcc2736d19a6920e5b73bc158f3ae7 /drivers/power/reset/Kconfig
parentf4a00139b7cbeff538e616a21f6b57249a9d3ed8 (diff)
downloadlinux-96ff0f5c7efd4a2205c48a76a6a1fcd2731e6128.tar.xz
power: Add simple poweroff-gpio driver
Given appropriate devicetree bindings, this driver registers a pm_power_off function to set a GPIO line high/low to power down your board. Signed-off-by: Jamie Lentin <jm@lentin.co.uk> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by:Simon Baatz <gmbnomis@gmail.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'drivers/power/reset/Kconfig')
-rw-r--r--drivers/power/reset/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
new file mode 100644
index 0000000..6461b48
--- /dev/null
+++ b/drivers/power/reset/Kconfig
@@ -0,0 +1,15 @@
+menuconfig POWER_RESET
+ bool "Board level reset or power off"
+ help
+ Provides a number of drivers which either reset a complete board
+ or shut it down, by manipulating the main power supply on the board.
+
+ Say Y here to enable board reset and power off
+
+config POWER_RESET_GPIO
+ bool "GPIO power-off driver"
+ depends on OF_GPIO && POWER_RESET
+ help
+ This driver supports turning off your board via a GPIO line.
+ If your board needs a GPIO high/low to power down, say Y and
+ create a binding in your devicetree.