From bdf3ea3b091eb553ef25a684bc108d36ba7f7afe Mon Sep 17 00:00:00 2001 From: Louis Yung-Chieh Lo Date: Tue, 19 Jun 2012 23:29:46 +0800 Subject: [PATCH] Support KBC I8042_TEST_KB_PORT (0xab) command. Lack of this command could make u-boot pc_keyb.c failed to init (see lines around line 143 of u-boot/files/drivers/input/pc_keyb.c). static char * kbd_initialize(void) { ... kbd_write_command_w(KBD_CCMD_KBD_TEST); if (kbd_wait_for_input() != 0x00) return "Kbd: interface failed self test"; Change-Id: I0a906e0ee4419be74a79ce983c025ce42f02cb81 Signed-off-by: Louis Yung-Chieh Lo BUG=chrome-os-partner:10358 TEST=tested on link. Reviewed-on: https://gerrit.chromium.org/gerrit/25619 Reviewed-by: Yung-Chieh Lo Tested-by: Yung-Chieh Lo Commit-Ready: Yung-Chieh Lo --- common/keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/keyboard.c b/common/keyboard.c index 7ef263df37..3fb619f0af 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -572,6 +572,10 @@ int handle_keyboard_command(uint8_t command, uint8_t *output) output[out_len++] = 0x55; /* Self test success */ break; + case I8042_TEST_KB_PORT: + output[out_len++] = 0x00; + break; + case I8042_DIS_MOUSE: update_ctl_ram(0, read_ctl_ram(0) | I8042_AUX_DIS); break;