allwinner: A64: Add AXP803 PMIC support to power off the board
authorAndre Przywara <andre.przywara@arm.com>
Sat, 15 Sep 2018 00:18:49 +0000 (01:18 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 20 Oct 2018 15:23:59 +0000 (16:23 +0100)
commiteae5fe79558c0c2744f74ca88970b16ce45450b1
treebf6e5eb055416cf9bedcca976cace3c1d958d42d
parentd5ddf67a66d77d04a6f0f6856af02704f486fd73
allwinner: A64: Add AXP803 PMIC support to power off the board

Boards with the Allwinner A64 SoC are mostly paired with an AXP803 PMIC,
which allows to programmatically power down the board.

Use the newly introduced RSB driver to detect and program the PMIC on
boot, then later to turn off the main voltage rails when receiving a
PSCI SYSTEM_POWER_OFF command.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
plat/allwinner/sun50i_a64/platform.mk
plat/allwinner/sun50i_a64/sunxi_power.c