summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>2021-08-17 16:40:20 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-20 08:54:57 +0000
commit36124db37d3e74b23cbcc2c4d21aa9f8d4d876f9 (patch)
tree55a06722264b6ef812e327118691b41c30aa9885
parentfc298a0ada0350ae9cb2dab21e790efb4d8c4a36 (diff)
downloadchrome-ec-36124db37d3e74b23cbcc2c4d21aa9f8d4d876f9.tar.gz
Driblee: Initialize the vivaldi keyboard
Initialize vivaldi keyboard. BUG=b:195810621 BRANCH=keeby TEST=make BOARD=driblee Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> Change-Id: If6041bb6a35b35cb8ce5750c1047d23a6978bad1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3099385 Tested-by: Matt Wang <matt_wang@compal.corp-partner.google.com> Reviewed-by: Elmo Lan <elmo_lan@compal.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--board/driblee/board.c26
-rw-r--r--board/driblee/board.h4
2 files changed, 3 insertions, 27 deletions
diff --git a/board/driblee/board.c b/board/driblee/board.c
index 4a343d6a42..f5b99c7c35 100644
--- a/board/driblee/board.c
+++ b/board/driblee/board.c
@@ -28,8 +28,7 @@
#include "gpio.h"
#include "hooks.h"
#include "i2c.h"
-#include "keyboard_config.h"
-#include "keyboard_raw.h"
+#include "keyboard_8042.h"
#include "keyboard_scan.h"
#include "lid_switch.h"
#include "power.h"
@@ -61,26 +60,7 @@ const int usb_port_enable[USB_PORT_COUNT] = {
};
/* Keyboard scan setting */
-__override struct keyboard_scan_config keyscan_config = {
- /*
- * F3 key scan cycle completed but scan input is not
- * charging to logic high when EC start scan next
- * column for "T" key, so we set .output_settle_us
- * to 80us from 50us.
- */
- .output_settle_us = 80,
- .debounce_down_us = 9 * MSEC,
- .debounce_up_us = 30 * MSEC,
- .scan_period_us = 3 * MSEC,
- .min_post_scan_delay_us = 1000,
- .poll_timeout_us = 100 * MSEC,
- .actual_key_mask = {
- 0x1c, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff,
- 0xa4, 0xff, 0xfe, 0x55, 0xfe, 0xff, 0xff, 0xff, /* full set */
- },
-};
-
-static const struct ec_response_keybd_config lalala_keybd = {
+static const struct ec_response_keybd_config driblee_keybd = {
/* Default Chromeos keyboard config */
.num_top_row_keys = 10,
.action_keys = {
@@ -102,7 +82,7 @@ static const struct ec_response_keybd_config lalala_keybd = {
__override const struct ec_response_keybd_config
*board_vivaldi_keybd_config(void)
{
- return &lalala_keybd;
+ return &driblee_keybd;
}
/* C0 interrupt line shared by BC 1.2 and charger */
diff --git a/board/driblee/board.h b/board/driblee/board.h
index 986b80c672..de19136aff 100644
--- a/board/driblee/board.h
+++ b/board/driblee/board.h
@@ -41,10 +41,6 @@
#define GPIO_EC_HDMI_EN_ODL GPIO_EC_I2C_SBU_USB_C1_SCL
#define GPIO_HDMI_PP3300_EN GPIO_SUB_USB_C1_INT_ODL
-/* Keyboard */
-
-#define CONFIG_KEYBOARD_KEYPAD
-
/* LED defines */
#define CONFIG_LED_ONOFF_STATES
#define CONFIG_LED_COMMON