Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45971 )
Change subject: superio/nuvoton/nct6779d: Add symbol to select COM port ......................................................................
superio/nuvoton/nct6779d: Add symbol to select COM port
Like the NCT6776 and NCT6791D, the NCT6779D has muxed COMA/GPIO8 functions. Since it requires setting different bits, add a new Kconfig symbol to do it.
TEST=Selecting the symbol gives working serial console on the Asus F2A85-M PRO. Change-Id: I024ea86634b489985112ddb7ce07886e412e4c0b Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M src/superio/nuvoton/common/early_serial.c M src/superio/nuvoton/nct6779d/Kconfig 2 files changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/45971/1
diff --git a/src/superio/nuvoton/common/early_serial.c b/src/superio/nuvoton/common/early_serial.c index cc21f40..6809a2a 100644 --- a/src/superio/nuvoton/common/early_serial.c +++ b/src/superio/nuvoton/common/early_serial.c @@ -53,7 +53,8 @@ nuvoton_pnp_enter_conf_state(dev);
if (CONFIG(SUPERIO_NUVOTON_NCT5539D_COM_A) || - CONFIG(SUPERIO_NUVOTON_NCT6776_COM_A)) + CONFIG(SUPERIO_NUVOTON_NCT6776_COM_A) || + CONFIG(SUPERIO_NUVOTON_NCT6779D_COM_A)) /* Route COM A to GPIO8 pin group */ pnp_write_config(dev, 0x2a, 0x40);
diff --git a/src/superio/nuvoton/nct6779d/Kconfig b/src/superio/nuvoton/nct6779d/Kconfig index ce2af16..2427bdd 100644 --- a/src/superio/nuvoton/nct6779d/Kconfig +++ b/src/superio/nuvoton/nct6779d/Kconfig @@ -3,3 +3,8 @@ config SUPERIO_NUVOTON_NCT6779D bool select SUPERIO_NUVOTON_COMMON_PRE_RAM + +config SUPERIO_NUVOTON_NCT6779D_COM_A + bool + depends on SUPERIO_NUVOTON_NCT6779D + default n