rtc: imx-sc: add rtc alarm support
authorAnson Huang <anson.huang@nxp.com>
Tue, 9 Apr 2019 05:00:07 +0000 (05:00 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 1 Jun 2019 21:17:10 +0000 (23:17 +0200)
commita3094fc1a15eff0f69f6fdc335b1b21081b27a74
tree6430b832896222c2b883d92b7279f28ce43c1faf
parent42ca37ca476249ef01186a7c69a6b6c860e72c29
rtc: imx-sc: add rtc alarm support

Add i.MX system controller RTC alarm support, the RTC alarm
is implemented via SIP(silicon provider) runtime service call
and ARM-Trusted-Firmware will communicate with system controller
via MU(message unit) IPC to set RTC alarm. When RTC alarm fires,
system controller will generate a common MU irq event and notify
system controller RTC driver to handle the irq event.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-imx-sc.c