[U-Boot] [PATCH 18/23] x86: Allow a UART to be set up before the FSP is ready
Bin Meng
bmeng.cn at gmail.com
Tue Jan 27 14:12:22 CET 2015
Hi Simon,
On Tue, Jan 27, 2015 at 9:23 AM, Simon Glass <sjg at chromium.org> wrote:
> Since the FSP is a black box it helps to have some sort of debugging
> available to check its inputs. If the debug UART is in use, set it up
> after CAR is available.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> arch/x86/include/asm/u-boot-x86.h | 3 +++
> arch/x86/lib/fsp/fsp_support.c | 4 ++++
> 2 files changed, 7 insertions(+)
>
> diff --git a/arch/x86/include/asm/u-boot-x86.h b/arch/x86/include/asm/u-boot-x86.h
> index 44c24ff..85fafc0 100644
> --- a/arch/x86/include/asm/u-boot-x86.h
> +++ b/arch/x86/include/asm/u-boot-x86.h
> @@ -62,6 +62,9 @@ int fsp_cpu_mmc_init(const char *name, struct pci_device_id mmc_supported[],
> /* Set up a UART which can be used with printch(), printhex8(), etc. */
> int setup_early_uart(void);
>
> +/* Set up a UART which can be used with printch(), printhex8(), etc. */
> +int setup_early_uart(void);
> +
Duplicated setup_early_uart() here .. The first one was wrongly
introduced in patch#14 in this series.
> void setup_pcat_compatibility(void);
>
> void isa_unmap_rom(u32 addr);
> diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp/fsp_support.c
> index 8b639f7..5f96da1 100644
> --- a/arch/x86/lib/fsp/fsp_support.c
> +++ b/arch/x86/lib/fsp/fsp_support.c
> @@ -124,6 +124,10 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf)
> struct fsp_init_params *params_ptr;
> struct upd_region *fsp_upd;
>
> +#ifdef CONFIG_DEBUG_UART
> + setup_early_uart();
> +#endif
> +
> fsp_hdr = find_fsp_header();
> if (fsp_hdr == NULL) {
> /* No valid FSP info header was found */
> --
Regards,
Bin
More information about the U-Boot
mailing list