diff options
author | Tang Qijun <qijun.tang@ecs.corp-partner.google.com> | 2021-08-12 05:36:28 -0400 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-20 17:40:38 +0000 |
commit | 942d051a9587af44155e4d76f596ded9a2bd9856 (patch) | |
tree | 3789b1894535f5c17517048845063f27ca149089 | |
parent | 4c1cdd23cb35964608f0a2666f933987b4573899 (diff) | |
download | chrome-ec-942d051a9587af44155e4d76f596ded9a2bd9856.tar.gz |
Pazquel: Mask proper key locations on the board level
Because the matrix actual_key_mask isn’t correct, launcher key has no function.
The key actual is mapped to (KSI_3,KSO_0) in matrix, so we change
actual_key_mask[0] from 0x14 to 0x1c. And we have verified launcher key
function.
Because T11 key is not in keyboard, we change actual_key_mask[1] from 0xff to 0xfe.
BRANCH=trogdor
BUG=b:196325454
TEST=login system and then press launch key, the launch function is ok
Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com>
Change-Id: Ib16cc6cac121daea37b3cf4ca9eec2f8fd98d05f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3090506
Reviewed-by: Philip Chen <philipchen@chromium.org>
Commit-Queue: Philip Chen <philipchen@chromium.org>
-rw-r--r-- | board/pazquel/board.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/board/pazquel/board.c b/board/pazquel/board.c index bebf0e35e9..8415e59f36 100644 --- a/board/pazquel/board.c +++ b/board/pazquel/board.c @@ -122,13 +122,15 @@ __override struct keyboard_scan_config keyscan_config = { /* Use 80 us, because KSO_02 passes through the H1. */ .output_settle_us = 80, /* - * Unmask 0x08 in [0] (KSO_00/KSI_03, the new location of Search key); - * as it still uses the legacy location (KSO_01/KSI_00). + * 1. launcher key mapped to (KSI_3, KSO_0): + * change actual_key_mask[0] = 0x14 to 0x1c + * 2. T11 key not in keyboard (KSI_0,KSO_1): + * change actual_key_mask[1] from 0xff to 0xfe */ - .actual_key_mask = { - 0x14, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff, - 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca - }, + .actual_key_mask = { + 0x1c, 0xfe, 0xff, 0xff, 0xff, 0xf5, 0xff, + 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca + }, /* Other values should be the same as the default configuration. */ .debounce_down_us = 9 * MSEC, .debounce_up_us = 30 * MSEC, |