diff options
author | Chris Webb <chris@arachsys.com> | 2019-07-19 16:23:55 +0300 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-07-22 16:52:59 +0300 |
commit | 89e39172301f15b29f663baf704bf2163a0cfa46 (patch) | |
tree | 1e079c1d2a6673f1f4c72378da32dda501160631 /arch/arm/mach-rockchip/tpl.c | |
parent | 58fcb03e671fbe847a0007171d4d54dad5af8139 (diff) | |
download | u-boot-89e39172301f15b29f663baf704bf2163a0cfa46.tar.xz |
rockchip: TPL banner should depend on CONFIG_TPL_BANNER_PRINT
The generic code in common/spl/spl.c allows TPL/SPL banners to be
silenced by unsetting CONFIG_TPL_BANNER_PRINT or CONFIG_SPL_BANNER_PRINT
respectively. However, arch/arm/mach-rockchip/tpl.c prints this banner
unconditionally.
Fix the rockchip-specific tpl.c so that the TPL banner depends on
CONFIG_TPL_BANNER_PRINT in the same way as the generic code.
Signed-off-by: <chris@arachsys.com>
Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/mach-rockchip/tpl.c')
-rw-r--r-- | arch/arm/mach-rockchip/tpl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/tpl.c b/arch/arm/mach-rockchip/tpl.c index 5df88bddeb..55f6e922d0 100644 --- a/arch/arm/mach-rockchip/tpl.c +++ b/arch/arm/mach-rockchip/tpl.c @@ -54,9 +54,11 @@ void board_init_f(ulong dummy) * printascii("string"); */ debug_uart_init(); +#ifdef CONFIG_TPL_BANNER_PRINT printascii("\nU-Boot TPL " PLAIN_VERSION " (" U_BOOT_DATE " - " \ U_BOOT_TIME ")\n"); #endif +#endif ret = spl_early_init(); if (ret) { debug("spl_early_init() failed: %d\n", ret); |