From b498a4c805e5de9a190b97c91ac7a166b421b31f Mon Sep 17 00:00:00 2001 From: Keith Hui Date: Tue, 5 Mar 2024 19:08:53 -0500 Subject: 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. Supporting code will come in a separate patch. Idea is to condition them on this Kconfig. Change-Id: I156b15c6ba233cbe8b9ba4d2cfbca6836ad7483a Signed-off-by: Keith Hui Reviewed-on: https://review.coreboot.org/c/coreboot/+/82631 Reviewed-by: Eric Lai Reviewed-by: Nico Huber Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/superio/nuvoton/common/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/superio/nuvoton/common/Kconfig b/src/superio/nuvoton/common/Kconfig index ffb620876c..376ae16422 100644 --- a/src/superio/nuvoton/common/Kconfig +++ b/src/superio/nuvoton/common/Kconfig @@ -11,3 +11,13 @@ config SUPERIO_NUVOTON_COMMON_COM_A 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, and where a Y-cable cannot allow both keyboard and mouse to work off the same + port. This one port usually works for keyboards only. Add the nvram option + "swap_keyboard_and_mouse" to cmos.layout to allow changing this port into a + mouse port. -- cgit v1.2.3