diff options
author | paris_yeh <pyeh@google.com> | 2018-05-23 06:25:37 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-30 12:50:39 -0700 |
commit | e8f009b64b0b7bedc563b55efae296e3d59a15b9 (patch) | |
tree | badb0e7da8dde8a5576f44eef930af773e563c17 /include/keyboard_config.h | |
parent | 9102494be2821ca3bce1662d8595e8c5e0addae5 (diff) | |
download | chrome-ec-e8f009b64b0b7bedc563b55efae296e3d59a15b9.tar.gz |
keyboard_scan: Add option to support keyboards with language ID
ID pins are considered additional KSOs while keycode scanning works
for the existing KSI0 ~ KSI7. While diriving ID pins, the state of
interconnection between ID pins and KSI pins could be used for
identifiers to tell keyboard itself. (e.g. US, Japan,and UK keyboard)
BRANCH=master
BUG=b:80168723
TEST="make -j buildall"
TEST=Verified 5 distinct keyboard samples w/ different Language ID values
on the same reworked Coral, which VOL_UP and VOL_DOWN were reworked
for ID pins. crrev.com/c/1053617 is my experimental patch on top of
this for further verification
Change-Id: I1d6e647df74c50d60bc1264c045b2587d0bf23d8
Signed-off-by: paris_yeh <pyeh@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1068951
Commit-Ready: Paris Yeh <pyeh@chromium.org>
Tested-by: Paris Yeh <pyeh@chromium.org>
Reviewed-by: Paris Yeh <pyeh@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include/keyboard_config.h')
-rw-r--r-- | include/keyboard_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/keyboard_config.h b/include/keyboard_config.h index f338d63c7f..932935de4c 100644 --- a/include/keyboard_config.h +++ b/include/keyboard_config.h @@ -10,6 +10,11 @@ #include "common.h" +#ifdef CONFIG_KEYBOARD_LANGUAGE_ID +/* Keyboard matrix support for language ID pins */ +#define KEYBOARD_IDS 2 +#endif + /* Keyboard matrix is 13 output columns x 8 input rows */ #define KEYBOARD_COLS 13 #define KEYBOARD_ROWS 8 |