]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
toradex: smarc-imx95: Drop init_uart_clk
authorPeng Fan <peng.fan@nxp.com>
Fri, 6 Feb 2026 15:28:45 +0000 (23:28 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 6 Feb 2026 23:32:10 +0000 (20:32 -0300)
Rely on serial driver calling clk_enable to enable the lpuart clk, no
need to do init_uart_clk in board_early_init_f().

Also remove board_early_init_f(), because it is empty now.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com>
board/toradex/smarc-imx95/smarc-imx95.c
board/toradex/smarc-imx95/spl.c
configs/toradex-smarc-imx95_defconfig

index c2cf872d9f9d0009e744dfc6d00daa043517ea5e..6040c49975a3771dfc4ca89e1f96932e83950a43 100644 (file)
@@ -8,14 +8,6 @@
 
 #include "../common/tdx-cfg-block.h"
 
-int board_early_init_f(void)
-{
-       /* UART1: A55 */
-       init_uart_clk(0);
-
-       return 0;
-}
-
 int board_phys_sdram_size(phys_size_t *size)
 {
        *size = PHYS_SDRAM_SIZE + PHYS_SDRAM_2_SIZE;
index e0e39b8bb94d043556738ecbd158ac1300eed918..ce8da89410babc9bfcccb382c6ab23a89b261c4a 100644 (file)
@@ -105,8 +105,6 @@ void board_init_f(ulong dummy)
 
        arch_cpu_init();
 
-       board_early_init_f();
-
        preloader_console_init();
 
        debug("SOC: 0x%x\n", gd->arch.soc_rev);
index 5ab420ae519eacc927adffb0fb7ee4957474362e..77b355c12d6c5e88e875a23097fea31fa543d786 100644 (file)
@@ -43,7 +43,6 @@ CONFIG_SYS_PBSIZE=2074
 CONFIG_LOG=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_DISPLAY_BOARDINFO_LATE=y
-CONFIG_BOARD_EARLY_INIT_F=y
 # CONFIG_BOARD_INIT is not set
 CONFIG_SPL_MAX_SIZE=0x30000
 CONFIG_SPL_BOARD_INIT=y