Commit 351e3731 authored by Anson Huang's avatar Anson Huang
Browse files

imx: imx8qx: add system reset support



Add system reset support for i.MX8QX,
when Linux kernel issues "reboot" command,
TF-A will send command to inform system
controller to reset whole board according
to board design, tested on i.MX8QX MEK board.
Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
parent 8972694e
......@@ -19,4 +19,11 @@ void __dead2 imx_system_off(void)
panic();
}
void __dead2 imx_system_reset(void)
{
sc_pm_reset(ipc_handle, SC_PM_RESET_TYPE_BOARD);
wfi();
ERROR("system reset failed.\n");
panic();
}
......@@ -18,4 +18,5 @@ void plat_gic_cpuif_disable(void);
void plat_gic_pcpu_init(void);
void __dead2 imx_system_off(void);
void __dead2 imx_system_reset(void);
#endif /*__PLAT_IMX8_H__ */
......@@ -65,6 +65,7 @@ static const plat_psci_ops_t imx_plat_psci_ops = {
.pwr_domain_on_finish = imx_pwr_domain_on_finish,
.validate_ns_entrypoint = imx_validate_ns_entrypoint,
.system_off = imx_system_off,
.system_reset = imx_system_reset,
};
int plat_setup_psci_ops(uintptr_t sec_entrypoint,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment