aboutsummaryrefslogtreecommitdiff
path: root/include/firmware
diff options
context:
space:
mode:
authorIgor Opaniuk2024-01-31 13:49:25 +0100
committerFabio Estevam2024-02-08 09:17:46 -0300
commit0bc69a1d38f4176ec5cfaba1c41be6b7e7fd46b5 (patch)
tree9ed5c3c3c2f64844553114f5e7af97ba4807c3c2 /include/firmware
parent7c1f8ce3956995129a8c36734ba9899ae6d0cb28 (diff)
imx: scu_api: add implementation of sc_pm_reset_reason
Add implementation of sc_pm_reset_reason() call for obtaining reset reason. Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Diffstat (limited to 'include/firmware')
-rw-r--r--include/firmware/imx/sci/sci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/firmware/imx/sci/sci.h b/include/firmware/imx/sci/sci.h
index f832982b3de..7d8499f070a 100644
--- a/include/firmware/imx/sci/sci.h
+++ b/include/firmware/imx/sci/sci.h
@@ -75,6 +75,7 @@ int sc_pm_set_clock_parent(sc_ipc_t ipc, sc_rsrc_t resource, sc_pm_clk_t clk,
int sc_pm_cpu_start(sc_ipc_t ipc, sc_rsrc_t resource, sc_bool_t enable,
sc_faddr_t address);
void sc_pm_reboot(sc_ipc_t ipc, sc_pm_reset_type_t type);
+int sc_pm_reset_reason(sc_ipc_t ipc, sc_pm_reset_reason_t *reason);
sc_bool_t sc_pm_is_partition_started(sc_ipc_t ipc, sc_rm_pt_t pt);
int sc_pm_resource_reset(sc_ipc_t ipc, sc_rsrc_t resource);
@@ -385,6 +386,11 @@ static inline void sc_pm_reboot(sc_ipc_t ipc, sc_pm_reset_type_t type)
{
}
+static inline int sc_pm_reset_reason(sc_ipc_t ipc, sc_pm_reset_reason_t *reason)
+{
+ return -EOPNOTSUPP;
+}
+
static inline int sc_seco_v2x_build_info(sc_ipc_t ipc, u32 *version, u32 *commit)
{
return -EOPNOTSUPP;