mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
i8042: Add keyboard enable logic in kbd_reset()
This code appears to be missing a piece that is needed on some keyboards to enable the keyboard. Add this in. This makes the keyboard work correctly on chromebook_link. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@ -698,7 +698,14 @@ static int kbd_reset(void)
|
|||||||
|
|
||||||
/* Enable Keyboard */
|
/* Enable Keyboard */
|
||||||
out8(I8042_COMMAND_REG, 0xae);
|
out8(I8042_COMMAND_REG, 0xae);
|
||||||
|
if (kbd_input_empty() == 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
out8(I8042_COMMAND_REG, 0x60);
|
||||||
|
if (kbd_input_empty() == 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
out8(I8042_DATA_REG, 0xf4);
|
||||||
if (kbd_input_empty() == 0)
|
if (kbd_input_empty() == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user