summaryrefslogtreecommitdiff
path: root/board/palkia/board.h
diff options
context:
space:
mode:
authorZhuohao Lee <zhuohao@chromium.org>2020-02-04 13:32:43 +0800
committerCommit Bot <commit-bot@chromium.org>2020-03-13 05:15:12 +0000
commitaf32d7eb68444fa5fe7b863e65063d75a3aa5007 (patch)
treef61fa2efcf6f38fc6cc914c3098a4fcb66cc8dab /board/palkia/board.h
parentafb7e5bf31dd1a1d94f552554103952b0cc74cc6 (diff)
downloadchrome-ec-af32d7eb68444fa5fe7b863e65063d75a3aa5007.tar.gz
palkia: add keyboard customization
As the Palkia isn't using chromeos keyboard, we need to remapping the keyboard matrix for the key event. The new config option CONFIG_KEYBOARD_CUSTOMIZATION is added to customize the keyboard matrix in the board layer. Most of the keys have been remapped except F11-F16, Fn and win key, we can remap it later. BUG=b:148034320 BRANCH=firmware-hatch-12672.B TEST=esc+refresh+power alt+vol up+r evtest for all of the keys Change-Id: Ibb02e3a7f5e022eeca36865e8561393fc326f2af Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2035445 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/palkia/board.h')
-rw-r--r--board/palkia/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/palkia/board.h b/board/palkia/board.h
index 9dd7761a82..62aac0e9a7 100644
--- a/board/palkia/board.h
+++ b/board/palkia/board.h
@@ -25,6 +25,11 @@
/* Keyboard features */
#define CONFIG_PWM_KBLIGHT
+#define CONFIG_KEYBOARD_CUSTOMIZATION
+#define CONFIG_KEYBOARD_DEBUG
+
+/* Enable board_config_pre_init() */
+#define CONFIG_BOARD_PRE_INIT
/* USB Type C and USB PD defines */
#define CONFIG_USB_PD_COMM_LOCKED