Make sure to keep UART clocks enabled during kernel init if
earlyprintk or earlycon are active.

Signed-off-by: Lucas Stach <[email protected]>
---
 drivers/clk/imx/clk-imx35.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/clk/imx/clk-imx35.c b/drivers/clk/imx/clk-imx35.c
index 69138ba3dec7..d337819f89c8 100644
--- a/drivers/clk/imx/clk-imx35.c
+++ b/drivers/clk/imx/clk-imx35.c
@@ -84,6 +84,12 @@ enum mx35_clks {
 
 static struct clk *clk[clk_max];
 
+static struct clk **uart_clks[] __initdata = { &clk[ipg],
+                                              &clk[uart1_gate],
+                                              &clk[uart2_gate],
+                                              &clk[uart3_gate],
+                                              NULL };
+
 int __init mx35_clocks_init(void)
 {
        void __iomem *base;
@@ -292,6 +298,8 @@ int __init mx35_clocks_init(void)
         */
        clk_prepare_enable(clk[scc_gate]);
 
+       imx_register_uart_clocks(uart_clks);
+
        imx_print_silicon_rev("i.MX35", mx35_revision());
 
        mxc_timer_init(MX35_GPT1_BASE_ADDR, MX35_INT_GPT, GPT_TYPE_IMX31);
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-clk" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to