diff options
Diffstat (limited to 'board/dirinboz/board.c')
-rw-r--r-- | board/dirinboz/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/dirinboz/board.c b/board/dirinboz/board.c index f9630875b6..0ee6b94d05 100644 --- a/board/dirinboz/board.c +++ b/board/dirinboz/board.c @@ -20,6 +20,7 @@ #include "fan_chip.h" #include "gpio.h" #include "hooks.h" +#include "keyboard_8042_sharedlib.h" #include "ioexpander.h" #include "lid_switch.h" #include "power.h" @@ -489,6 +490,13 @@ static void setup_fw_config(void) /* Gyro is not present, don't allow line to float */ gpio_set_flags(GPIO_6AXIS_INT_L, GPIO_INPUT | GPIO_PULL_DOWN); } + + /* + * If keyboard is US2(KB_LAYOUT_1), we need translate right ctrl + * to backslash(\|) key. + */ + if (ec_config_keyboard_layout() == KB_LAYOUT_1) + set_scancode_set2(4, 0, get_scancode_set2(2, 7)); } DECLARE_HOOK(HOOK_INIT, setup_fw_config, HOOK_PRIO_INIT_I2C + 2); |