rtc: omap: Support ext_wakeup configuration
authorMarcin Niestroj <m.niestroj@grinn-global.com>
Fri, 16 Sep 2016 09:26:28 +0000 (11:26 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 21 Sep 2016 19:46:04 +0000 (21:46 +0200)
commit97ea1906b3c2201273ea6bb40c43c611c056ddb3
tree71548d748629fe2f6b63e2ea9b92b007a6bbdeb9
parent970fc7f4afd52d638d88aeda985ea03ccd33acee
rtc: omap: Support ext_wakeup configuration

Support configuration of ext_wakeup sources. This patch makes it
possible to enable ext_wakeup and set it's polarity, depending on board
configuration. AM335x's dedicated PMIC (tps65217) uses ext_wakeup to
notify about power-button presses. Handling power-button presses enables
to recover from RTC-only power states correctly.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Documentation/devicetree/bindings/rtc/rtc-omap.txt
drivers/rtc/Kconfig
drivers/rtc/rtc-omap.c