x86: i8042: Correctly initialize the controller
authorBin Meng <bmeng.cn@gmail.com>
Mon, 24 Aug 2015 08:00:06 +0000 (01:00 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 26 Aug 2015 14:54:16 +0000 (07:54 -0700)
commit7d96166b1b1a261ddd4247befd62b35b2f482bae
tree8bade35e77db70ad27eaf9e04da1040cf294b31a
parent835dd000503591d8eb59a191f7220768898737b3
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