board: beacon: imx8mm: Let clock system enable UART clock
authorAdam Ford <aford173@gmail.com>
Tue, 18 Mar 2025 23:38:34 +0000 (18:38 -0500)
committerFabio Estevam <festevam@gmail.com>
Wed, 19 Mar 2025 16:17:21 +0000 (13:17 -0300)
Now that the UART driver can enable the required clocks, remove
the hard-coded clock enable.  This requires a small re-order
of a couple functions.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
board/beacon/imx8mm/spl.c

index 12013aa..93ee5b7 100644 (file)
@@ -100,9 +100,6 @@ void board_init_f(ulong dummy)
        int ret;
 
        arch_cpu_init();
-
-       init_uart_clk(1);
-
        timer_init();
 
        /* Clear the BSS. */
@@ -114,8 +111,6 @@ void board_init_f(ulong dummy)
                hang();
        }
 
-       preloader_console_init();
-
        ret = uclass_get_device_by_name(UCLASS_CLK,
                                        "clock-controller@30380000",
                                        &dev);
@@ -124,6 +119,7 @@ void board_init_f(ulong dummy)
                hang();
        }
 
+       preloader_console_init();
        enable_tzc380();
 
        power_init_board();