diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-03-19 14:27:02 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-20 15:23:29 -0700 |
commit | 78b0e9863d7d05e9ee50e75d6cd845f1b54a5915 (patch) | |
tree | 72dcd6300b48454d41aff8339dce45e7eec7159f /chip | |
parent | 34e17d4c05ccc4ad48b0a717aebcf278c97f1a79 (diff) | |
download | chrome-ec-78b0e9863d7d05e9ee50e75d6cd845f1b54a5915.tar.gz |
Use chipset_reset() interface instead of system_warm_reboot()
We have a common chipset interface for performing a warm reset of the
AP, so move the implementation from system_warm_reboot() there. (It
was never a system function anyway; system = EC+AP; chipset = AP)
No functional change; just renaming functions.
BUG=chrome-os-partner:18343
BRANCH=none
TEST=build daisy,snow,spring,mccroskey
Change-Id: Ibc2c5efced5660c4335cd1868470184397800acd
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/45891
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/keyboard_scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/keyboard_scan.c b/chip/stm32/keyboard_scan.c index 6a9f6cd84c..b684514a62 100644 --- a/chip/stm32/keyboard_scan.c +++ b/chip/stm32/keyboard_scan.c @@ -14,7 +14,7 @@ */ #include "atomic.h" -#include "board.h" +#include "chipset.h" #include "console.h" #include "gpio.h" #include "host_command.h" @@ -257,7 +257,7 @@ static int check_runtime_keys(const uint8_t *state) (state[MASK_INDEX_RIGHT_ALT] == MASK_VALUE_RIGHT_ALT || state[MASK_INDEX_LEFT_ALT] == MASK_VALUE_LEFT_ALT)) { keyboard_clear_state(); - system_warm_reboot(); + chipset_reset(0); return 1; } |