rtc: jz4740: Add support for acting as the system power controller
authorPaul Cercueil <paul@crapouillou.net>
Mon, 31 Oct 2016 20:39:48 +0000 (21:39 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 4 Nov 2016 23:00:49 +0000 (00:00 +0100)
commitf9eb69d1ae2f82b0e556852bf719f550c2a34193
tree171259398d85c0e02718ea9a9616500aeacfd3c3
parentc05229a893e79dc992abe0e561d7da0e3e84e1d8
rtc: jz4740: Add support for acting as the system power controller

The 'system-power-controller' singleton entry can be used in the
devicetree node of the jz4740-rtc driver to specify that the driver is
granted the right to power off the system through the registers of the
RTC unit.

See the documentation for more details:
Documentation/devicetree/bindings/rtc/ingenic,jz4740-rtc.txt

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-jz4740.c