From: Bin Meng Date: Thu, 1 Jun 2017 03:41:14 -0700 Subject: [U-Boot] [PATCH 2/2] x86: fsp: Remove the call to set up internal uart in fsp_init() In-Reply-To: <1496313674-26642-1-git-send-email-bmeng.cn@gmail.com> References: <1496313674-26642-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1496313674-26642-2-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de First of all, it's inappropriate to call setup_internal_uart() in a generic API fsp_init(), as CONFIG_INTERNAL_UART is an option that is only available on BayTrail platform. Secondly even for BayTrail, there is no need to call setup_internal_uart() at all, as Intel FSP will do this for us. Signed-off-by: Bin Meng --- arch/x86/lib/fsp/fsp_support.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp/fsp_support.c index a480361..ab8340c 100644 --- a/arch/x86/lib/fsp/fsp_support.c +++ b/arch/x86/lib/fsp/fsp_support.c @@ -110,10 +110,6 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf) struct upd_region *fsp_upd; #endif -#ifdef CONFIG_INTERNAL_UART - setup_internal_uart(1); -#endif - fsp_hdr = find_fsp_header(); if (fsp_hdr == NULL) { /* No valid FSP info header was found */ -- 2.9.2