aboutsummaryrefslogtreecommitdiff
path: root/plat/rpi
diff options
context:
space:
mode:
authorManish Pandey <manish.pandey2@arm.com>2020-01-20 22:16:43 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2020-01-20 22:16:43 +0000
commit24d7deb8a961d9a05d632a0f416d8398f8c95b6b (patch)
treea53d55b522cf05b2b4302eb3154821d7f415fe78 /plat/rpi
parent0a910952f641cac20f9be29276483ee2e8a70d4c (diff)
parent9e78cb189a1f26be765662a27ed5caf81793cfd1 (diff)
downloadtrusted-firmware-a-24d7deb8a961d9a05d632a0f416d8398f8c95b6b.tar.gz
Merge "rpi3/4: Add support for offlining CPUs" into integration
Diffstat (limited to 'plat/rpi')
-rw-r--r--plat/rpi/common/rpi3_pm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plat/rpi/common/rpi3_pm.c b/plat/rpi/common/rpi3_pm.c
index 8c2d070c44..2a6bf076b0 100644
--- a/plat/rpi/common/rpi3_pm.c
+++ b/plat/rpi/common/rpi3_pm.c
@@ -123,6 +123,15 @@ static void rpi3_pwr_domain_off(const psci_power_state_t *target_state)
#endif
}
+void __dead2 plat_secondary_cold_boot_setup(void);
+
+static void __dead2
+rpi3_pwr_domain_pwr_down_wfi(const psci_power_state_t *target_state)
+{
+ disable_mmu_el3();
+ plat_secondary_cold_boot_setup();
+}
+
/*******************************************************************************
* Platform handler called when a power domain is about to be turned on. The
* mpidr determines the CPU to be turned on.
@@ -224,6 +233,7 @@ static void __dead2 rpi3_system_off(void)
static const plat_psci_ops_t plat_rpi3_psci_pm_ops = {
.cpu_standby = rpi3_cpu_standby,
.pwr_domain_off = rpi3_pwr_domain_off,
+ .pwr_domain_pwr_down_wfi = rpi3_pwr_domain_pwr_down_wfi,
.pwr_domain_on = rpi3_pwr_domain_on,
.pwr_domain_on_finish = rpi3_pwr_domain_on_finish,
.system_off = rpi3_system_off,