summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/stoneyridge/uart.c')
-rw-r--r--src/soc/amd/stoneyridge/uart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/amd/stoneyridge/uart.c b/src/soc/amd/stoneyridge/uart.c
index 9cc0c94894..d5d30061bf 100644
--- a/src/soc/amd/stoneyridge/uart.c
+++ b/src/soc/amd/stoneyridge/uart.c
@@ -18,6 +18,9 @@
uintptr_t uart_platform_base(int idx)
{
+ if (CONFIG_UART_FOR_CONSOLE < 0 || CONFIG_UART_FOR_CONSOLE > 1)
+ return 0;
+
return (uintptr_t)(APU_UART0_BASE + 0x2000 * (idx & 1));
}