diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2021-06-08 16:28:32 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-21 03:21:25 +0000 |
commit | 37c2313b53a54ebd7ebf57abbd75849ad9611884 (patch) | |
tree | 30ae6e327b61ec3e8950824975ee2701f6a583aa | |
parent | 60ebb39885626747ee8fc8226a8afb4e749c47b4 (diff) | |
download | chrome-ec-37c2313b53a54ebd7ebf57abbd75849ad9611884.tar.gz |
voema: 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:185095078
BRANCH=volteer
TEST=`ectool kbfactorytest` PASS.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: Id134930d78a0f33afcc2e87ad09367036883f49a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2944273
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | board/voema/board.c | 17 | ||||
-rw-r--r-- | board/voema/board.h | 4 |
2 files changed, 21 insertions, 0 deletions
diff --git a/board/voema/board.c b/board/voema/board.c index c16ed9f675..876f8c9ef7 100644 --- a/board/voema/board.c +++ b/board/voema/board.c @@ -83,6 +83,23 @@ __override const struct ec_response_keybd_config return &voema_kb; } +/* + * 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); + /******************************************************************************/ /* * FW_CONFIG defaults for Volteer if the CBI data is not initialized. diff --git a/board/voema/board.h b/board/voema/board.h index b1e629df41..589a85a3df 100644 --- a/board/voema/board.h +++ b/board/voema/board.h @@ -37,6 +37,7 @@ #define CONFIG_LED_ONOFF_STATES /* Keyboard features */ +#define CONFIG_KEYBOARD_FACTORY_TEST #define CONFIG_KEYBOARD_VIVALDI #define CONFIG_KEYBOARD_REFRESH_ROW3 @@ -185,6 +186,9 @@ enum usbc_port { void board_reset_pd_mcu(void); +extern const int keyboard_factory_scan_pins[][2]; +extern const int keyboard_factory_scan_pins_used; + #endif /* !__ASSEMBLER__ */ #endif /* __CROS_EC_BOARD_H */ |