summaryrefslogtreecommitdiff
path: root/chip/stm32/keyboard_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/keyboard_scan.c')
-rw-r--r--chip/stm32/keyboard_scan.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/chip/stm32/keyboard_scan.c b/chip/stm32/keyboard_scan.c
index adca58356a..5dd6a9b436 100644
--- a/chip/stm32/keyboard_scan.c
+++ b/chip/stm32/keyboard_scan.c
@@ -66,7 +66,7 @@ struct kbc_gpio {
int pin;
};
-#if defined(BOARD_daisy)
+#if defined(BOARD_daisy) || defined(BOARD_snow)
static const uint32_t ports[] = { GPIO_B, GPIO_C, GPIO_D };
#else
#error "Need to specify GPIO ports used by keyboard"
@@ -181,7 +181,6 @@ static int check_keys_changed(void)
udelay(50);
r = 0;
-#if defined(BOARD_daisy)
tmp = STM32_GPIO_IDR(C);
/* KB_COL00:04 = PC8:12 */
if (tmp & (1 << 8))
@@ -207,9 +206,6 @@ static int check_keys_changed(void)
/* Invert it so 0=not pressed, 1=pressed */
r ^= 0xff;
-#else
-#error "Key scanning unsupported on this board"
-#endif
/* Mask off keys that don't exist so they never show
* as pressed */
r &= actual_key_mask[c];