diff options
author | Pegorer Massimo <Massimo.Pegorer@vimar.com> | 2023-07-15 13:19:28 +0300 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2023-07-31 09:38:32 +0300 |
commit | aff236f30d51eee12eba86b49877ea643f374cd5 (patch) | |
tree | ac0ff88b5aa3747199476034656d7134fde515c4 /arch/arm/mach-rockchip | |
parent | a36d59ba99a19c777d896d4c70e75975654e2831 (diff) | |
download | u-boot-aff236f30d51eee12eba86b49877ea643f374cd5.tar.xz |
rockchip: rk3308: fix board_debug_uart_init
Definition of function board_debug_uart_init() must be under
CONFIG_DEBUG_UART_BOARD_INIT and not under CONFIG_DEBUG_UART,
as it was: see debug_uart.h. In this way the debug uart can
be used but its board-specific initialization skipped by
configuration, if useless.
Signed-off-by: Massimo Pegorer <massimo.pegorer@vimar.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/mach-rockchip')
-rw-r--r-- | arch/arm/mach-rockchip/rk3308/rk3308.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/rk3308/rk3308.c b/arch/arm/mach-rockchip/rk3308/rk3308.c index dd9109b7c3..5763604dc3 100644 --- a/arch/arm/mach-rockchip/rk3308/rk3308.c +++ b/arch/arm/mach-rockchip/rk3308/rk3308.c @@ -174,7 +174,7 @@ int rk_board_init(void) return 0; } -#if defined(CONFIG_DEBUG_UART) +#ifdef CONFIG_DEBUG_UART_BOARD_INIT __weak void board_debug_uart_init(void) { static struct rk3308_grf * const grf = (void *)GRF_BASE; |