diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-27 22:13:42 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-02-06 12:07:38 -0700 |
commit | 447f8b018e5e5bc5b6958ce6ed8f79e8c35c30af (patch) | |
tree | 8e75ccfa3d56a0b6e68a8c148fac401d9cd0d68b /arch/x86/lib | |
parent | 8ce24cd9919b9d7157a800e0fd1ec653730c937e (diff) | |
download | u-boot-imx-447f8b018e5e5bc5b6958ce6ed8f79e8c35c30af.zip u-boot-imx-447f8b018e5e5bc5b6958ce6ed8f79e8c35c30af.tar.gz u-boot-imx-447f8b018e5e5bc5b6958ce6ed8f79e8c35c30af.tar.bz2 |
x86: Allow a UART to be set up before the FSP is ready
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@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/fsp/fsp_support.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |