aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/pcengines/apu1/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/pcengines/apu1/bootblock.c')
-rw-r--r--src/mainboard/pcengines/apu1/bootblock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainboard/pcengines/apu1/bootblock.c b/src/mainboard/pcengines/apu1/bootblock.c
index 2d34cba3bf..dc9f87d905 100644
--- a/src/mainboard/pcengines/apu1/bootblock.c
+++ b/src/mainboard/pcengines/apu1/bootblock.c
@@ -17,9 +17,13 @@
#include <superio/nuvoton/nct5104d/nct5104d.h>
#define SIO_PORT 0x2e
-#define SERIAL_DEV PNP_DEV(SIO_PORT, NCT5104D_SP1)
+#define SERIAL1_DEV PNP_DEV(SIO_PORT, NCT5104D_SP1)
+#define SERIAL2_DEV PNP_DEV(SIO_PORT, NCT5104D_SP2)
void bootblock_mainboard_early_init(void)
{
- nuvoton_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
+ if (CONFIG_UART_FOR_CONSOLE == 1)
+ nuvoton_enable_serial(SERIAL2_DEV, CONFIG_TTYS0_BASE);
+ else if (CONFIG_UART_FOR_CONSOLE == 0)
+ nuvoton_enable_serial(SERIAL1_DEV, CONFIG_TTYS0_BASE);
}