]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: add i.MX system controller RTC support
authorAnson Huang <anson.huang@nxp.com>
Thu, 20 Dec 2018 08:56:16 +0000 (08:56 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 20 Dec 2018 11:47:40 +0000 (12:47 +0100)
commit1bf20da84264a0b08e15b392681ebf475ceabb7a
treea9a72c63d648cc7269a92587fa2bc7179c4b8087
parentfb13a25d5b982c8eccf27fa73171bf064cb231dd
rtc: add i.MX system controller RTC support

i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller
inside, the system controller is in charge of controlling power,
clock and secure rtc etc..

This patch adds i.MX system controller RTC driver support,
Linux kernel has to communicate with system controller via MU
(message unit) IPC to set/get RTC time and other alarm functions,
since the RTC set time needs to be done in secure EL3 mode (required
by system controller firmware) and alarm functions needs to be done
with general MU IRQ handle, these depend on other components which
are NOT ready, so this patch ONLY enables the RTC time read.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-imx-sc.c [new file with mode: 0644]