From e29b674faff3476224bcc36b0a357de647de6bd6 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 9 Dec 2020 01:33:59 +0100 Subject: soc/amd/picasso/aoac: only check FCH_AOAC_UART_FOR_CONSOLE if used FCH_AOAC_UART_FOR_CONSOLE will only be used in the code if PICASSO_CONSOLE_UART is selected, so only check if it's a valid value in this case. Change-Id: I103dd8d469a084c7dc7dcf55175b1f77f900adc5 Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/48485 Reviewed-by: Marshall Dawson Tested-by: build bot (Jenkins) --- src/soc/amd/picasso/aoac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/amd/picasso/aoac.c b/src/soc/amd/picasso/aoac.c index 7fd839bf46..c97700d38f 100644 --- a/src/soc/amd/picasso/aoac.c +++ b/src/soc/amd/picasso/aoac.c @@ -12,7 +12,7 @@ : CONFIG_UART_FOR_CONSOLE == 2 ? FCH_AOAC_DEV_UART2 \ : CONFIG_UART_FOR_CONSOLE == 3 ? FCH_AOAC_DEV_UART3 \ : -1) -#if FCH_AOAC_UART_FOR_CONSOLE == -1 +#if CONFIG(PICASSO_CONSOLE_UART) && FCH_AOAC_UART_FOR_CONSOLE == -1 # error Unsupported UART_FOR_CONSOLE chosen #endif -- cgit v1.2.3