diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-07-13 16:40:43 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-07-16 10:20:58 -0700 |
commit | 7ee63359b86be2c5aa9567f51d28613f6e40213e (patch) | |
tree | da54f47eb9ca0a9e76997be34fe15a575484367a /common/host_command.c | |
parent | 0e933d1ce987cb68e4c5682508aba47f925613ae (diff) | |
download | chrome-ec-7ee63359b86be2c5aa9567f51d28613f6e40213e.tar.gz |
Support preserving reset flags across a reset
This is needed for flash pre-init to be able to hard reset to clear
uncommitted write protect flags without losing the reset flags.
BUG=chrome-os-partner:11368
TEST=manual
Use reboot and sysinfo commands...
1. reset with keyboard. flags -> reset-pin
2. 'reboot soft preserve' flags -> soft reset-pin power-on
3. 'reboot hard preserve' flags -> hard soft reset-pin power-on
4. 'reboot soft'. flags -> soft
5. 'reboot hard'. flags -> hard power-on
Change-Id: I6164a78d99c5c10330f90f651148c5795e7afdda
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/27418
Diffstat (limited to 'common/host_command.c')
-rw-r--r-- | common/host_command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/host_command.c b/common/host_command.c index 158aa79726..1420e79434 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -47,7 +47,7 @@ void host_command_received(struct host_cmd_handler_args *args) * other command. */ if (args->command == EC_CMD_REBOOT) { - system_reset(1); + system_reset(SYSTEM_RESET_HARD); /* Reset should never return; if it does, post an error */ host_send_response(EC_RES_ERROR); return; |