diff options
author | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2012-06-19 23:29:46 +0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-19 21:38:52 -0700 |
commit | bdf3ea3b091eb553ef25a684bc108d36ba7f7afe (patch) | |
tree | 7cf5916b0a3a9f0248432a662ce56ecb94e8f3cc | |
parent | 004c607a96d650f9f6ac0891b32a458253c080dc (diff) | |
download | chrome-ec-bdf3ea3b091eb553ef25a684bc108d36ba7f7afe.tar.gz |
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 <yjlou@chromium.org>
BUG=chrome-os-partner:10358
TEST=tested on link.
Reviewed-on: https://gerrit.chromium.org/gerrit/25619
Reviewed-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
Tested-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
Commit-Ready: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
-rw-r--r-- | common/keyboard.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |