power/reset: Add a new driver implementing 'power off by restarting'
authorAndrew Lunn <andrew@lunn.ch>
Fri, 28 Dec 2012 12:25:11 +0000 (13:25 +0100)
committerAnton Vorontsov <anton@enomsg.org>
Sun, 6 Jan 2013 22:00:31 +0000 (14:00 -0800)
commitffd8f9a727f27270584c7472ca56cce1e4736888
treee12dbb3f62ace5eb65251bc646f3da5a47a193ad
parente8fc721a9ab8dd6723063a92f5c5fdb5eaffbd6e
power/reset: Add a new driver implementing 'power off by restarting'

Some devices, Buffalo Linkstation LS-XHL and LS-CHLv2 for example,
power-off by restarting to letting u-boot hold the SoC until the user
presses a key. Add a generic driver to implement this. It binds a function
to pm_power_off, which calls arm_pm_restart.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Michael Walle <michael@walle.cc>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Documentation/devicetree/bindings/power_supply/restart-poweroff.txt [new file with mode: 0644]
drivers/power/reset/Kconfig
drivers/power/reset/Makefile
drivers/power/reset/restart-poweroff.c [new file with mode: 0644]