summaryrefslogtreecommitdiff
path: root/gxp-mcu.h
diff options
context:
space:
mode:
Diffstat (limited to 'gxp-mcu.h')
-rw-r--r--gxp-mcu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gxp-mcu.h b/gxp-mcu.h
index 3612af9..855b3e7 100644
--- a/gxp-mcu.h
+++ b/gxp-mcu.h
@@ -39,6 +39,15 @@ int gxp_mcu_init(struct gxp_dev *gxp, struct gxp_mcu *mcu);
/* cleans up resources in @mcu */
void gxp_mcu_exit(struct gxp_mcu *mcu);
/*
+ * Forcefully resets MCU without LPM transition.
+ * @gxp: The GXP device to reset MCU.
+ * @release_reset: If true, it will release reset bits and let MCU transit to RUN state. Set it as
+ * false only when the block power cycle is needed without running MCU.
+ *
+ * Returns 0 on success, a negative errno on failure.
+ */
+int gxp_mcu_reset(struct gxp_dev *gxp, bool release_reset);
+/*
* A wrapper function to allocate memory from @mcu->remap_data_pool.
*
* Returns 0 on success, a negative errno otherwise.