summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2017-05-10 10:59:22 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2017-05-10 11:00:59 +0100
commit9bb0b3c667a12d061cdd2f49c69ee28dc0e5343e (patch)
treed677b05a4959a8044de320107f86c49e449c83c1
parent172138b9e077ec53c9fdec2eb0a4df73f1db3f22 (diff)
Revert "rockchip: Remove unused rockchip_pd_pwr_down_wfi function"
This reverts commit b6dcbf588af442fa87721dc707ff9e54d04ff504. This function wasn't used when it was removed, but it is needed to compile the new changes proposed for Rockchip platforms. Change-Id: Ia5bfe1f8398e08431f96923e2f059a83e5cb78d4 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
-rw-r--r--plat/rockchip/common/plat_pm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plat/rockchip/common/plat_pm.c b/plat/rockchip/common/plat_pm.c
index 4625af8f..bf711654 100644
--- a/plat/rockchip/common/plat_pm.c
+++ b/plat/rockchip/common/plat_pm.c
@@ -367,6 +367,15 @@ static void __dead2 rockchip_system_poweroff(void)
rockchip_soc_system_off();
}
+static void __dead2 rockchip_pd_pwr_down_wfi(
+ const psci_power_state_t *target_state)
+{
+ if (RK_SYSTEM_PWR_STATE(target_state) == PLAT_MAX_OFF_STATE)
+ rockchip_soc_sys_pd_pwr_dn_wfi();
+ else
+ rockchip_soc_cores_pd_pwr_dn_wfi(target_state);
+}
+
/*******************************************************************************
* Export the platform handlers via plat_rockchip_psci_pm_ops. The rockchip
* standard