Revert "rockchip: Remove unused rockchip_pd_pwr_down_wfi function"
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 10 May 2017 09:59:22 +0000 (10:59 +0100)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 10 May 2017 10:00:59 +0000 (11:00 +0100)
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>
plat/rockchip/common/plat_pm.c

index 4625af8fdde738ec4ab90b945af361d879a25e15..bf711654d322870667282e81b78b91fce3da932b 100644 (file)
@@ -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