summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2017-09-01 13:30:29 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:28:21 +0800
commit7292fba301c6e715e4736b5e8ff712047a97913d (patch)
treeb1733c962012f66e5cae5b494ec57517de755730 /include/soc
parentf29bdffa0fec16954ef6e219f54bb38d8203d60f (diff)
MLK-16351 rtc: imx-sc: use SIP to set RTC time
For system controller RTC, as it belongs SC_R_SYSTEM, and SC_R_SYSTEM is assigned in ARM-Trusted-Firmware, so here needs to use SIP to trap into ATF to do set time, or system controller firmware will return error since linux kernel does NOT own this system resource. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/imx/fsl_sip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/soc/imx/fsl_sip.h b/include/soc/imx/fsl_sip.h
index 1d39f99f9137..75459b10dd82 100644
--- a/include/soc/imx/fsl_sip.h
+++ b/include/soc/imx/fsl_sip.h
@@ -20,6 +20,9 @@
#define FSL_SIP_CPUFREQ 0xC2000001
#define FSL_SIP_SET_CPUFREQ 0x00
+#define FSL_SIP_SRTC 0xC2000002
+#define FSL_SIP_SRTC_SET_TIME 0x00
+
#define IMX8MQ_PD_MIPI 0
#define IMX8MQ_PD_PCIE1 1
#define IMX8MQ_PD_OTG1 2