]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: i.MX5x: Add SAHARA clock for i.MX5x CPUs
authorAlexander Shiyan <shc_work@mail.ru>
Fri, 8 Nov 2013 09:00:22 +0000 (13:00 +0400)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 9 Dec 2013 05:18:30 +0000 (13:18 +0800)
Patch adds missing Security Accelerator (SAHARA) clock for i.MX5x CPUs.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
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 4c029a8739d3abae79c08ea1e100fc9b91efe642..3716b36c14402f7d5cdb44794df92d6b38d2a285 100644 (file)
@@ -198,6 +198,7 @@ clocks and IDs.
        spdif1_gate             184
        spdif_ipg_gate          185
        ocram                   186
+       sahara_ipg_gate         187
 
 Examples (for mx53):
 
index af8fd0861459dcad2ac00591bc6974a58fd69f88..3d91172a9554fe8fa7907b9d516680d45a87ae70 100644 (file)
@@ -122,7 +122,7 @@ enum imx5_clks {
        srtc_gate, pata_gate, sata_gate, spdif_xtal_sel, spdif0_sel,
        spdif1_sel, spdif0_pred, spdif0_podf, spdif1_pred, spdif1_podf,
        spdif0_com_s, spdif1_com_sel, spdif0_gate, spdif1_gate, spdif_ipg_gate,
-       ocram, clk_max
+       ocram, sahara_ipg_gate, clk_max
 };
 
 static struct clk *clk[clk_max];
@@ -285,6 +285,7 @@ static void __init mx5_clocks_common_init(unsigned long rate_ckil,
                                spdif0_com_sel, ARRAY_SIZE(spdif0_com_sel), CLK_SET_RATE_PARENT);
        clk[spdif0_gate] = imx_clk_gate2("spdif0_gate", "spdif0_com_sel", MXC_CCM_CCGR5, 26);
        clk[spdif_ipg_gate] = imx_clk_gate2("spdif_ipg_gate", "ipg", MXC_CCM_CCGR5, 30);
+       clk[sahara_ipg_gate] = imx_clk_gate2("sahara_ipg_gate", "ipg", MXC_CCM_CCGR4, 14);
 
        for (i = 0; i < ARRAY_SIZE(clk); i++)
                if (IS_ERR(clk[i]))