aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/cavium/cn8100_sff_evb/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/cavium/cn8100_sff_evb/bootblock.c')
-rw-r--r--src/mainboard/cavium/cn8100_sff_evb/bootblock.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mainboard/cavium/cn8100_sff_evb/bootblock.c b/src/mainboard/cavium/cn8100_sff_evb/bootblock.c
index 36332cc6e3..a13b966df7 100644
--- a/src/mainboard/cavium/cn8100_sff_evb/bootblock.c
+++ b/src/mainboard/cavium/cn8100_sff_evb/bootblock.c
@@ -21,10 +21,8 @@
void bootblock_mainboard_early_init(void)
{
if (IS_ENABLED(CONFIG_BOOTBLOCK_CONSOLE)) {
- if (!uart_is_enabled(0))
- uart_setup(0, CONFIG_TTYS0_BAUD);
- if (!uart_is_enabled(1))
- uart_setup(0, CONFIG_TTYS0_BAUD);
+ if (!uart_is_enabled(CONFIG_UART_FOR_CONSOLE))
+ uart_setup(CONFIG_UART_FOR_CONSOLE, CONFIG_TTYS0_BAUD);
}
}