From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 26 Mar 2015 09:29:41 -0600 Subject: [U-Boot] [PATCH v2 17/17] i8042: Add keyboard enable logic in kbd_reset() In-Reply-To: <1427383781-7151-1-git-send-email-sjg@chromium.org> References: <1427383781-7151-1-git-send-email-sjg@chromium.org> Message-ID: <1427383781-7151-18-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: - Rebase to dm/next drivers/input/i8042.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c index ca1604c..1769c5e 100644 --- a/drivers/input/i8042.c +++ b/drivers/input/i8042.c @@ -698,7 +698,14 @@ static int kbd_reset(void) /* Enable Keyboard */ 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) return -1; -- 2.2.0.rc0.207.ga3a616c