rtc: sc27xx: Add check to see if need to enable the alarm interrupt
authorBaolin Wang <baolin.wang@linaro.org>
Thu, 18 Oct 2018 08:52:29 +0000 (16:52 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 25 Oct 2018 00:35:40 +0000 (02:35 +0200)
commitbf2c532b67fc077051e17de4a1304a83e5ca5b15
tree7b6f141c2b99729fd9e0b3884bdf34a6d40fb60f
parentb2ddc48582efa157635f7ef815c9d4a657e2cabd
rtc: sc27xx: Add check to see if need to enable the alarm interrupt

The RTC interrupt enable register is not put in always-power-on region
supplied by VDDRTC, so we should check if we need enable the alarm
interrupt when system booting.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sc27xx.c