clk: imx: vf610: Add CRC clock
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 17 Aug 2020 15:12:54 +0000 (17:12 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 Aug 2020 02:08:35 +0000 (10:08 +0800)
Add the clock for CRC block allowing it to be enabled by consumers.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-vf610.c
include/dt-bindings/clock/vf610-clock.h

index 8773f4c..9e11f1c 100644 (file)
@@ -329,6 +329,7 @@ static void __init vf610_clocks_init(struct device_node *ccm_node)
        clk[VF610_CLK_DSPI2] = imx_clk_gate2("dspi2", "ipg_bus", CCM_CCGR6, CCM_CCGRx_CGn(12));
        clk[VF610_CLK_DSPI3] = imx_clk_gate2("dspi3", "ipg_bus", CCM_CCGR6, CCM_CCGRx_CGn(13));
 
+       clk[VF610_CLK_CRC] = imx_clk_gate2("crc", "ipg_bus", CCM_CCGR1, CCM_CCGRx_CGn(3));
        clk[VF610_CLK_WDT] = imx_clk_gate2("wdt", "ipg_bus", CCM_CCGR1, CCM_CCGRx_CGn(14));
 
        clk[VF610_CLK_ESDHC0_SEL] = imx_clk_mux("esdhc0_sel", CCM_CSCMR1, 16, 2, esdhc_sels, 4);
index 0f2d60e..373644e 100644 (file)
 #define VF610_CLK_TCON0                        187
 #define VF610_CLK_TCON1                        188
 #define VF610_CLK_CAAM                 189
-#define VF610_CLK_END                  190
+#define VF610_CLK_CRC                  190
+#define VF610_CLK_END                  191
 
 #endif /* __DT_BINDINGS_CLOCK_VF610_H */