diff options
author | Nico Huber <nico.h@gmx.de> | 2019-05-29 18:39:31 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-06-03 13:24:27 +0000 |
commit | 62ddc491cf8c8c6412177d2866bec89c6f4906dc (patch) | |
tree | 551c96704574f1f05bfb577738029a8c6e76a23c /src | |
parent | ce8eebd3b7642e3d675616fb8d3d068cb58d66ef (diff) | |
download | coreboot-62ddc491cf8c8c6412177d2866bec89c6f4906dc.tar.xz |
soc/intel/common/uart: Correctly guard uart_platform_base()
We should only provide this implementation when the Intel LPSS UART is
used. Otherwise, no other UART could be used for the console with these
SoCs.
Change-Id: Iebd89edb3f21d4a68587fd02659b4d529f3f4bbe
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33097
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lance Zhao <lance.zhao@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/common/block/uart/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/uart/uart.c b/src/soc/intel/common/block/uart/uart.c index 47774b6e96..84ba1ee0f2 100644 --- a/src/soc/intel/common/block/uart/uart.c +++ b/src/soc/intel/common/block/uart/uart.c @@ -43,7 +43,7 @@ static void uart_lpss_init(uintptr_t baseaddr) CONFIG_SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL); } -#if CONFIG(DRIVERS_UART_8250MEM) +#if CONFIG(INTEL_LPSS_UART_FOR_CONSOLE) uintptr_t uart_platform_base(int idx) { if (idx == CONFIG_UART_FOR_CONSOLE) |