summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorRobin Gong <yibin.gong@nxp.com>2017-10-27 09:40:30 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commitbb44c6e244b9a5c2cf710568044ec54f01c18c08 (patch)
tree12221f4da6bac25f7d1c4971c63eedcc9358d3c6 /include/soc
parentf856f2349c63c88484619e3e1d855664e4aeec18 (diff)
MLK-16704-1: watchdog: imx8_wdt: add watchdog driver for i.mx8QM/QXP
This watchdog driver is a virtual driver in Linux and call ATF interface where call SCFW eventually. In SCFW, it's done by SCU timer tick instead of hardware watchdog.This is why we have to call ATF because such system resource owned by secure patition.Currently, booard reset happen if not ping this software watchdog in time in linux side, may change to partition reboot once SCFW support this feature in the future. BuildInfo: - SCFW 93c142a9, IMX-MKIMAGE 2522fd70, ATF f2547fb - U-Boot 2017.03-00097-gd7599cf Signed-off-by: Robin Gong <yibin.gong@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/imx/fsl_sip.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/soc/imx/fsl_sip.h b/include/soc/imx/fsl_sip.h
index 75459b10dd82..1f4e31933e0e 100644
--- a/include/soc/imx/fsl_sip.h
+++ b/include/soc/imx/fsl_sip.h
@@ -22,6 +22,11 @@
#define FSL_SIP_SRTC 0xC2000002
#define FSL_SIP_SRTC_SET_TIME 0x00
+#define FSL_SIP_SRTC_START_WDOG 0x01
+#define FSL_SIP_SRTC_STOP_WDOG 0x02
+#define FSL_SIP_SRTC_SET_WDOG_ACT 0x03
+#define FSL_SIP_SRTC_PING_WDOG 0x04
+#define FSL_SIP_SRTC_SET_TIMEOUT_WDOG 0x05
#define IMX8MQ_PD_MIPI 0
#define IMX8MQ_PD_PCIE1 1
@@ -35,4 +40,9 @@
#define IMX8MQ_PD_MIPI_CSI2 9
#define IMX8MQ_PD_PCIE2 10
+#define SC_TIMER_WDOG_ACTION_PARTITION 0 /*!< Reset partition */
+#define SC_TIMER_WDOG_ACTION_WARM 1 /*!< Warm reset system */
+#define SC_TIMER_WDOG_ACTION_COLD 2 /*!< Cold reset system */
+#define SC_TIMER_WDOG_ACTION_BOARD 3 /*!< Reset board */
+
#endif