]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3308: fix board_debug_uart_init
authorPegorer Massimo <Massimo.Pegorer@vimar.com>
Sat, 15 Jul 2023 10:19:28 +0000 (10:19 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 31 Jul 2023 06:38:32 +0000 (14:38 +0800)
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>
arch/arm/mach-rockchip/rk3308/rk3308.c

index dd9109b7c3d682d05d6a344bc05e98531dbe4286..5763604dc3e20bf9bff8f825bf8d2d0a9e45e419 100644 (file)
@@ -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;