diff options
author | Sooraj Govindan <sooraj.govindan@intel.com> | 2019-10-10 21:38:51 +0530 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-10 21:04:38 +0000 |
commit | 5f429581855f887a81be11804838449ca77f9672 (patch) | |
tree | f5193c93839d9cb8ba3424fb5b4663c899857063 /include | |
parent | 64482f3c1cedeaa2c0cbf665f851cc85e5eeae5f (diff) | |
download | chrome-ec-5f429581855f887a81be11804838449ca77f9672.tar.gz |
EC: Implementation for AP reboot from G3 state using ectool command.
The new ectool command 'ectool reboot_ap_on_g3' will reboot AP from
G3 state on initiation of DUT shutdown. Thus eliminating the dependency
of servo to trigger wake events when testing AP cold boot cycles.
BUG=b:129507479
BRANCH=None
TEST=Tested on hatch board.
From Kernel console, entered the below commands:
$ectool reboot_ap_on_g3
$shutdown -h now
Observed AP boots back to S0 upon G3.
Change-Id: Ie6fcbd2f00eb6c22ed498ab82dac53132dbbf4a3
Signed-off-by: Poornima Tom <poornima.tom@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1918993
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index fa982f1d55..d23e8e999e 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -5766,6 +5766,18 @@ struct ec_response_locate_chip { }; } __ec_align2; +/* + * Reboot AP on G3 + * + * This command is used for validation purpose, where the AP needs to be + * returned back to S0 state from G3 state without using the servo to trigger + * wake events.For this,there is no request or response struct. + * + * Order of command usage: + * ectool reboot_ap_on_g3 && shutdown -h now + */ +#define EC_CMD_REBOOT_AP_ON_G3 0x0127 + /*****************************************************************************/ /* The command range 0x200-0x2FF is reserved for Rotor. */ |