zoombini: Update the keyboard config.

The keyboard config was the old chrome OS keyboard, but it should be the
new one introduced in April of this year.

Additionally, change KSO2 inverted to be push-pull instead of open
drain.  This was causing the entire row to not be detected.

BUG=None
BRANCH=None
TEST=Flash zoombini; Verify that every key on the keyboard is detected.

Change-Id: I408739eed84f06bd9a2df5a9053c75859f8aaa0b
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/670061
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Aseda Aboagye
2017-09-14 17:28:57 -07:00
committed by chrome-bot
parent cf696d75d5
commit d2e5de8529
2 changed files with 4 additions and 4 deletions

View File

@@ -109,15 +109,15 @@ const int usb_port_enable[CONFIG_USB_PORT_POWER_SMART_PORT_COUNT] = {
/* Keyboard scan setting */
struct keyboard_scan_config keyscan_config = {
/* Extra delay when KSO2 is tied to Cr50. */
.output_settle_us = 60, /* TODO(aaboagye): verify this is sufficient. */
.output_settle_us = 60,
.debounce_down_us = 6 * MSEC,
.debounce_up_us = 30 * MSEC,
.scan_period_us = 1500,
.min_post_scan_delay_us = 1000,
.poll_timeout_us = SECOND,
.actual_key_mask = {
0x14, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff,
0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xc8 /* full set with lock key */
0x3c, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff,
0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */
},
};

View File

@@ -105,7 +105,7 @@ ALTERNATE(PIN_MASK(2, 0xFC), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT)
/* KSO_00-01 */
ALTERNATE(PIN_MASK(2, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH)
/* KSO_02 inverted */
GPIO(KBD_KSO2, PIN(1, 7), GPIO_ODR_LOW)
GPIO(KBD_KSO2, PIN(1, 7), GPIO_OUT_LOW)
/* KSO_03-09 */
ALTERNATE(PIN_MASK(1, 0x7F), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH)
/* KSO_10-12 */