]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: fsp: Wrap setup_internal_uart() call with CONFIG_INTERNAL_UART
authorBin Meng <bmeng.cn@gmail.com>
Wed, 15 Jun 2016 04:33:24 +0000 (21:33 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 12 Jul 2016 05:46:01 +0000 (13:46 +0800)
For any FSP-enabled boards that want to enable debug UART support,
setup_internal_uart() will be called, but this API is only available
on BayTrail platform. Change to wrap it with CONFIG_INTERNAL_UART.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/fsp/fsp_support.c

index b05dcede0c40d38ae473c18dec34cf27e313cd19..a48036121119a27699f6dc2415c017044f4cf4be 100644 (file)
@@ -110,7 +110,7 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf)
        struct upd_region *fsp_upd;
 #endif
 
-#ifdef CONFIG_DEBUG_UART
+#ifdef CONFIG_INTERNAL_UART
        setup_internal_uart(1);
 #endif