mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00
fix(plat/synquacer): update scmi power domain off handling
In the SCMI power domain off handling, configure GIC to prevent interrupt toward to the core to be turned off, and configure CCN to disable coherency when the cluster is turned off. The same operation is done in SCPI power domain off processing. This commit adds the missing operation in SCMI power domain off handling. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Change-Id: Ib3523de488500c2e8bdc74e4cb8772a1442d9781
This commit is contained in:
parent
6ea1a75df3
commit
f7f5d2c4cd
1 changed files with 8 additions and 0 deletions
|
@ -97,6 +97,14 @@ static void sq_power_down_common(const psci_power_state_t *target_state)
|
|||
void sq_pwr_domain_off(const psci_power_state_t *target_state)
|
||||
{
|
||||
#if SQ_USE_SCMI_DRIVER
|
||||
/* Prevent interrupts from spuriously waking up this cpu */
|
||||
sq_gic_cpuif_disable();
|
||||
|
||||
/* Cluster is to be turned off, so disable coherency */
|
||||
if (SQ_CLUSTER_PWR_STATE(target_state) == SQ_LOCAL_STATE_OFF) {
|
||||
plat_sq_interconnect_exit_coherency();
|
||||
}
|
||||
|
||||
sq_scmi_off(target_state);
|
||||
#else
|
||||
sq_power_down_common(target_state);
|
||||
|
|
Loading…
Add table
Reference in a new issue