diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2021-06-24 14:03:05 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-25 21:13:21 +0000 |
commit | feb8590958f0d510e2819b0b86603cc70fc032fe (patch) | |
tree | 0e27e6033b951eee59a3d80f05b2128d50f5a409 /board/magolor/board.h | |
parent | a6fd238f8a18cb03bbe22916d73e4c4af8808efc (diff) | |
download | chrome-ec-feb8590958f0d510e2819b0b86603cc70fc032fe.tar.gz |
magolor: 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:173588011
BRANCH=dedede
TEST=`ectool kbfactorytest` PASS.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: I8a650d787e26dd3c56ba9dd48961e7f183cad4b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2984742
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/magolor/board.h')
-rw-r--r-- | board/magolor/board.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/magolor/board.h b/board/magolor/board.h index 7eaf1c6f38..ccca184f24 100644 --- a/board/magolor/board.h +++ b/board/magolor/board.h @@ -47,6 +47,7 @@ #define GPIO_USB_C1_INT_ODL GPIO_SUB_C1_INT_EN_RAILS_ODL /* Keyboard */ +#define CONFIG_KEYBOARD_FACTORY_TEST #ifdef BOARD_MAGOLOR #define CONFIG_KEYBOARD_BOARD_CONFIG #define CONFIG_KEYBOARD_KEYPAD @@ -208,6 +209,9 @@ enum battery_type { BATTERY_TYPE_COUNT, }; +extern const int keyboard_factory_scan_pins[][2]; +extern const int keyboard_factory_scan_pins_used; + void motion_interrupt(enum gpio_signal signal); #endif /* !__ASSEMBLER__ */ #endif /* __CROS_EC_BOARD_H */ |