]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: i8042: Correctly initialize the controller
authorBin Meng <bmeng.cn@gmail.com>
Mon, 24 Aug 2015 08:00:06 +0000 (01:00 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:47 +0000 (11:29 +0200)
commit52ca32e9b51864f44d225b0bcc14e3711ce04a8f
treee20b6eb9ea6c7e0319ed521e18880be83c160218
parentb237eee607f1000a9821a0df58cddcaf04c1930e
x86: i8042: Correctly initialize the controller

The existing i8042 keyboard controller driver has some issues.
First of all, it does not issue a self-test command (0xaa) to the
controller at the very beginning. Without this, the controller
does not respond to any command at all. Secondly, it initializes
the configuration byte register to turn on the keyboard's interrupt,
as U-Boot does not normally allow interrupts to be processed.
Finally, at the end of the initialization routine, it wrongly
sets the controller to disable all interfaces including both
keyboard and mouse.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/input/i8042.c