From 0f1484a7ab134fa890117b6dad912eb383ce323a Mon Sep 17 00:00:00 2001 From: Tim Lin Date: Thu, 9 Sep 2021 17:02:02 +0800 Subject: 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 Change-Id: I3ee0ceffbdb50cf9282cda6039c4a44ebe445bd0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3151045 Reviewed-by: Eric Yilun Lin Commit-Queue: Eric Yilun Lin --- driver/ioexpander/it8801.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'driver/ioexpander/it8801.c') 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. */ -- cgit v1.2.1