aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/cpu
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-05-27 22:15:24 +0200
committerTom Rini <trini@konsulko.com>2022-06-06 18:01:21 -0400
commitb62450cf229c50ad2ce819dd02a09726909cc89a (patch)
treea8315fd7fca59a0cff90ba0343d73c3f15e18c50 /arch/x86/cpu
parent24272ffd505be0597703032dbdd8ffdd7ef7a1a9 (diff)
downloadu-boot-b62450cf229c50ad2ce819dd02a09726909cc89a.zip
u-boot-b62450cf229c50ad2ce819dd02a09726909cc89a.tar.gz
u-boot-b62450cf229c50ad2ce819dd02a09726909cc89a.tar.bz2
serial: Replace CONFIG_DEBUG_UART_BASE by CONFIG_VAL(DEBUG_UART_BASE)
CONFIG_VAL(DEBUG_UART_BASE) expands to CONFIG_DEBUG_UART_BASE or CONFIG_SPL_DEBUG_UART_BASE or CONFIG_TPL_DEBUG_UART_BASE and allows boards to set different values for SPL, TPL and U-Boot Proper. For ns16550 driver this support is there since commit d293759d55cc ("serial: ns16550: Add support for SPL_DEBUG_UART_BASE"). Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'arch/x86/cpu')
-rw-r--r--arch/x86/cpu/apollolake/cpu_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/apollolake/cpu_common.c b/arch/x86/cpu/apollolake/cpu_common.c
index 5d7d26b..9a55026 100644
--- a/arch/x86/cpu/apollolake/cpu_common.c
+++ b/arch/x86/cpu/apollolake/cpu_common.c
@@ -72,7 +72,7 @@ static void pch_uart_init(void)
}
#ifdef CONFIG_DEBUG_UART
- apl_uart_init(PCH_DEV_UART, CONFIG_DEBUG_UART_BASE);
+ apl_uart_init(PCH_DEV_UART, CONFIG_VAL(DEBUG_UART_BASE));
#endif
}