diff options
Diffstat (limited to 'chip/npcx/keyboard_raw.c')
-rw-r--r-- | chip/npcx/keyboard_raw.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chip/npcx/keyboard_raw.c b/chip/npcx/keyboard_raw.c index 743520a96a..fa003c4336 100644 --- a/chip/npcx/keyboard_raw.c +++ b/chip/npcx/keyboard_raw.c @@ -25,6 +25,14 @@ void keyboard_raw_init(void) /* Ensure top-level interrupt is disabled */ keyboard_raw_enable_interrupt(0); + /* + * Select quasi-bidirectional buffers for KSO pins. It reduces the + * low-to-high transition time. This feature only supports in npcx7. + */ +#ifdef CONFIG_KEYBOARD_KSO_HIGH_DRIVE + SET_FIELD(NPCX_KBSCTL, NPCX_KBHDRV_FIELD, 0x01); +#endif + /* pull-up KBSIN 0-7 internally */ NPCX_KBSINPU = 0xFF; |