diff options
author | Keith Hui <buurin@gmail.com> | 2024-03-05 19:08:53 -0500 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2024-06-08 00:20:24 +0000 |
commit | b498a4c805e5de9a190b97c91ac7a166b421b31f (patch) | |
tree | 88f0c98be0f56c1a406c117c58329006646eb367 | |
parent | a911b758482025d46e132eeb2ed0279b65692075 (diff) |
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 <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82631
Reviewed-by: Eric Lai <ericllai@google.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/superio/nuvoton/common/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
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. |