ARM: i.MX5: Add PATA and SRTC clocks
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 4 Apr 2013 09:25:08 +0000 (11:25 +0200)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 12 Apr 2013 11:28:15 +0000 (19:28 +0800)
This adds the clock gates and the binding documentation
for PATA and SRTC.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Documentation/devicetree/bindings/clock/imx5-clock.txt
arch/arm/mach-imx/clk-imx51-imx53.c

index 838ab8801e9387ebdf65c4de4fcbfcfc832b89e8..84cae1f187cac1f3f3fc2e79443aef8b9648fb00 100644 (file)
@@ -183,6 +183,8 @@ clocks and IDs.
        cko2_sel                168
        cko2_podf               169
        cko2                    170
+       srtc_gate               171
+       pata_gate               172
 
 Examples (for mx53):
 
index a163e0e365dc24cc645f9558aabcd78271e43bde..efbccc0dcada015c28ed5f1afb4189c2a42aa885 100644 (file)
@@ -110,6 +110,7 @@ enum imx5_clks {
        owire_gate, gpu3d_s, gpu2d_s, gpu3d_gate, gpu2d_gate, garb_gate,
        cko1_sel, cko1_podf, cko1,
        cko2_sel, cko2_podf, cko2,
+       srtc_gate, pata_gate,
        clk_max
 };
 
@@ -266,6 +267,8 @@ static void __init mx5_clocks_common_init(unsigned long rate_ckil,
        clk[epit2_ipg_gate] = imx_clk_gate2("epit2_ipg_gate", "ipg", MXC_CCM_CCGR2, 6);
        clk[epit2_hf_gate] = imx_clk_gate2("epit2_hf_gate", "per_root", MXC_CCM_CCGR2, 8);
        clk[owire_gate] = imx_clk_gate2("owire_gate", "per_root", MXC_CCM_CCGR2, 22);
+       clk[srtc_gate] = imx_clk_gate2("srtc_gate", "per_root", MXC_CCM_CCGR4, 28);
+       clk[pata_gate] = imx_clk_gate2("pata_gate", "ipg", MXC_CCM_CCGR4, 0);
 
        for (i = 0; i < ARRAY_SIZE(clk); i++)
                if (IS_ERR(clk[i]))