summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorRobin Gong <yibin.gong@nxp.com>2017-11-13 18:04:31 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit9795cb39a1094f490c8b74c5d301f4338f1f2811 (patch)
tree9c069b7484f089fc7075bd254e9b78eb151ac670 /include/soc
parentffe6a290203ee6a1005cfc4f5499b18d6503341f (diff)
MLK-16765-1: soc: i.MX8: Update to the latest SCFW API
Update since new button/wdog interface added on scfw: commit e7d95e1e306a Signed-off-by: Robin Gong <yibin.gong@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/imx8/sc/svc/misc/api.h8
-rw-r--r--include/soc/imx8/sc/svc/timer/api.h16
2 files changed, 24 insertions, 0 deletions
diff --git a/include/soc/imx8/sc/svc/misc/api.h b/include/soc/imx8/sc/svc/misc/api.h
index 157c9ca4973d..46d4778e4185 100644
--- a/include/soc/imx8/sc/svc/misc/api.h
+++ b/include/soc/imx8/sc/svc/misc/api.h
@@ -360,6 +360,14 @@ sc_err_t sc_misc_get_temp(sc_ipc_t ipc, sc_rsrc_t resource,
sc_misc_temp_t temp, int16_t * celsius,
int8_t * tenths);
+/*!
+ * This function returns the current status of the ON/OFF button.
+ *
+ * @param[in] ipc IPC handle
+ * @param[out] status pointer to return button status
+ */
+void sc_misc_get_button_status(sc_ipc_t ipc, bool *status);
+
/* @} */
#endif /* _SC_MISC_API_H */
diff --git a/include/soc/imx8/sc/svc/timer/api.h b/include/soc/imx8/sc/svc/timer/api.h
index b270379e0eb4..40d6fff34a65 100644
--- a/include/soc/imx8/sc/svc/timer/api.h
+++ b/include/soc/imx8/sc/svc/timer/api.h
@@ -78,6 +78,22 @@ typedef uint32_t sc_timer_wdog_time_t;
sc_err_t sc_timer_set_wdog_timeout(sc_ipc_t ipc, sc_timer_wdog_time_t timeout);
/*!
+ * This function sets the watchdog pre-timeout in milliseconds. If not
+ * set then the pre-timeout defaults to the max. Once locked this value
+ * cannot be changed.
+ *
+ * @param[in] ipc IPC handle
+ * @param[in] pre_timeout pre-timeout period for the watchdog
+ *
+ * When the pre-timout expires an IRQ will be generated. Note this timeout
+ * clears when the IRQ is triggered.
+ *
+ * @return Returns an error code (SC_ERR_NONE = success).
+ */
+sc_err_t sc_timer_set_wdog_pre_timeout(sc_ipc_t ipc,
+ sc_timer_wdog_time_t pre_timeout);
+
+/*!
* This function starts the watchdog.
*
* @param[in] ipc IPC handle