aboutsummaryrefslogtreecommitdiff
path: root/include/axp818.h
diff options
context:
space:
mode:
authorChen-Yu Tsai2016-05-02 10:28:14 +0800
committerHans de Goede2016-05-25 17:52:39 +0200
commit511992695de9309b53a291caa5ff9bce62d44ae4 (patch)
tree2d5fc05579d0563fdce79a1756878492a6982ffd /include/axp818.h
parent9850e201481dcc13db7b144c609db4480bd47543 (diff)
sunxi: Implement poweroff support for axp818 pmic
Adds poweroff support for axp818 pmic. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/axp818.h')
-rw-r--r--include/axp818.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/axp818.h b/include/axp818.h
index f7f343a194a..959774c76fa 100644
--- a/include/axp818.h
+++ b/include/axp818.h
@@ -55,6 +55,9 @@
#define AXP818_ALDO2_CTRL 0x29
#define AXP818_ALDO3_CTRL 0x2a
+#define AXP818_SHUTDOWN 0x32
+#define AXP818_SHUTDOWN_POWEROFF (1 << 7)
+
/* For axp_gpio.c */
#define AXP_POWER_STATUS 0x00
#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5)