summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorZhuohao Lee <zhuohao@chromium.org>2021-08-24 19:40:30 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-25 07:25:02 +0000
commit7373dc974cd6b29babaf36895ab763defb9cf820 (patch)
tree8320d126b4716ad76ac6c262aa1ac926f7749070 /baseboard
parent32322ec70818df23d9d3af1912d4169473b286dc (diff)
downloadchrome-ec-7373dc974cd6b29babaf36895ab763defb9cf820.tar.gz
brask: add recovery button support
There is a dedicated recovery button for the brask. This patch adds the CONFIG_DEDICATED_RECOVERY_BUTTON and CONFIG_DEDICATED_RECOVERY_BUTTON_2 to enable it. Besides, the CONFIG_EMULATED_SYSRQ and CONFIG_MKBP_INPUT_DEVICES are added to let the EC pass the button state to the AP BUG=b:191637086 BRANCH=None TEST=make BOARD=brask Change-Id: Ic6ea693bbbc0bcd0d502d2636636bc38e080b1e9 Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3114500 Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/brask/baseboard.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/baseboard/brask/baseboard.h b/baseboard/brask/baseboard.h
index 7e3eae3a00..e2abf1adee 100644
--- a/baseboard/brask/baseboard.h
+++ b/baseboard/brask/baseboard.h
@@ -45,10 +45,6 @@
#define CONFIG_HOSTCMD_ESPI_VW_SLP_S4
#define CONFIG_HOSTCMD_ESPI_RESET_SLP_SX_VW_ON_ESPI_RST
-/* Matrix Keyboard Protocol */
-#define CONFIG_MKBP_EVENT
-#define CONFIG_MKBP_USE_HOST_EVENT
-
/* LED */
/*
* TODO(b/197471359): Implement the LED behavior
@@ -90,11 +86,19 @@
#define CONFIG_HOSTCMD_AP_RESET
/* Buttons */
+#define CONFIG_DEDICATED_RECOVERY_BUTTON
+#define CONFIG_DEDICATED_RECOVERY_BUTTON_2
+#define CONFIG_EMULATED_SYSRQ
#define CONFIG_POWER_BUTTON
#define CONFIG_POWER_BUTTON_IGNORE_LID
#define CONFIG_POWER_BUTTON_INIT_IDLE
#define CONFIG_POWER_BUTTON_X86
+/* Matrix Keyboard Protocol */
+#define CONFIG_MKBP_EVENT
+#define CONFIG_MKBP_INPUT_DEVICES
+#define CONFIG_MKBP_USE_HOST_EVENT
+
/* Thermal features */
#define CONFIG_DPTF
#define CONFIG_THROTTLE_AP