summaryrefslogtreecommitdiff
path: root/board/guybrush
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2021-07-26 07:35:31 -0600
committerCommit Bot <commit-bot@chromium.org>2021-07-29 16:50:32 +0000
commit128ffb9526c7275f158d588243d03a4f4e2ac0af (patch)
tree538162dcda78f27aa7963eae708348dcb577be58 /board/guybrush
parent936ad64377be862be08cd916d4880b50a7831b81 (diff)
downloadchrome-ec-128ffb9526c7275f158d588243d03a4f4e2ac0af.tar.gz
guybrush: Enable keyboard factory test
Enable keyboard factory test. The keyboard pinout is similar to Ezkinil so this is used as starting point. BUG=b:178221983 TEST=ectool kbfactorytest passes BRANCH=None Change-Id: Ie365d184eb8144c2138e6ae56fe3a401b6035982 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3053096 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/guybrush')
-rw-r--r--board/guybrush/board.c17
-rw-r--r--board/guybrush/board.h1
2 files changed, 18 insertions, 0 deletions
diff --git a/board/guybrush/board.c b/board/guybrush/board.c
index 440d67148a..e85635d0a4 100644
--- a/board/guybrush/board.c
+++ b/board/guybrush/board.c
@@ -53,6 +53,23 @@ const mat33_fp_t lid_standard_ref = {
{ 0, 0, FLOAT_TO_FP(-1)}
};
+/*
+ * 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);
+
struct motion_sensor_t motion_sensors[] = {
[BASE_ACCEL] = {
.name = "Base Accel",
diff --git a/board/guybrush/board.h b/board/guybrush/board.h
index 18ff94bf0e..c9743e9ae6 100644
--- a/board/guybrush/board.h
+++ b/board/guybrush/board.h
@@ -14,6 +14,7 @@
/* Motion sensing drivers */
/* Keyboard features */
+#define CONFIG_KEYBOARD_FACTORY_TEST
/* Sensors */
#define CONFIG_ACCELGYRO_BMI160