summaryrefslogtreecommitdiff
path: root/board/ezkinil/board.c
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2021-06-01 17:14:57 +0800
committerCommit Bot <commit-bot@chromium.org>2021-06-30 04:22:16 +0000
commit184955dc875f653ad94ef39a9b7bb89d4bd5c463 (patch)
tree5699e532aad0961efcd2a05b2b99160c3f4b2cae /board/ezkinil/board.c
parent3ab813196a61e32cee6c1865f8e98cf067fb5a3d (diff)
downloadchrome-ec-184955dc875f653ad94ef39a9b7bb89d4bd5c463.tar.gz
Ezkinil: 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:191931746 BRANCH=zork TEST=`ectool kbfactorytest` PASS. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I0354835b8b606fe735b1cef433e6e07bba658249 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2929062 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/ezkinil/board.c')
-rw-r--r--board/ezkinil/board.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/ezkinil/board.c b/board/ezkinil/board.c
index 7ccab07458..69bf41d215 100644
--- a/board/ezkinil/board.c
+++ b/board/ezkinil/board.c
@@ -43,6 +43,24 @@
static int board_ver;
+/*
+ * 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);
+
/* Motion sensors */
static struct mutex g_lid_mutex;
static struct mutex g_base_mutex;