summaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2016-05-17 01:18:14 +0100
committerAndre Przywara <andre.przywara@arm.com>2016-06-02 01:29:48 +0100
commit3fe2fe1e5161bd6707e4f1f392fbd5e17513d4eb (patch)
tree88b3018571e6f94ad61f54997245b4967838d4ce /plat
parent23f7954665a547958379383853ad67f264661adf (diff)
PSCI: add shutdown implementation for AXP803
Now that we have the PMIC set up and directly accessible, use its power-down register to implement PSCI's SYSTEM_OFF call. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/sun50iw1p1/plat_pm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/sun50iw1p1/plat_pm.c b/plat/sun50iw1p1/plat_pm.c
index 347cc82..ec26248 100644
--- a/plat/sun50iw1p1/plat_pm.c
+++ b/plat/sun50iw1p1/plat_pm.c
@@ -254,10 +254,10 @@ static int32_t sunxi_affinst_suspend_finish(uint64_t mpidr,
******************************************************************************/
static void __dead2 sunxi_system_off(void)
{
- ERROR("PSCI system shutdown not implemented, halting the system.\n");
+ sunxi_pmic_write(0x32, sunxi_pmic_read(0x32) | 0x80);
+ ERROR("PSCI system shutdown: still alive ...\n");
wfi();
- ERROR("Sunxi System Off: operation not handled.\n");
panic();
}