]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clk: samsung: exynos5250/5420: Add gate clock for SSS module
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Mon, 17 Feb 2014 09:44:31 +0000 (15:14 +0530)
committerTomasz Figa <t.figa@samsung.com>
Wed, 14 May 2014 17:23:26 +0000 (19:23 +0200)
This patch adds gating clock for SSS(Security SubSystem)
module on Exynos5250/5420.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
[t.figa: Fixed sort order and group name.]
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
drivers/clk/samsung/clk-exynos5250.c
drivers/clk/samsung/clk-exynos5420.c
include/dt-bindings/clock/exynos5250.h

index e549e862524a3544db0a2bb4b8170d548e6bb363..d1d53ca45e20bd9614f627a3c1aab04ecc10e66a 100644 (file)
@@ -428,6 +428,7 @@ static struct samsung_gate_clock exynos5250_gate_clks[] __initdata = {
         * CMU_ACP
         */
        GATE(CLK_MDMA0, "mdma0", "div_aclk266", GATE_IP_ACP, 1, 0, 0),
+       GATE(CLK_SSS, "sss", "div_aclk266", GATE_IP_ACP, 2, 0, 0),
        GATE(CLK_G2D, "g2d", "div_aclk200", GATE_IP_ACP, 3, 0, 0),
        GATE(CLK_SMMU_MDMA0, "smmu_mdma0", "div_aclk266", GATE_IP_ACP, 5, 0, 0),
 
index c3e0894d02796836d9deb89f2d8dd337802d6307..a8704540a21442de32a8ba3eb30dc08741de020c 100644 (file)
@@ -27,6 +27,7 @@
 #define DIV_CPU1               0x504
 #define GATE_BUS_CPU           0x700
 #define GATE_SCLK_CPU          0x800
+#define GATE_IP_G2D            0x8800
 #define CPLL_LOCK              0x10020
 #define DPLL_LOCK              0x10030
 #define EPLL_LOCK              0x10040
@@ -515,6 +516,9 @@ static struct samsung_div_clock exynos5420_div_clks[] __initdata = {
 };
 
 static struct samsung_gate_clock exynos5420_gate_clks[] __initdata = {
+       /* G2D */
+       GATE(CLK_SSS, "sss", "aclk266_g2d", GATE_IP_G2D, 2, 0, 0),
+
        /* TODO: Re-verify the CG bits for all the gate clocks */
        GATE_A(CLK_MCT, "pclk_st", "aclk66_psgen", GATE_BUS_PERIS1, 2, 0, 0,
                "mct"),
index 922f2dca9bf024d8ffcd8fbc37360c74dd846983..f9b452bb3019e6fc09bcd0514637be3b601e671f 100644 (file)
 #define CLK_G2D                        345
 #define CLK_MDMA0              346
 #define CLK_SMMU_MDMA0         347
+#define CLK_SSS                        348
 
 /* mux clocks */
 #define CLK_MOUT_HDMI          1024