From 0255a72d0784ff9557a5f0da7484c9c796299617 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Mon, 16 Jul 2012 10:34:32 -0700 Subject: Stop reporting keyboard recovery switch This uses the new keyboard recovery EC event to determine when keyboard recovery is requested. It is paired with a change to the EC to stop reporting keyboard recovery as a switch, since that didn't provide a good mechanism for the AP to tell the EC to stop reporting the switch value. This REQUIRES an updated BIOS; without it you won't be able to get into recovery mode manually. You'll need to press space at the developer screen, or use the debug console to request recovery. Your BIOS must have https://gerrit.chromium.org/gerrit/27509. BUG=chrome-os-partner:10034 TEST=manual 1. boot using power+refresh+esc. See insert screen. 2. power button to power off 3. power button to power on. Boots to Chrome OS (not insert screen). Change-Id: I699ce004ed1190044170c4ea810b8969b40f523b Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/27508 Reviewed-by: Bill Richardson --- chip/lm4/power_button.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chip/lm4/power_button.c b/chip/lm4/power_button.c index 3874393a1b..55bc92e041 100644 --- a/chip/lm4/power_button.c +++ b/chip/lm4/power_button.c @@ -117,11 +117,6 @@ static void update_other_switches(void) else *memmap_switches &= ~EC_SWITCH_WRITE_PROTECT_DISABLED; - if (keyboard_scan_recovery_pressed()) - *memmap_switches |= EC_SWITCH_KEYBOARD_RECOVERY; - else - *memmap_switches &= ~EC_SWITCH_KEYBOARD_RECOVERY; - if (gpio_get_level(GPIO_RECOVERYn) == 0) *memmap_switches |= EC_SWITCH_DEDICATED_RECOVERY; else -- cgit v1.2.1