diff options
-rw-r--r-- | chip/it83xx/keyboard_raw.c | 5 | ||||
-rw-r--r-- | chip/it83xx/registers.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/chip/it83xx/keyboard_raw.c b/chip/it83xx/keyboard_raw.c index 9c5d1028ae..139cb08eb2 100644 --- a/chip/it83xx/keyboard_raw.c +++ b/chip/it83xx/keyboard_raw.c @@ -31,7 +31,10 @@ void keyboard_raw_init(void) #ifdef CONFIG_KEYBOARD_COL2_INVERTED /* KSO[2] is high, others are low. */ - IT83XX_KBS_KSOL = (1 << 2); + IT83XX_KBS_KSOL = BIT(2); + /* Enable KSO2's push-pull */ + IT83XX_KBS_KSOLGCTRL |= BIT(2); + IT83XX_KBS_KSOLGOEN |= BIT(2); #else /* KSO[7:0] pins low. */ IT83XX_KBS_KSOL = 0x00; diff --git a/chip/it83xx/registers.h b/chip/it83xx/registers.h index 8d2d8016bb..ddb2bbefbe 100644 --- a/chip/it83xx/registers.h +++ b/chip/it83xx/registers.h @@ -9,6 +9,7 @@ #define __CROS_EC_REGISTERS_H #include "common.h" +#include "compile_time_macros.h" #define __ram_code __attribute__((section(".ram_code"))) |