summaryrefslogtreecommitdiff
path: root/plat/imx/imx8mq/include/soc.h
diff options
context:
space:
mode:
Diffstat (limited to 'plat/imx/imx8mq/include/soc.h')
-rw-r--r--plat/imx/imx8mq/include/soc.h57
1 files changed, 12 insertions, 45 deletions
diff --git a/plat/imx/imx8mq/include/soc.h b/plat/imx/imx8mq/include/soc.h
index 65a49d00..af6fc09e 100644
--- a/plat/imx/imx8mq/include/soc.h
+++ b/plat/imx/imx8mq/include/soc.h
@@ -7,55 +7,22 @@
#ifndef __IMX_SOC_H
#define __IMX_SOC_H
-enum imx_cpu_pwr_mode {
- WAIT_CLOCKED, /* wfi only */
- WAIT_UNCLOCKED, /* WAIT */
- WAIT_UNCLOCKED_POWER_OFF, /* WAIT + SRPG */
- STOP_POWER_ON, /* just STOP */
- STOP_POWER_OFF, /* STOP + SRPG */
-};
-
-enum imx_gpc_slot {
- A53_CORE0,
- A53_CORE1,
- A53_CORE2,
- A53_CORE3,
- A53_SCU,
-};
-
-enum imx_gpc_pu_slot {
- FAST_MEGA_MIX,
- MIPI_PHY,
- PCIE1_PHY,
- OTG1_PHY,
- OTG2_PHY,
- RESERVED,
- CORE1_M4,
- DDR1_PHY,
- DDR2_PHY,
- GPU,
- VPU,
- HDMI_PHY,
- DSIP,
- MIPI_CSI1,
- MIPI_CSI2,
- PCIE2_PHY,
-};
-
void imx_gpc_set_m_core_pgc(unsigned int cpu, bool pdn);
-void imx_gpc_set_lpm_mode(enum imx_cpu_pwr_mode mode);
-void imx_gpc_set_cpu_power_gate_by_lpm(unsigned int cpu, bool pdn);
-void imx_gpc_set_plat_power_gate_by_lpm(bool pdn);
-void imx_gpc_set_core_pdn_pup_by_software(unsigned int cpu, bool pdn);
-void imx_gpc_set_cpu_ppower_gate_by_wfi(unsigned int cpu, bool pdn);
-void imx_gpc_pre_suspend(bool arm_power_off);
-void imx_gpc_post_resume(void);
+void imx_anamix_pre_suspend(void);
+void imx_anamix_post_resume(void);
void imx_gpc_init(void);
+void imx_set_cpu_secure_entry(int cpu_id, uintptr_t sec_entrypoint);
+void imx_set_cpu_pwr_off(int cpu_id);
+void imx_set_cpu_pwr_on(int cpu_id);
+void imx_set_cpu_lpm(int cpu_id, bool pdn);
+void imx_set_cluster_standby(bool pdn);
+void imx_set_cluster_powerdown(int last_core, bool pdn);
+void imx_set_sys_lpm(bool retention);
+void imx_set_rbc_count(void);
+void imx_clear_rbc_count(void);
+
void ddrc_enter_retention(void);
void ddrc_exit_retention(void);
-void imx_enable_cpu(unsigned int cpu, bool enable);
-int imx_is_m4_enabled(void);
-void imx_set_cpu_jump_addr(unsigned int cpu, void *jump_addr);
#endif /* __IMX_SOC_H */