diff options
author | Rob Barnes <robbarnes@google.com> | 2021-07-26 12:32:36 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-28 21:01:58 +0000 |
commit | cd6bad248528abf30475ab1026b8ba9bdcb42fec (patch) | |
tree | 3cb3dd3236300bd2de4552b534cbd288e1297d7a /include/keyboard_scan.h | |
parent | 05bbe21729b951b9cfc5462ee35cbb28f670f4a6 (diff) | |
download | chrome-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.h | 10 |
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 */ |