diff options
-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 */ |