summaryrefslogtreecommitdiff
path: root/include/keyboard_scan.h
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2021-07-26 12:32:36 -0600
committerCommit Bot <commit-bot@chromium.org>2021-07-28 21:01:58 +0000
commitcd6bad248528abf30475ab1026b8ba9bdcb42fec (patch)
tree3cb3dd3236300bd2de4552b534cbd288e1297d7a /include/keyboard_scan.h
parent05bbe21729b951b9cfc5462ee35cbb28f670f4a6 (diff)
downloadchrome-ec-cd6bad248528abf30475ab1026b8ba9bdcb42fec.tar.gz
keyboard_scan: Add consts needed for factory test to header
Add keyboard_factory_scan_pins and keyboard_factory_scan_pins_used to keyboard_scan header so they do not need to be declared as extern by individual boards. These constants need to be defined if CONFIG_KEYBOARD_FACTORY_TEST is enabled. BUG=None TEST=Build BRANCH=None Change-Id: I1a100f626b3cea251ca72703d17b2d27db0f8f28 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3053101 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include/keyboard_scan.h')
-rw-r--r--include/keyboard_scan.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/keyboard_scan.h b/include/keyboard_scan.h
index 46215da218..b3a7bed587 100644
--- a/include/keyboard_scan.h
+++ b/include/keyboard_scan.h
@@ -135,4 +135,14 @@ void set_vol_up_key(uint8_t row, uint8_t col);
static inline void set_vol_up_key(uint8_t row, uint8_t col) {}
#endif
+#ifdef CONFIG_KEYBOARD_FACTORY_TEST
+/*
+ * Map keyboard connector pins to EC GPIO pins for factory test.
+ * Pins mapped to {-1, -1} are skipped.
+ */
+extern const int keyboard_factory_scan_pins[][2];
+extern const int keyboard_factory_scan_pins_used;
+#endif
+
+
#endif /* __CROS_EC_KEYBOARD_SCAN_H */