Skip to content

Commit dd503f6

Browse files
Victoria Milhoanherbertx
authored andcommitted
ARM: clk-imx6q: Add CAAM clock support
Add CAAM clock support to the i.MX6 clocking infrastructure. Signed-off-by: Victoria Milhoan <[email protected]> Tested-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent ff1a15d commit dd503f6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

drivers/clk/imx/clk-imx6q.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
381381
clk[IMX6QDL_CLK_ASRC] = imx_clk_gate2_shared("asrc", "asrc_podf", base + 0x68, 6, &share_count_asrc);
382382
clk[IMX6QDL_CLK_ASRC_IPG] = imx_clk_gate2_shared("asrc_ipg", "ahb", base + 0x68, 6, &share_count_asrc);
383383
clk[IMX6QDL_CLK_ASRC_MEM] = imx_clk_gate2_shared("asrc_mem", "ahb", base + 0x68, 6, &share_count_asrc);
384+
clk[IMX6QDL_CLK_CAAM_MEM] = imx_clk_gate2("caam_mem", "ahb", base + 0x68, 8);
385+
clk[IMX6QDL_CLK_CAAM_ACLK] = imx_clk_gate2("caam_aclk", "ahb", base + 0x68, 10);
386+
clk[IMX6QDL_CLK_CAAM_IPG] = imx_clk_gate2("caam_ipg", "ipg", base + 0x68, 12);
384387
clk[IMX6QDL_CLK_CAN1_IPG] = imx_clk_gate2("can1_ipg", "ipg", base + 0x68, 14);
385388
clk[IMX6QDL_CLK_CAN1_SERIAL] = imx_clk_gate2("can1_serial", "can_root", base + 0x68, 16);
386389
clk[IMX6QDL_CLK_CAN2_IPG] = imx_clk_gate2("can2_ipg", "ipg", base + 0x68, 18);

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@
251251
#define IMX6QDL_CLK_VIDEO_27M 238
252252
#define IMX6QDL_CLK_MIPI_CORE_CFG 239
253253
#define IMX6QDL_CLK_MIPI_IPG 240
254-
#define IMX6QDL_CLK_END 241
254+
#define IMX6QDL_CLK_CAAM_MEM 241
255+
#define IMX6QDL_CLK_CAAM_ACLK 242
256+
#define IMX6QDL_CLK_CAAM_IPG 243
257+
#define IMX6QDL_CLK_END 244
255258

256259
#endif /* __DT_BINDINGS_CLOCK_IMX6QDL_H */

0 commit comments

Comments
 (0)