plat/marvell/a8k/common/plat_pm.c
/*******************************************************************************
 * This handler is called by the PSCI implementation during the `SYSTEM_SUSPEND`
 * call to get the `power_state` parameter. This allows the platform to encode
 * the appropriate State-ID field within the `power_state` parameter which can
 * be utilized in `pwr_domain_suspend()` to suspend to system affinity level.
 ******************************************************************************/
This handler is called by the PSCI implementation during the `SYSTEM_SUSPEND`
call to get the `power_state` parameter. This allows the platform to encode
the appropriate State-ID field within the `power_state` parameter which can
be utilized in `pwr_domain_suspend()` to suspend to system affinity level.
This handler is called by the PSCI implementation during the ` SYSTEM_SUSPEND ` call to get the ` power_state ` parameter . This allows the platform to encode the appropriate State - ID field within the ` power_state ` parameter which can be utilized in ` pwr_domain_suspend () ` to suspend to system affinity level .
static void a8k_get_sys_suspend_power_state(psci_power_state_t *req_state)
{
	for (int i = MPIDR_AFFLVL0; i <= PLAT_MAX_PWR_LVL; i++)
		req_state->pwr_domain_state[i] = PLAT_MAX_OFF_STATE;
}
static void a8k_get_sys_suspend_power_state ( psci_power_state_t * req_state ) { for ( int i = MPIDR_AFFLVL0 ; i <= PLAT_MAX_PWR_LVL ; i ++ ) req_state -> pwr_domain_state [ i ] = PLAT_MAX_OFF_STATE ; }
This handler is called by the PSCI implementation during the `SYSTEM_SUSPEND`
 call to get the `power_state` parameter.
This handler is called by the PSCI implementation during the ` SYSTEM_SUSPEND ` call to get the ` power_state ` parameter .
/* lower affinities use PLAT_MAX_OFF_STATE */