summaryrefslogtreecommitdiff
path: root/src/superio
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-07-19 01:38:28 +0200
committerNico Huber <nico.h@gmx.de>2020-07-19 18:18:12 +0000
commit45d5f8f163898f943679129416b5c0d93c61c407 (patch)
treec45c636f254e426c4a97c5355cb3eb4ff49b6ae8 /src/superio
parent75db8c8ea830033e5b42ea45a0aa63c895d25270 (diff)
sio/nuvoton/common/early_serial.c: Guard serial enable
If CONSOLE_SERIAL is not set, do not reconfigure the UART LDN. Otherwise, SerialICE stops working when the UART LDN is disabled. Change-Id: Ie3113e6b7b830dfdddc4d7709f00719f29e094bf Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43582 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/superio')
-rw-r--r--src/superio/nuvoton/common/early_serial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/superio/nuvoton/common/early_serial.c b/src/superio/nuvoton/common/early_serial.c
index f4938f0edc..22d882ef1a 100644
--- a/src/superio/nuvoton/common/early_serial.c
+++ b/src/superio/nuvoton/common/early_serial.c
@@ -47,6 +47,9 @@ void nuvoton_pnp_exit_conf_state(pnp_devfn_t dev)
/* Bring up early serial debugging output before the RAM is initialized. */
void nuvoton_enable_serial(pnp_devfn_t dev, u16 iobase)
{
+ if (!CONFIG(CONSOLE_SERIAL))
+ return;
+
nuvoton_pnp_enter_conf_state(dev);
if (CONFIG(SUPERIO_NUVOTON_NCT5539D_COM_A))