From 57d5a4c3ed001f813f1c8e1609db83c84d0e88cf Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Mon, 21 Sep 2015 18:54:01 +0200 Subject: clk: imx35: retain early UART clocks during kernel init Make sure to keep UART clocks enabled during kernel init if earlyprintk or earlycon are active. Signed-off-by: Lucas Stach Signed-off-by: Shawn Guo --- drivers/clk/imx/clk-imx35.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/clk/imx/clk-imx35.c') diff --git a/drivers/clk/imx/clk-imx35.c b/drivers/clk/imx/clk-imx35.c index 76c463dcdb1c..a71d24cb4c06 100644 --- a/drivers/clk/imx/clk-imx35.c +++ b/drivers/clk/imx/clk-imx35.c @@ -84,6 +84,14 @@ enum mx35_clks { static struct clk *clk[clk_max]; +static struct clk ** const uart_clks[] __initconst = { + &clk[ipg], + &clk[uart1_gate], + &clk[uart2_gate], + &clk[uart3_gate], + NULL +}; + static void __init _mx35_clocks_init(void) { void __iomem *base; @@ -237,6 +245,8 @@ static void __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()); } -- cgit v1.2.3