Skip to content

Commit 4aba275

Browse files
gibssonShawn Guo
authored andcommitted
clk: imx: add ckil clock for i.MX7
Add the necessary clock to use the ckil on i.MX7. Inspired from the following patch: boundarydevices/linux@b80e8271 Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 4cfe6ae commit 4aba275

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/clk/imx/clk-imx7d.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static const char *clko1_sel[] = { "osc", "pll_sys_main_clk",
342342

343343
static const char *clko2_sel[] = { "osc", "pll_sys_main_240m_clk",
344344
"pll_sys_pfd0_392m_clk", "pll_sys_pfd1_166m_clk", "pll_sys_pfd4_clk",
345-
"pll_audio_main_clk", "pll_video_main_clk", "osc_32k_clk", };
345+
"pll_audio_main_clk", "pll_video_main_clk", "ckil", };
346346

347347
static const char *lvds1_sel[] = { "pll_arm_main_clk",
348348
"pll_sys_main_clk", "pll_sys_pfd0_392m_clk", "pll_sys_pfd1_332m_clk",
@@ -382,6 +382,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node)
382382

383383
clks[IMX7D_CLK_DUMMY] = imx_clk_fixed("dummy", 0);
384384
clks[IMX7D_OSC_24M_CLK] = of_clk_get_by_name(ccm_node, "osc");
385+
clks[IMX7D_CKIL] = of_clk_get_by_name(ccm_node, "ckil");
385386

386387
np = of_find_compatible_node(NULL, NULL, "fsl,imx7d-anatop");
387388
base = of_iomap(np, 0);

include/dt-bindings/clock/imx7d-clock.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,5 +448,6 @@
448448
#define IMX7D_PLL_DRAM_TEST_DIV 435
449449
#define IMX7D_ADC_ROOT_CLK 436
450450
#define IMX7D_CLK_ARM 437
451-
#define IMX7D_CLK_END 438
451+
#define IMX7D_CKIL 438
452+
#define IMX7D_CLK_END 439
452453
#endif /* __DT_BINDINGS_CLOCK_IMX7D_H */

0 commit comments

Comments
 (0)