ectool: Add hibernate-clear-ap-off command
Allows for: ectool reboot_ec hibernate-clear-ap-off
TEST=Built and tested on grunt
BRANCH=none
@@ -210,7 +210,7 @@ const char help_str[] =
" Set 16 bit duty cycle of given PWM\n"
" readtest <patternoffset> <size>\n"
" Reads a pattern from the EC via LPC\n"
- " reboot_ec <RO|RW|cold|hibernate|disable-jump> "
+ " reboot_ec <RO|RW|cold|hibernate|hibernate-clear-ap-off|disable-jump>"
" [at-shutdown|switch-slot]\n"
" Reboot EC to RO or RW\n"
" rtcget\n"
@@ -744,6 +744,8 @@ int cmd_reboot_ec(int argc, char *argv[])
p.cmd = EC_REBOOT_DISABLE_JUMP;
else if (!strcmp(argv[1], "hibernate"))
p.cmd = EC_REBOOT_HIBERNATE;
+ else if (!strcmp(argv[1], "hibernate-clear-ap-off"))
+ p.cmd = EC_REBOOT_HIBERNATE_CLEAR_AP_OFF;
else {
fprintf(stderr, "Unknown command: %s\n", argv[1]);
return -1;
