plat/marvell/a8k/common/plat_pm.c
/* Trigger the power off of the system */
Trigger the power off of the system
Trigger the power off of the system
static void plat_marvell_system_power_off(void)
{
	struct power_off_method *pm_cfg;
	pm_cfg = (struct power_off_method *)plat_get_pm_cfg();
	if (!pm_cfg)
		return;
	plat_marvell_power_off_prepare(pm_cfg);
	plat_marvell_ddr_self_refresh_en();
	plat_marvell_power_off_trigger();
}
static void plat_marvell_system_power_off ( void ) { struct power_off_method * pm_cfg ; pm_cfg = ( struct power_off_method * ) plat_get_pm_cfg ( ) ; if ( ! pm_cfg ) return ; plat_marvell_power_off_prepare ( pm_cfg ) ; plat_marvell_ddr_self_refresh_en ( ) ; plat_marvell_power_off_trigger ( ) ; }
Trigger the power off of the system
Trigger the power off of the system
/* Check if there is valid PM config */ /* Prepare for power off */ /* Enable DDR self-refresh to keep the data during suspend */ /* Issue the power off */