allwinner: A64/H5: Add basic and generic shutdown method
authorAndre Przywara <andre.przywara@arm.com>
Mon, 1 Oct 2018 23:21:49 +0000 (00:21 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 20 Oct 2018 15:23:59 +0000 (16:23 +0100)
commitf953c30fe58dcd7f924c5df63d631c5c4ca0517d
tree61f07920d08b23b6f1196ea408a37d4e189cccf0
parentfe57c7d477d1fd4fb4a4b5b1dfb2c3873f58a664
allwinner: A64/H5: Add basic and generic shutdown method

Some boards don't have a PMIC, so they can't easily turn their power
off. To cover those boards anyway, let's turn off as many devices and
clocks as possible, so that the power consumption is reduced. Then
halt the last core, as before.
This will later be extended with proper PMIC support for supported
boards.

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