MLK-23574-10 imx8: Enable UART0 LPCG clock for early serial
authorYe Li <ye.li@nxp.com>
Wed, 3 Jul 2019 09:30:27 +0000 (02:30 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:20 +0000 (00:56 -0700)
Enable the UART0 LPCG clock in sc_pm_setup_uart for early print
not depending on the reset default value.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 534317be23ef37f2aaae5c384410bc49b13e2dca)

arch/arm/mach-imx/imx8/misc.c

index a6895f3..4374f92 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/arm-smccc.h>
 #include <generated/version_autogenerated.h>
 #include <linux/libfdt.h>
+#include <asm/arch/lpcg.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -32,6 +33,8 @@ int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate)
        if (ret)
                return ret;
 
+       lpcg_all_clock_on(LPUART_0_LPCG);
+
        return 0;
 }