LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization
@ 2018-05-17 5:00 Anson Huang
2018-05-17 5:00 ` [PATCH] clk: imx6sl: correct ocram_podf clock type Anson Huang
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Anson Huang @ 2018-05-17 5:00 UTC (permalink / raw)
To: shawnguo, kernel, fabio.estevam, mturquette, sboyd
Cc: Linux-imx, linux-arm-kernel, linux-clk, linux-kernel
Disable those unnecessary clocks during kernel boot up to save power,
those modules clock should be managed by modules driver in runtime.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/clk-imx6sx.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c
index 0178ee2..10c771b 100644
--- a/drivers/clk/imx/clk-imx6sx.c
+++ b/drivers/clk/imx/clk-imx6sx.c
@@ -97,12 +97,7 @@ static int const clks_init_on[] __initconst = {
IMX6SX_CLK_IPMUX1, IMX6SX_CLK_IPMUX2, IMX6SX_CLK_IPMUX3,
IMX6SX_CLK_WAKEUP, IMX6SX_CLK_MMDC_P0_FAST, IMX6SX_CLK_MMDC_P0_IPG,
IMX6SX_CLK_ROM, IMX6SX_CLK_ARM, IMX6SX_CLK_IPG, IMX6SX_CLK_OCRAM,
- IMX6SX_CLK_PER2_MAIN, IMX6SX_CLK_PERCLK, IMX6SX_CLK_M4,
- IMX6SX_CLK_QSPI1, IMX6SX_CLK_QSPI2, IMX6SX_CLK_UART_IPG,
- IMX6SX_CLK_UART_SERIAL, IMX6SX_CLK_I2C3, IMX6SX_CLK_ECSPI5,
- IMX6SX_CLK_CAN1_IPG, IMX6SX_CLK_CAN1_SERIAL, IMX6SX_CLK_CAN2_IPG,
- IMX6SX_CLK_CAN2_SERIAL, IMX6SX_CLK_CANFD, IMX6SX_CLK_EPIT1,
- IMX6SX_CLK_EPIT2,
+ IMX6SX_CLK_PER2_MAIN, IMX6SX_CLK_PERCLK, IMX6SX_CLK_TZASC1,
};
static const struct clk_div_table clk_enet_ref_table[] = {
--
2.7.4
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] clk: imx6sl: correct ocram_podf clock type
2018-05-17 5:00 [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization Anson Huang
@ 2018-05-17 5:00 ` Anson Huang
2018-05-20 13:02 ` Shawn Guo
2018-06-01 19:10 ` Stephen Boyd
2018-05-20 13:01 ` [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization Shawn Guo
2018-06-01 19:10 ` Stephen Boyd
2 siblings, 2 replies; 6+ messages in thread
From: Anson Huang @ 2018-05-17 5:00 UTC (permalink / raw)
To: shawnguo, kernel, fabio.estevam, mturquette, sboyd
Cc: Linux-imx, linux-arm-kernel, linux-clk, linux-kernel
IMX6SL_CLK_OCRAM_PODF is a busy divider, its name in
CCM_CDHIPR register of Reference Manual CCM chapter
is axi_podf_busy, correct its clock type.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/clk-imx6sl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c
index 9642cdf..66b1dd1 100644
--- a/drivers/clk/imx/clk-imx6sl.c
+++ b/drivers/clk/imx/clk-imx6sl.c
@@ -330,7 +330,7 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node)
clks[IMX6SL_CLK_PERIPH2] = imx_clk_busy_mux("periph2", base + 0x14, 26, 1, base + 0x48, 3, periph2_sels, ARRAY_SIZE(periph2_sels));
/* name parent_name reg shift width */
- clks[IMX6SL_CLK_OCRAM_PODF] = imx_clk_divider("ocram_podf", "ocram_sel", base + 0x14, 16, 3);
+ clks[IMX6SL_CLK_OCRAM_PODF] = imx_clk_busy_divider("ocram_podf", "ocram_sel", base + 0x14, 16, 3, base + 0x48, 0);
clks[IMX6SL_CLK_PERIPH_CLK2_PODF] = imx_clk_divider("periph_clk2_podf", "periph_clk2_sel", base + 0x14, 27, 3);
clks[IMX6SL_CLK_PERIPH2_CLK2_PODF] = imx_clk_divider("periph2_clk2_podf", "periph2_clk2_sel", base + 0x14, 0, 3);
clks[IMX6SL_CLK_IPG] = imx_clk_divider("ipg", "ahb", base + 0x14, 8, 2);
--
2.7.4
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization
2018-05-17 5:00 [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization Anson Huang
2018-05-17 5:00 ` [PATCH] clk: imx6sl: correct ocram_podf clock type Anson Huang
@ 2018-05-20 13:01 ` Shawn Guo
2018-06-01 19:10 ` Stephen Boyd
2 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2018-05-20 13:01 UTC (permalink / raw)
To: Anson Huang
Cc: kernel, fabio.estevam, mturquette, sboyd, Linux-imx,
linux-arm-kernel, linux-clk, linux-kernel
On Thu, May 17, 2018 at 01:00:47PM +0800, Anson Huang wrote:
> Disable those unnecessary clocks during kernel boot up to save power,
> those modules clock should be managed by modules driver in runtime.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: imx6sl: correct ocram_podf clock type
2018-05-17 5:00 ` [PATCH] clk: imx6sl: correct ocram_podf clock type Anson Huang
@ 2018-05-20 13:02 ` Shawn Guo
2018-06-01 19:10 ` Stephen Boyd
1 sibling, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2018-05-20 13:02 UTC (permalink / raw)
To: Anson Huang
Cc: kernel, fabio.estevam, mturquette, sboyd, Linux-imx,
linux-arm-kernel, linux-clk, linux-kernel
On Thu, May 17, 2018 at 01:00:48PM +0800, Anson Huang wrote:
> IMX6SL_CLK_OCRAM_PODF is a busy divider, its name in
> CCM_CDHIPR register of Reference Manual CCM chapter
> is axi_podf_busy, correct its clock type.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization
2018-05-17 5:00 [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization Anson Huang
2018-05-17 5:00 ` [PATCH] clk: imx6sl: correct ocram_podf clock type Anson Huang
2018-05-20 13:01 ` [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization Shawn Guo
@ 2018-06-01 19:10 ` Stephen Boyd
2 siblings, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2018-06-01 19:10 UTC (permalink / raw)
To: Anson Huang, fabio.estevam, kernel, mturquette, shawnguo
Cc: Linux-imx, linux-arm-kernel, linux-clk, linux-kernel
Quoting Anson Huang (2018-05-16 22:00:47)
> Disable those unnecessary clocks during kernel boot up to save power,
> those modules clock should be managed by modules driver in runtime.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: imx6sl: correct ocram_podf clock type
2018-05-17 5:00 ` [PATCH] clk: imx6sl: correct ocram_podf clock type Anson Huang
2018-05-20 13:02 ` Shawn Guo
@ 2018-06-01 19:10 ` Stephen Boyd
1 sibling, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2018-06-01 19:10 UTC (permalink / raw)
To: Anson Huang, fabio.estevam, kernel, mturquette, shawnguo
Cc: Linux-imx, linux-arm-kernel, linux-clk, linux-kernel
Quoting Anson Huang (2018-05-16 22:00:48)
> IMX6SL_CLK_OCRAM_PODF is a busy divider, its name in
> CCM_CDHIPR register of Reference Manual CCM chapter
> is axi_podf_busy, correct its clock type.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-06-01 19:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-17 5:00 [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization Anson Huang
2018-05-17 5:00 ` [PATCH] clk: imx6sl: correct ocram_podf clock type Anson Huang
2018-05-20 13:02 ` Shawn Guo
2018-06-01 19:10 ` Stephen Boyd
2018-05-20 13:01 ` [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization Shawn Guo
2018-06-01 19:10 ` 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).