summaryrefslogtreecommitdiff
path: root/board/voema/board.c
diff options
context:
space:
mode:
authorDavid Huang <david.huang@quanta.corp-partner.google.com>2021-06-08 16:28:32 +0800
committerCommit Bot <commit-bot@chromium.org>2021-06-21 03:21:25 +0000
commit37c2313b53a54ebd7ebf57abbd75849ad9611884 (patch)
tree30ae6e327b61ec3e8950824975ee2701f6a583aa /board/voema/board.c
parent60ebb39885626747ee8fc8226a8afb4e749c47b4 (diff)
downloadchrome-ec-37c2313b53a54ebd7ebf57abbd75849ad9611884.tar.gz
voema: support factory keyboard test.
connector-to-GPIO map: {-1,-1}, { 0, 5}, { 1, 1}, { 1, 0}, { 0, 6}, { 0, 7}, {-1,-1}, {-1,-1}, { 1, 4}, { 1, 3}, {-1,-1}, { 1, 6}, { 1, 7}, { 3, 1}, { 2, 0}, { 1, 5}, { 2, 6}, { 2, 7}, { 2, 1}, { 2, 4}, { 2, 5}, { 1, 2}, { 2, 3}, { 2, 2}, { 3, 0}, {-1,-1}, { 0, 4}, {-1 -1}, { 8, 2}, {-1,-1}, {-1,-1}, BUG=b:185095078 BRANCH=volteer TEST=`ectool kbfactorytest` PASS. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: Id134930d78a0f33afcc2e87ad09367036883f49a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2944273 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/voema/board.c')
-rw-r--r--board/voema/board.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/board/voema/board.c b/board/voema/board.c
index c16ed9f675..876f8c9ef7 100644
--- a/board/voema/board.c
+++ b/board/voema/board.c
@@ -83,6 +83,23 @@ __override const struct ec_response_keybd_config
return &voema_kb;
}
+/*
+ * We have total 30 pins for keyboard connecter {-1, -1} mean
+ * the N/A pin that don't consider it and reserve index 0 area
+ * that we don't have pin 0.
+ */
+const int keyboard_factory_scan_pins[][2] = {
+ {-1, -1}, {0, 5}, {1, 1}, {1, 0}, {0, 6},
+ {0, 7}, {-1, -1}, {-1, -1}, {1, 4}, {1, 3},
+ {-1, -1}, {1, 6}, {1, 7}, {3, 1}, {2, 0},
+ {1, 5}, {2, 6}, {2, 7}, {2, 1}, {2, 4},
+ {2, 5}, {1, 2}, {2, 3}, {2, 2}, {3, 0},
+ {-1, -1}, {0, 4}, {-1, -1}, {8, 2}, {-1, -1},
+ {-1, -1},
+};
+const int keyboard_factory_scan_pins_used =
+ ARRAY_SIZE(keyboard_factory_scan_pins);
+
/******************************************************************************/
/*
* FW_CONFIG defaults for Volteer if the CBI data is not initialized.