]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ARM: imx: clk-vf610: Add clock for SNVS
authorSanchayan Maity <maitysanchayan@gmail.com>
Wed, 7 Jan 2015 07:09:29 +0000 (12:39 +0530)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 13 Jan 2015 11:16:26 +0000 (19:16 +0800)
Add support for clock gating of the SNVS peripheral.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/clk-vf610.c
include/dt-bindings/clock/vf610-clock.h

index af338d23e6e7b7046ef3f16935db7e6b580ab318..61876ed6e11e975c4e1be56f1f56185bfc8d51db 100644 (file)
@@ -382,6 +382,8 @@ static void __init vf610_clocks_init(struct device_node *ccm_node)
        clk[VF610_CLK_DMAMUX2] = imx_clk_gate2("dmamux2", "platform_bus", CCM_CCGR6, CCM_CCGRx_CGn(1));
        clk[VF610_CLK_DMAMUX3] = imx_clk_gate2("dmamux3", "platform_bus", CCM_CCGR6, CCM_CCGRx_CGn(2));
 
+       clk[VF610_CLK_SNVS] = imx_clk_gate2("snvs-rtc", "ipg_bus", CCM_CCGR6, CCM_CCGRx_CGn(7));
+
        imx_check_clocks(clk, ARRAY_SIZE(clk));
 
        clk_set_parent(clk[VF610_CLK_QSPI0_SEL], clk[VF610_CLK_PLL1_PFD4]);
index 801c0ac50c47f3ba80df69b9db99fda95d0db5e2..979d24a6799f052df426ea3400413c71aa0efbd0 100644 (file)
 #define VF610_PLL5_BYPASS              179
 #define VF610_PLL6_BYPASS              180
 #define VF610_PLL7_BYPASS              181
-#define VF610_CLK_END                  182
+#define VF610_CLK_SNVS                 182
+#define VF610_CLK_END                  183
 
 #endif /* __DT_BINDINGS_CLOCK_VF610_H */