diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-04-19 04:32:51 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-28 18:32:22 -0400 |
commit | 117a0e02bed75defbe02d23b13dbe0ae12a27d94 (patch) | |
tree | 6ef1250f1c6395ee5b74e6e745705637d3aaa542 /common/spl | |
parent | 30d313688f7aa722a420a4d6a5ef02573178355b (diff) | |
download | u-boot-117a0e02bed75defbe02d23b13dbe0ae12a27d94.tar.gz |
spl: ti: Avoid preloader_console_init if !CONFIG_SPL_SERIAL_SUPPORT
If CONFIG_SPL_SERIAL_SUPPORT is disabled then the build fails because
serial_init is undefined. Guard preloader_console_init() appropriately
to fix this.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'common/spl')
-rw-r--r-- | common/spl/spl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 61d3071324..794dbd0312 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -471,6 +471,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2) jump_to_image_no_args(&spl_image); } +#ifdef CONFIG_SPL_SERIAL_SUPPORT /* * This requires UART clocks to be enabled. In order for this to work the * caller must ensure that the gd pointer is valid. @@ -491,6 +492,7 @@ void preloader_console_init(void) spl_display_print(); #endif } +#endif /** * spl_relocate_stack_gd() - Relocate stack ready for board_init_r() execution |