summaryrefslogtreecommitdiff
path: root/board/nightfury
diff options
context:
space:
mode:
Diffstat (limited to 'board/nightfury')
-rw-r--r--board/nightfury/board.c14
-rw-r--r--board/nightfury/board.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/board/nightfury/board.c b/board/nightfury/board.c
index 8b0713e216..968274b221 100644
--- a/board/nightfury/board.c
+++ b/board/nightfury/board.c
@@ -26,6 +26,7 @@
#include "gpio.h"
#include "hooks.h"
#include "host_command.h"
+#include "keyboard_scan.h"
#include "lid_switch.h"
#include "power.h"
#include "power_button.h"
@@ -304,6 +305,19 @@ const struct motion_sensor_t *motion_als_sensors[] = {
};
BUILD_ASSERT(ARRAY_SIZE(motion_als_sensors) == ALS_COUNT);
+struct keyboard_scan_config keyscan_config = {
+ .output_settle_us = 80,
+ .debounce_down_us = 30 * MSEC,
+ .debounce_up_us = 30 * MSEC,
+ .scan_period_us = 3 * MSEC,
+ .min_post_scan_delay_us = 1000,
+ .poll_timeout_us = 100 * MSEC,
+ .actual_key_mask = {
+ 0x1c, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff,
+ 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */
+ },
+};
+
/******************************************************************************/
/* Physical fans. These are logically separate from pwm_channels. */
diff --git a/board/nightfury/board.h b/board/nightfury/board.h
index 7f06cd2ae2..60fd429fc4 100644
--- a/board/nightfury/board.h
+++ b/board/nightfury/board.h
@@ -16,6 +16,7 @@
#define CONFIG_POWER_BUTTON
#define CONFIG_KEYBOARD_PROTOCOL_8042
+#define CONFIG_KEYBOARD_BOARD_CONFIG
#define CONFIG_LED_COMMON
#define CONFIG_LOW_POWER_IDLE
#define CONFIG_LED_POWER_LED