clk: samsung: exynos7: Correct CMU_FSYS0 clocks names
authorAlim Akhtar <alim.akhtar@samsung.com>
Thu, 10 Sep 2015 08:44:34 +0000 (14:14 +0530)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 15 Sep 2015 09:16:09 +0000 (11:16 +0200)
This patch renames CMU_FSYS0 clocks names to match with user manual.
And also adds missing gate clock for aclk_fsys0_200.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/clk/samsung/clk-exynos7.c
include/dt-bindings/clock/exynos7-clk.h

index b5bc7edc8adc8d75c7038baffcb2c4f0988dd00a..ad5aba47dd1962dd9911ba8f5c50be4d62ad3f41 100644 (file)
@@ -512,6 +512,9 @@ static struct samsung_gate_clock top1_gate_clks[] __initdata = {
                ENABLE_SCLK_TOP1_FSYS11, 0, CLK_SET_RATE_PARENT, 0),
        GATE(CLK_SCLK_MMC0, "sclk_mmc0", "dout_sclk_mmc0",
                ENABLE_SCLK_TOP1_FSYS11, 12, CLK_SET_RATE_PARENT, 0),
+
+       GATE(CLK_ACLK_FSYS0_200, "aclk_fsys0_200", "dout_aclk_fsys0_200",
+               ENABLE_ACLK_TOP13, 28, CLK_SET_RATE_PARENT, 0),
 };
 
 static struct samsung_fixed_factor_clock top1_fixed_factor_clks[] __initdata = {
@@ -849,13 +852,13 @@ CLK_OF_DECLARE(exynos7_clk_peris, "samsung,exynos7-clock-peris",
 /*
  * List of parent clocks for Muxes in CMU_FSYS0
  */
-PNAME(mout_aclk_fsys0_200_p)   = { "fin_pll", "dout_aclk_fsys0_200" };
-PNAME(mout_sclk_mmc2_p)                = { "fin_pll", "sclk_mmc2" };
+PNAME(mout_aclk_fsys0_200_user_p)      = { "fin_pll", "aclk_fsys0_200" };
+PNAME(mout_sclk_mmc2_user_p)           = { "fin_pll", "sclk_mmc2" };
 
-PNAME(mout_sclk_usbdrd300_p)   = { "fin_pll", "sclk_usbdrd300" };
-PNAME(mout_phyclk_usbdrd300_udrd30_phyclk_p)   = { "fin_pll",
+PNAME(mout_sclk_usbdrd300_user_p)      = { "fin_pll", "sclk_usbdrd300" };
+PNAME(mout_phyclk_usbdrd300_udrd30_phyclk_user_p)      = { "fin_pll",
                                "phyclk_usbdrd300_udrd30_phyclock" };
-PNAME(mout_phyclk_usbdrd300_udrd30_pipe_pclk_p)        = { "fin_pll",
+PNAME(mout_phyclk_usbdrd300_udrd30_pipe_pclk_user_p)   = { "fin_pll",
                                "phyclk_usbdrd300_udrd30_pipe_pclk" };
 
 /* fixed rate clocks used in the FSYS0 block */
@@ -878,18 +881,19 @@ static unsigned long fsys0_clk_regs[] __initdata = {
 };
 
 static struct samsung_mux_clock fsys0_mux_clks[] __initdata = {
-       MUX(0, "mout_aclk_fsys0_200_user", mout_aclk_fsys0_200_p,
+       MUX(0, "mout_aclk_fsys0_200_user", mout_aclk_fsys0_200_user_p,
                MUX_SEL_FSYS00, 24, 1),
 
-       MUX(0, "mout_sclk_mmc2_user", mout_sclk_mmc2_p, MUX_SEL_FSYS01, 24, 1),
-       MUX(0, "mout_sclk_usbdrd300_user", mout_sclk_usbdrd300_p,
+       MUX(0, "mout_sclk_mmc2_user", mout_sclk_mmc2_user_p,
+               MUX_SEL_FSYS01, 24, 1),
+       MUX(0, "mout_sclk_usbdrd300_user", mout_sclk_usbdrd300_user_p,
                MUX_SEL_FSYS01, 28, 1),
 
        MUX(0, "mout_phyclk_usbdrd300_udrd30_pipe_pclk_user",
-               mout_phyclk_usbdrd300_udrd30_pipe_pclk_p,
+               mout_phyclk_usbdrd300_udrd30_pipe_pclk_user_p,
                MUX_SEL_FSYS02, 24, 1),
        MUX(0, "mout_phyclk_usbdrd300_udrd30_phyclk_user",
-               mout_phyclk_usbdrd300_udrd30_phyclk_p,
+               mout_phyclk_usbdrd300_udrd30_phyclk_user_p,
                MUX_SEL_FSYS02, 28, 1),
 };
 
index 287665451a89e34436abc37ee129b06c28bbb9f8..667faed474ce1e4596115a9560cd97b0828168d0 100644 (file)
@@ -62,7 +62,8 @@
 #define CLK_SCLK_MMC2                  6
 #define CLK_SCLK_MMC1                  7
 #define CLK_SCLK_MMC0                  8
-#define TOP1_NR_CLK                    9
+#define CLK_ACLK_FSYS0_200             9
+#define TOP1_NR_CLK                    10
 
 /* CCORE */
 #define PCLK_RTC                       1