mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 02:45:33 +00:00
Only check for boot key on the first boot after keyboard reset
Don't check if we've jumped to this image (which preserves the reboot reason, so was causing us to re-check). BUG=chrome-os-partner:10890 TEST=manual 1) power+refresh; should see EC print [KB boot key 0] 2) sysjump A; should NOT see [KB boot key 0] Change-Id: I46cc60358e1d1952484f52147787fee06e4ff69f Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/26155 Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -265,7 +265,8 @@ int keyboard_scan_init(void)
|
||||
* If we're booting due to a reset-pin-caused reset, check what other
|
||||
* single key is held down (if any).
|
||||
*/
|
||||
if (system_get_reset_cause() == SYSTEM_RESET_RESET_PIN) {
|
||||
if ((system_get_reset_cause() == SYSTEM_RESET_RESET_PIN) &&
|
||||
!system_jumped_to_this_image()) {
|
||||
const struct boot_key_entry *k = boot_key_list;
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user