Keith Hui has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/82631?usp=email )
Change subject: sio/nuvoton: Add Kconfig for shared PS/2 port ......................................................................
sio/nuvoton: Add Kconfig for shared PS/2 port
Introduce HAVE_SHARED_PS2_PORT Kconfig for this Super I/O to have mainboards indicate if they have one shared PS/2 port on the rear panel. On these boards (where a Y-cable cannot allow both keyboard and mouse to work off the same port), if a PS/2 keyboard is not present, SIO should be configured to swap its role to mouse, to allow the OS to find and initialize any mouse connected.
For starter, add this Kconfig to all variants of asus/p8x7x-series where the official owners manual indicate such a port.
Supporting code will come in a separate patch. Idea is to condition them on this Kconfig.
Change-Id: I156b15c6ba233cbe8b9ba4d2cfbca6836ad7483a Signed-off-by: Keith Hui buurin@gmail.com --- M src/mainboard/asus/p8x7x-series/Kconfig M src/superio/nuvoton/common/Kconfig 2 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/82631/1
diff --git a/src/mainboard/asus/p8x7x-series/Kconfig b/src/mainboard/asus/p8x7x-series/Kconfig index e278b56..6ae529c 100644 --- a/src/mainboard/asus/p8x7x-series/Kconfig +++ b/src/mainboard/asus/p8x7x-series/Kconfig @@ -25,6 +25,7 @@ select BOARD_ROMSIZE_KB_8192 select SUPERIO_NUVOTON_NCT6779D select USE_NATIVE_RAMINIT + select HAVE_SHARED_PS2_PORT
config BOARD_ASUS_P8Z77_M_PRO select BOARD_ASUS_P8X7X_SERIES @@ -32,6 +33,7 @@ select DRIVERS_ASMEDIA_ASPM_BLACKLIST # for ASM1061 eSATA select MEMORY_MAPPED_TPM select SUPERIO_NUVOTON_NCT6779D + select HAVE_SHARED_PS2_PORT
config BOARD_ASUS_P8Z77_V_LX2 select BOARD_ASUS_P8X7X_SERIES @@ -48,6 +50,7 @@ select MAINBOARD_USES_IFD_GBE_REGION select SUPERIO_NUVOTON_NCT6779D select USE_NATIVE_RAMINIT + select HAVE_SHARED_PS2_PORT
config BOARD_ASUS_P8Z77_M select BOARD_ASUS_P8X7X_SERIES @@ -55,6 +58,7 @@ select MEMORY_MAPPED_TPM select SUPERIO_NUVOTON_NCT6779D select SUPERIO_NUVOTON_COMMON_COM_A + select HAVE_SHARED_PS2_PORT
if BOARD_ASUS_P8X7X_SERIES
diff --git a/src/superio/nuvoton/common/Kconfig b/src/superio/nuvoton/common/Kconfig index ffb6208..c24fd9c 100644 --- a/src/superio/nuvoton/common/Kconfig +++ b/src/superio/nuvoton/common/Kconfig @@ -11,3 +11,10 @@ help When enabled, the 'nuvoton_enable_serial()' function will unset global CR 0x2a bit 7 to route COM A to the GPIO8 pin group. + +config HAVE_SHARED_PS2_PORT + bool + depends on SUPERIO_NUVOTON_COMMON_PRE_RAM + help + Select this option if your mainboard has a single PS/2 port for both keyboard and + mouse. Add an nvram option to cmos.layout for PS/2 mouse support.