From 6e0f979d406074fc471644c87595b184ca2f6f45 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Mon, 3 Dec 2018 13:46:29 -0800 Subject: Nami: Support UK2 keyboard This patch swaps the forwardslash-pipe key (scancode=0x56) with the right control key (scancode=0xe014) if UK2 bit in SKU ID is enabled. evtest produces: type 1 (EV_KEY), code 86 (KEY_102ND), value 1 Signed-off-by: Daisuke Nojiri BUG=b:117827249 BRANCH=none TEST=Verify forwardslash key produces keycode=0x1d on Syndra with UK2. TEST=Verify '\' and '|' are printed on OS (with input method = UK). TEST=Run emerge-nami chromeos-ec Change-Id: Ibbaeccd12cfc09d913ecfe1172218297c3d7341a Reviewed-on: https://chromium-review.googlesource.com/1366307 Commit-Ready: Daisuke Nojiri Tested-by: Daisuke Nojiri Reviewed-by: Daisuke Nojiri --- board/nami/board.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/nami/board.h') diff --git a/board/nami/board.h b/board/nami/board.h index 5bf1eb013f..60258c2e7b 100644 --- a/board/nami/board.h +++ b/board/nami/board.h @@ -32,6 +32,7 @@ #define CONFIG_KEYBOARD_COL2_INVERTED #define CONFIG_KEYBOARD_PROTOCOL_8042 #define CONFIG_KEYBOARD_KEYPAD +#define CONFIG_KEYBOARD_SCANCODE_MUTABLE #define CONFIG_LED_COMMON #define CONFIG_LID_SWITCH #define CONFIG_LOW_POWER_IDLE @@ -296,6 +297,7 @@ enum model_id { #define SKU_ID_MASK_CONVERTIBLE (1 << 9) #define SKU_ID_MASK_KEYPAD (1 << 15) +#define SKU_ID_MASK_UK2 (1 << 18) /* TODO(crosbug.com/p/61098): Verify the numbers below. */ /* -- cgit v1.2.1