Skip to content

Commit

Permalink
libpayload-x86: Add common i8042 driver
Browse files Browse the repository at this point in the history
Add a common i8042 driver that uses multiple overflowing
fifos to seperate PS/2 port and PS/2 aux port.

Required to support PC keyboard and PC mouse at the same time.

Tested on Lenovo T500.

Change-Id: I4ca803bfa3ed45111776eef1f4dccd3fab02ea39
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/18594
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
  • Loading branch information
siro20 authored and pgeorgi committed May 15, 2018
1 parent 2b2f895 commit e6a3821
Show file tree
Hide file tree
Showing 4 changed files with 425 additions and 0 deletions.
6 changes: 6 additions & 0 deletions payloads/libpayload/Kconfig
Expand Up @@ -329,6 +329,12 @@ config FONT_SCALE_FACTOR
By default (value of 0), the scale factor is automatically
calculated to ensure at least 130 columns (when possible).

config PC_I8042
bool "A common PC i8042 driver"
default n
help
To be used by PC_KEYBOARD and PC_MOUSE.

config PC_KEYBOARD
bool "Allow input from a PC keyboard"
default y if ARCH_X86 # uses IO
Expand Down
1 change: 1 addition & 0 deletions payloads/libpayload/drivers/Makefile.inc
Expand Up @@ -38,6 +38,7 @@ libc-$(CONFIG_LP_S5P_SERIAL_CONSOLE) += serial/s5p.c serial/serial.c
libc-$(CONFIG_LP_IPQ806X_SERIAL_CONSOLE) += serial/ipq806x.c serial/serial.c
libc-$(CONFIG_LP_IPQ40XX_SERIAL_CONSOLE) += serial/ipq40xx.c serial/serial.c
libc-$(CONFIG_LP_BG4CD_SERIAL_CONSOLE) += serial/bg4cd.c serial/serial.c
libc-$(CONFIG_LP_PC_I8042) += i8042/i8042.c
libc-$(CONFIG_LP_PC_KEYBOARD) += keyboard.c

libc-$(CONFIG_LP_CBMEM_CONSOLE) += cbmem_console.c
Expand Down

0 comments on commit e6a3821

Please sign in to comment.