summaryrefslogtreecommitdiff
path: root/board/snappy/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/snappy/board.c')
-rw-r--r--board/snappy/board.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/snappy/board.c b/board/snappy/board.c
index 5987d6ef50..29b7b0f716 100644
--- a/board/snappy/board.c
+++ b/board/snappy/board.c
@@ -1007,3 +1007,21 @@ int board_get_version(void)
CPRINTS("Board version: %d\n", version);
return version;
}
+
+#ifdef CONFIG_KEYBOARD_FACTORY_TEST
+/*
+ * We have total 21 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, 4}, {1, 3}, {1, 6}, {-1, -1},
+ {3, 1}, {2, 0}, {1, 5}, {2, 6}, {-1, -1},
+ {2, 1}, {2, 4}, {2, 5}, {1, 2}, {2, 3},
+ {2, 2}, {3, 0},
+};
+
+const int keyboard_factory_scan_pins_used =
+ ARRAY_SIZE(keyboard_factory_scan_pins);
+#endif