summaryrefslogtreecommitdiff
path: root/board/kindred/board.h
diff options
context:
space:
mode:
authorben.chen2@quanta.corp-partner.google.com <ben.chen2@quanta.corp-partner.google.com>2019-11-05 15:26:05 +0800
committerCommit Bot <commit-bot@chromium.org>2019-11-07 04:53:52 +0000
commitf089e6f80540559fd441977e78d83169a7f9ffe7 (patch)
tree2337006363035be8ebdc8dbc21793898a3829edd /board/kindred/board.h
parent166aea52ce152350b9d4572dffd8b0ae0103d400 (diff)
downloadchrome-ec-f089e6f80540559fd441977e78d83169a7f9ffe7.tar.gz
Kindred: 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}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, BUG=b:143927624 BRANCH=master TEST=`ectool kbfactorytest` PASS. Change-Id: I67b8ebd1edb238a265bd6f9e5e98100b5635a2d6 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1898256 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'board/kindred/board.h')
-rw-r--r--board/kindred/board.h6
1 files changed, 5 insertions, 1 deletions
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 */