diff options
author | Zhuohao Lee <zhuohao@chromium.org> | 2020-02-04 13:32:43 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-13 05:15:12 +0000 |
commit | af32d7eb68444fa5fe7b863e65063d75a3aa5007 (patch) | |
tree | f61fa2efcf6f38fc6cc914c3098a4fcb66cc8dab /board/palkia/gpio.inc | |
parent | afb7e5bf31dd1a1d94f552554103952b0cc74cc6 (diff) | |
download | chrome-ec-af32d7eb68444fa5fe7b863e65063d75a3aa5007.tar.gz |
palkia: add keyboard customization
As the Palkia isn't using chromeos keyboard, we need to
remapping the keyboard matrix for the key event. The
new config option CONFIG_KEYBOARD_CUSTOMIZATION is added
to customize the keyboard matrix in the board layer.
Most of the keys have been remapped except F11-F16, Fn and
win key, we can remap it later.
BUG=b:148034320
BRANCH=firmware-hatch-12672.B
TEST=esc+refresh+power
alt+vol up+r
evtest for all of the keys
Change-Id: Ibb02e3a7f5e022eeca36865e8561393fc326f2af
Signed-off-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2035445
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/palkia/gpio.inc')
-rw-r--r-- | board/palkia/gpio.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/palkia/gpio.inc b/board/palkia/gpio.inc index 3dc181eca0..ec7ce25538 100644 --- a/board/palkia/gpio.inc +++ b/board/palkia/gpio.inc @@ -86,12 +86,13 @@ GPIO(I2C7_SDA, PIN(B, 2), GPIO_INPUT) /* EC_I2C_EEPROM /* Keyboard pins */ #define GPIO_KB_INPUT (GPIO_INPUT | GPIO_PULL_UP) -GPIO(KBD_KSO2, PIN(1, 7), GPIO_OUT_LOW) /* KSO_02 inverted */ +GPIO(KBD_KSO4, PIN(1, 5), GPIO_OUT_LOW) /* KSO_04 inverted */ ALTERNATE(PIN_MASK(3, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_KB_INPUT) /* KSI_00-01 */ ALTERNATE(PIN_MASK(2, 0xFC), 0, MODULE_KEYBOARD_SCAN, GPIO_KB_INPUT) /* KSI_02-07 */ ALTERNATE(PIN_MASK(2, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_00-01 */ -ALTERNATE(PIN_MASK(1, 0x7F), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_03-09 */ -ALTERNATE(PIN_MASK(0, 0xE0), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_10-12 */ +ALTERNATE(PIN_MASK(1, 0xDF), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_02-03,05-09 */ +ALTERNATE(PIN_MASK(0, 0xE8), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_10-13 */ +ALTERNATE(PIN_MASK(8, 0x0C), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_14-15 */ /* Alternate functions GPIO definitions */ ALTERNATE(PIN_MASK(9, 0x01), 0, MODULE_I2C, 0) /* I2C1 SCL */ |