summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lee <mike5@huaqin.corp-partner.google.com>2021-12-04 19:56:51 +0800
committerCommit Bot <commit-bot@chromium.org>2021-12-08 16:39:30 +0000
commit645771f4a10b77f4f8ce4900efc53941be9da59e (patch)
tree07a53a23e63f792064214a8a4d06afc02bab0e37
parent1bb6819da8bebc1cfd592dca362c2024671a2402 (diff)
downloadchrome-ec-645771f4a10b77f4f8ce4900efc53941be9da59e.tar.gz
Blipper: Disable vol keys function
Blipper does not have side volume buttons, and needs to disable the volume button function, otherwise the EC will think that the volume buttons are always triggered. BUG=b:208951409 BRANCH=dedede TEST=press power button can shutdown at firmware screen. Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: I8a606ac6cca7ec891ac71a84aca6197c6303f8ab Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3316156 Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com> Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
-rw-r--r--board/blipper/board.c4
-rw-r--r--board/blipper/board.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/board/blipper/board.c b/board/blipper/board.c
index 0f19763ebd..1dc9203f26 100644
--- a/board/blipper/board.c
+++ b/board/blipper/board.c
@@ -454,9 +454,11 @@ void board_init(void)
gpio_set_flags(GPIO_BASE_SIXAXIS_INT_L,
GPIO_INPUT | GPIO_PULL_DOWN);
+ /* Disable Volume keys for blipper */
+ button_disable_gpio(BUTTON_VOLUME_UP);
+ button_disable_gpio(BUTTON_VOLUME_DOWN);
gpio_set_flags(GPIO_VOLDN_BTN_ODL,
GPIO_INPUT | GPIO_PULL_DOWN);
-
gpio_set_flags(GPIO_VOLUP_BTN_ODL,
GPIO_INPUT | GPIO_PULL_DOWN);
} else {
diff --git a/board/blipper/board.h b/board/blipper/board.h
index 9f0865b66b..b4dc85d9fa 100644
--- a/board/blipper/board.h
+++ b/board/blipper/board.h
@@ -110,6 +110,9 @@
#define USB_PORT_COUNT 1
#define CONFIG_USB_PORT_POWER_DUMB
+/* Button Config*/
+#define CONFIG_BUTTONS_RUNTIME_CONFIG
+
#ifndef __ASSEMBLER__
#include "gpio_signal.h"