diff options
-rw-r--r-- | board/kindred/board.c | 18 | ||||
-rw-r--r-- | board/kindred/board.h | 6 |
2 files changed, 23 insertions, 1 deletions
diff --git a/board/kindred/board.c b/board/kindred/board.c index acd44739ef..14244d9400 100644 --- a/board/kindred/board.c +++ b/board/kindred/board.c @@ -52,6 +52,24 @@ const int usb_port_enable[CONFIG_USB_PORT_POWER_SMART_PORT_COUNT] = { GPIO_EN_USB_A_5V, }; +/* + * 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}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, + {-1, -1}, +}; + +const int keyboard_factory_scan_pins_used = + ARRAY_SIZE(keyboard_factory_scan_pins); + static void ppc_interrupt(enum gpio_signal signal) { switch (signal) { diff --git a/board/kindred/board.h b/board/kindred/board.h index 4d547c9dbf..e6cd7aa535 100644 --- a/board/kindred/board.h +++ b/board/kindred/board.h @@ -27,6 +27,8 @@ /* Keyboard features */ #define CONFIG_PWM #define CONFIG_PWM_KBLIGHT +/* support factory keyboard test */ +#define CONFIG_KEYBOARD_FACTORY_TEST /* Sensors */ /* BMI160 Base accel/gyro */ @@ -115,7 +117,6 @@ #define GPIO_EN_PP5000 GPIO_EN_PP5000_A #ifndef __ASSEMBLER__ - #include "gpio_signal.h" #include "registers.h" @@ -172,6 +173,9 @@ enum battery_type { /* Sensors without hardware FIFO are in forced mode */ #define CONFIG_ACCEL_FORCE_MODE_MASK (1 << LID_ACCEL) +extern const int keyboard_factory_scan_pins[][2]; +extern const int keyboard_factory_scan_pins_used; + #endif /* !__ASSEMBLER__ */ #endif /* __CROS_EC_BOARD_H */ |