allwinner: implement system power down on H6 w/ AXP805
authorIcenowy Zheng <icenowy@aosc.io>
Sun, 22 Jul 2018 13:52:50 +0000 (21:52 +0800)
committerIcenowy Zheng <icenowy@aosc.io>
Fri, 7 Sep 2018 15:20:17 +0000 (23:20 +0800)
commit5069c1cfef76cc86e6ad15bdd75b9330c3181e76
tree36be7f1ac094359bd22f0bd384f2cd9fab90b1e5
parent6d37282807c8540319777cb50f411a2e56607438
allwinner: implement system power down on H6 w/ AXP805

The AXP805 PMIC used with H6 is capable of shutting down the system.

Add support for using it to shut down the system power.

The original placeholder power off code is moved to A64 code, as it's
still TODO to implement PMIC operations for A64.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
plat/allwinner/common/sunxi_pm.c
plat/allwinner/common/sunxi_private.h
plat/allwinner/sun50i_a64/sunxi_power.c
plat/allwinner/sun50i_h6/sunxi_power.c