diff options
-rw-r--r-- | src/superio/nuvoton/common/early_serial.c | 3 |
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)) |