diff options
author | Tim Lin <tim2.lin@ite.corp-partner.google.com> | 2021-09-09 17:02:02 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-13 08:32:21 +0000 |
commit | 0f1484a7ab134fa890117b6dad912eb383ce323a (patch) | |
tree | 9a897860ef4a8ff35abea9d514bdf4001bc4f66f /driver/ioexpander/it8801.c | |
parent | 9365aa2ef2773e764655774e07230681297ed026 (diff) | |
download | chrome-ec-0f1484a7ab134fa890117b6dad912eb383ce323a.tar.gz |
IOEX: it8801: change the KSO mapping array to overridable
KSO mapping array need to follow the different circuit design,
so change this array to overridable.
BUG=b:199337186
BRANCH=none
TEST=make buildall -j4
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Change-Id: I3ee0ceffbdb50cf9282cda6039c4a44ebe445bd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3151045
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'driver/ioexpander/it8801.c')
-rw-r--r-- | driver/ioexpander/it8801.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/ioexpander/it8801.c b/driver/ioexpander/it8801.c index 075f53df96..96070074fb 100644 --- a/driver/ioexpander/it8801.c +++ b/driver/ioexpander/it8801.c @@ -131,13 +131,13 @@ void keyboard_raw_task_start(void) keyboard_raw_enable_interrupt(1); } -static const uint8_t kso_mapping[] = { +__overridable const uint8_t it8801_kso_mapping[] = { 0, 1, 20, 3, 4, 5, 6, 17, 18, 16, 15, 11, 12, #ifdef CONFIG_KEYBOARD_KEYPAD 13, 14 #endif }; -BUILD_ASSERT(ARRAY_SIZE(kso_mapping) == KEYBOARD_COLS_MAX); +BUILD_ASSERT(ARRAY_SIZE(it8801_kso_mapping) == KEYBOARD_COLS_MAX); test_mockable void keyboard_raw_drive_column(int col) { @@ -170,7 +170,7 @@ test_mockable void keyboard_raw_drive_column(int col) * Selected KSO[20, 18:11, 6:3, 1:0] output low, * all others KSO output high. */ - kso_val = kso_mapping[col]; + kso_val = it8801_kso_mapping[col]; if (IS_ENABLED(CONFIG_KEYBOARD_COL2_INVERTED)) { /* GPIO23 is inverted. */ |