summaryrefslogtreecommitdiff
path: root/drivers/power/axp818.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/axp818.c')
-rw-r--r--drivers/power/axp818.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/power/axp818.c b/drivers/power/axp818.c
index bf6ecd6be5..af4d7a6903 100644
--- a/drivers/power/axp818.c
+++ b/drivers/power/axp818.c
@@ -255,3 +255,14 @@ int axp_init(void)
return 0;
}
+
+int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+{
+ pmic_bus_write(AXP818_SHUTDOWN, AXP818_SHUTDOWN_POWEROFF);
+
+ /* infinite loop during shutdown */
+ while (1) {}
+
+ /* not reached */
+ return 0;
+}