* [PATCH] clk: imx: keep uart clock on during system boot
@ 2019-04-25 8:10 Jacky Bai
2019-04-25 23:56 ` Stephen Boyd
2019-04-26 20:11 ` Stephen Boyd
0 siblings, 2 replies; 4+ messages in thread
From: Jacky Bai @ 2019-04-25 8:10 UTC (permalink / raw)
To: sboyd, shawnguo, s.hauer, kernel, festevam; +Cc: dl-linux-imx, linux-clk
Keep uart clocks enabled when earlyprintk or
earlycon is active.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
---
drivers/clk/imx/clk-imx6sll.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/clk/imx/clk-imx6sll.c b/drivers/clk/imx/clk-imx6sll.c
index 3bd2044cf25c..35217c2f9f62 100644
--- a/drivers/clk/imx/clk-imx6sll.c
+++ b/drivers/clk/imx/clk-imx6sll.c
@@ -76,6 +76,20 @@ static u32 share_count_ssi1;
static u32 share_count_ssi2;
static u32 share_count_ssi3;
+static struct clk ** const uart_clks[] __initconst = {
+ &clks[IMX6SLL_CLK_UART1_IPG],
+ &clks[IMX6SLL_CLK_UART1_SERIAL],
+ &clks[IMX6SLL_CLK_UART2_IPG],
+ &clks[IMX6SLL_CLK_UART2_SERIAL],
+ &clks[IMX6SLL_CLK_UART3_IPG],
+ &clks[IMX6SLL_CLK_UART3_SERIAL],
+ &clks[IMX6SLL_CLK_UART4_IPG],
+ &clks[IMX6SLL_CLK_UART4_SERIAL],
+ &clks[IMX6SLL_CLK_UART5_IPG],
+ &clks[IMX6SLL_CLK_UART5_SERIAL],
+ NULL
+};
+
static void __init imx6sll_clocks_init(struct device_node *ccm_node)
{
struct device_node *np;
@@ -334,6 +348,8 @@ static void __init imx6sll_clocks_init(struct device_node *ccm_node)
clk_data.clk_num = ARRAY_SIZE(clks);
of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data);
+ imx_register_uart_clocks(uart_clks);
+
/* Lower the AHB clock rate before changing the clock source. */
clk_set_rate(clks[IMX6SLL_CLK_AHB], 99000000);
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: imx: keep uart clock on during system boot
2019-04-25 8:10 [PATCH] clk: imx: keep uart clock on during system boot Jacky Bai
@ 2019-04-25 23:56 ` Stephen Boyd
2019-04-26 3:09 ` Shawn Guo
2019-04-26 20:11 ` Stephen Boyd
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2019-04-25 23:56 UTC (permalink / raw)
To: festevam, kernel, s.hauer, shawnguo, Jacky Bai; +Cc: dl-linux-imx, linux-clk
Quoting Jacky Bai (2019-04-25 01:10:08)
> Keep uart clocks enabled when earlyprintk or
> earlycon is active.
>
> Signed-off-by: Jacky Bai <ping.bai@nxp.com>
> ---
Looks OK to me. Shawn, will you pick it up? Or should I apply directly?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: imx: keep uart clock on during system boot
2019-04-25 23:56 ` Stephen Boyd
@ 2019-04-26 3:09 ` Shawn Guo
0 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2019-04-26 3:09 UTC (permalink / raw)
To: Stephen Boyd
Cc: festevam, kernel, s.hauer, Jacky Bai, dl-linux-imx, linux-clk
On Thu, Apr 25, 2019 at 04:56:38PM -0700, Stephen Boyd wrote:
> Quoting Jacky Bai (2019-04-25 01:10:08)
> > Keep uart clocks enabled when earlyprintk or
> > earlycon is active.
> >
> > Signed-off-by: Jacky Bai <ping.bai@nxp.com>
> > ---
>
> Looks OK to me. Shawn, will you pick it up? Or should I apply directly?
Stephen, please apply directly.
Shawn
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: imx: keep uart clock on during system boot
2019-04-25 8:10 [PATCH] clk: imx: keep uart clock on during system boot Jacky Bai
2019-04-25 23:56 ` Stephen Boyd
@ 2019-04-26 20:11 ` Stephen Boyd
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2019-04-26 20:11 UTC (permalink / raw)
To: festevam, kernel, s.hauer, shawnguo, Jacky Bai; +Cc: dl-linux-imx, linux-clk
Quoting Jacky Bai (2019-04-25 01:10:08)
> Keep uart clocks enabled when earlyprintk or
> earlycon is active.
>
> Signed-off-by: Jacky Bai <ping.bai@nxp.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-26 20:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-25 8:10 [PATCH] clk: imx: keep uart clock on during system boot Jacky Bai
2019-04-25 23:56 ` Stephen Boyd
2019-04-26 3:09 ` Shawn Guo
2019-04-26 20:11 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).