summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Tsai <josh_tsai@compal.corp-partner.google.com>2022-07-13 16:35:42 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-21 02:47:08 +0000
commit9a394f3896a3594d68e744aec9662ddab6c6d23a (patch)
tree2f1a6c649338a7c8b37d5d7fafa3be2c4f3e99fd
parent59014d8c50a814affbb67dbf8afdeb79505575f1 (diff)
downloadchrome-ec-9a394f3896a3594d68e744aec9662ddab6c6d23a.tar.gz
banshee: workaround for enter recovery mode
Add the delay time before checking the boot key to avoid the ghost key to affect entering the recovery mode BRANCH=none BUG=b:238683420 TEST=manually triggering recovery on banshee id2 Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com> Change-Id: I04ccba80ef9ff43754a700f63933d6f173f7b15e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3759838 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Commit-Queue: Jeremy Lin <poseng@google.com>
-rw-r--r--board/banshee/board.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/board/banshee/board.c b/board/banshee/board.c
index fe9feb1a82..d305090bc8 100644
--- a/board/banshee/board.c
+++ b/board/banshee/board.c
@@ -20,6 +20,7 @@
#include "fw_config.h"
#include "hooks.h"
#include "keyboard_customization.h"
+#include "keyboard_scan.h"
#include "lid_switch.h"
#include "power_button.h"
#include "power.h"
@@ -27,7 +28,7 @@
#include "switch.h"
#include "throttle_ap.h"
#include "usbc_config.h"
-#include "keyboard_scan.h"
+#include "watchdog.h"
#include "gpio_list.h" /* Must come after other header files. */
@@ -151,6 +152,16 @@ __override void board_pre_task_i2c_peripheral_init(void)
{
/* Configure board specific keyboard */
configure_keyboard();
+
+ /* Workaround for b:238683420 with board id >= 2 */
+
+#ifdef SECTION_IS_RO
+ if (board_id >= 2) {
+ udelay(500 * MSEC);
+ watchdog_reload();
+ CPRINTS("Add delay to check boot key");
+ }
+#endif
}
__override uint8_t board_keyboard_row_refresh(void)