Commit bc693ecc authored by Varun Wadekar's avatar Varun Wadekar
Browse files

Tegra194: validate C6 power state type



This patch validates that PSTATE_STANDBY is set as the C6 power state type.
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
Change-Id: I26a4a61bcb4ee0d1846ab61c007eeba3c180e5aa
parent e3e5e661
...@@ -73,6 +73,11 @@ int32_t tegra_soc_validate_power_state(uint32_t power_state, ...@@ -73,6 +73,11 @@ int32_t tegra_soc_validate_power_state(uint32_t power_state,
switch (state_id) { switch (state_id) {
case PSTATE_ID_CORE_IDLE: case PSTATE_ID_CORE_IDLE:
if (psci_get_pstate_type(power_state) != PSTATE_TYPE_STANDBY) {
ret = PSCI_E_INVALID_PARAMS;
break;
}
/* Core idle request */ /* Core idle request */
req_state->pwr_domain_state[MPIDR_AFFLVL0] = PLAT_MAX_RET_STATE; req_state->pwr_domain_state[MPIDR_AFFLVL0] = PLAT_MAX_RET_STATE;
req_state->pwr_domain_state[MPIDR_AFFLVL1] = PSCI_LOCAL_STATE_RUN; req_state->pwr_domain_state[MPIDR_AFFLVL1] = PSCI_LOCAL_STATE_RUN;
......
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