aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/samsung/clk-exynos7.c
diff options
context:
space:
mode:
authorAlim Akhtar <alim.akhtar@samsung.com>2015-09-10 04:44:32 -0400
committerSylwester Nawrocki <s.nawrocki@samsung.com>2015-09-15 05:16:07 -0400
commit33b8b739ef5ec43b5119ab011c0a885fc565ad19 (patch)
tree8cf4676eea5fcc291c9e153b5a4cf3c99474b9cc /drivers/clk/samsung/clk-exynos7.c
parent3f54fb1e09da301173bc44845f93a1be7fe33d8f (diff)
clk: samsung: exynos7: Correct CMU_PERIC1 clocks names
This patch renames CMU_PERIC1 clocks names to match with user manual. And also adds missing gate clock for aclk_peric1_66. 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>
Diffstat (limited to 'drivers/clk/samsung/clk-exynos7.c')
-rw-r--r--drivers/clk/samsung/clk-exynos7.c38
1 files changed, 20 insertions, 18 deletions
diff --git a/drivers/clk/samsung/clk-exynos7.c b/drivers/clk/samsung/clk-exynos7.c
index 8dfd820ccc8f..0b5acab91935 100644
--- a/drivers/clk/samsung/clk-exynos7.c
+++ b/drivers/clk/samsung/clk-exynos7.c
@@ -341,6 +341,8 @@ static struct samsung_div_clock top0_div_clks[] __initdata = {
341static struct samsung_gate_clock top0_gate_clks[] __initdata = { 341static struct samsung_gate_clock top0_gate_clks[] __initdata = {
342 GATE(CLK_ACLK_PERIC0_66, "aclk_peric0_66", "dout_aclk_peric0_66", 342 GATE(CLK_ACLK_PERIC0_66, "aclk_peric0_66", "dout_aclk_peric0_66",
343 ENABLE_ACLK_TOP03, 20, CLK_SET_RATE_PARENT, 0), 343 ENABLE_ACLK_TOP03, 20, CLK_SET_RATE_PARENT, 0),
344 GATE(CLK_ACLK_PERIC1_66, "aclk_peric1_66", "dout_aclk_peric1_66",
345 ENABLE_ACLK_TOP03, 12, CLK_SET_RATE_PARENT, 0),
344 346
345 GATE(CLK_SCLK_SPDIF, "sclk_spdif", "dout_sclk_spdif", 347 GATE(CLK_SCLK_SPDIF, "sclk_spdif", "dout_sclk_spdif",
346 ENABLE_SCLK_TOP0_PERIC0, 4, CLK_SET_RATE_PARENT, 0), 348 ENABLE_SCLK_TOP0_PERIC0, 4, CLK_SET_RATE_PARENT, 0),
@@ -663,15 +665,15 @@ CLK_OF_DECLARE(exynos7_clk_peric0, "samsung,exynos7-clock-peric0",
663 exynos7_clk_peric0_init); 665 exynos7_clk_peric0_init);
664 666
665/* List of parent clocks for Muxes in CMU_PERIC1 */ 667/* List of parent clocks for Muxes in CMU_PERIC1 */
666PNAME(mout_aclk_peric1_66_p) = { "fin_pll", "dout_aclk_peric1_66" }; 668PNAME(mout_aclk_peric1_66_user_p) = { "fin_pll", "aclk_peric1_66" };
667PNAME(mout_sclk_uart1_p) = { "fin_pll", "sclk_uart1" }; 669PNAME(mout_sclk_uart1_user_p) = { "fin_pll", "sclk_uart1" };
668PNAME(mout_sclk_uart2_p) = { "fin_pll", "sclk_uart2" }; 670PNAME(mout_sclk_uart2_user_p) = { "fin_pll", "sclk_uart2" };
669PNAME(mout_sclk_uart3_p) = { "fin_pll", "sclk_uart3" }; 671PNAME(mout_sclk_uart3_user_p) = { "fin_pll", "sclk_uart3" };
670PNAME(mout_sclk_spi0_p) = { "fin_pll", "sclk_spi0" }; 672PNAME(mout_sclk_spi0_user_p) = { "fin_pll", "sclk_spi0" };
671PNAME(mout_sclk_spi1_p) = { "fin_pll", "sclk_spi1" }; 673PNAME(mout_sclk_spi1_user_p) = { "fin_pll", "sclk_spi1" };
672PNAME(mout_sclk_spi2_p) = { "fin_pll", "sclk_spi2" }; 674PNAME(mout_sclk_spi2_user_p) = { "fin_pll", "sclk_spi2" };
673PNAME(mout_sclk_spi3_p) = { "fin_pll", "sclk_spi3" }; 675PNAME(mout_sclk_spi3_user_p) = { "fin_pll", "sclk_spi3" };
674PNAME(mout_sclk_spi4_p) = { "fin_pll", "sclk_spi4" }; 676PNAME(mout_sclk_spi4_user_p) = { "fin_pll", "sclk_spi4" };
675 677
676static unsigned long peric1_clk_regs[] __initdata = { 678static unsigned long peric1_clk_regs[] __initdata = {
677 MUX_SEL_PERIC10, 679 MUX_SEL_PERIC10,
@@ -682,24 +684,24 @@ static unsigned long peric1_clk_regs[] __initdata = {
682}; 684};
683 685
684static struct samsung_mux_clock peric1_mux_clks[] __initdata = { 686static struct samsung_mux_clock peric1_mux_clks[] __initdata = {
685 MUX(0, "mout_aclk_peric1_66_user", mout_aclk_peric1_66_p, 687 MUX(0, "mout_aclk_peric1_66_user", mout_aclk_peric1_66_user_p,
686 MUX_SEL_PERIC10, 0, 1), 688 MUX_SEL_PERIC10, 0, 1),
687 689
688 MUX_F(0, "mout_sclk_spi0_user", mout_sclk_spi0_p, 690 MUX_F(0, "mout_sclk_spi0_user", mout_sclk_spi0_user_p,
689 MUX_SEL_PERIC11, 0, 1, CLK_SET_RATE_PARENT, 0), 691 MUX_SEL_PERIC11, 0, 1, CLK_SET_RATE_PARENT, 0),
690 MUX_F(0, "mout_sclk_spi1_user", mout_sclk_spi1_p, 692 MUX_F(0, "mout_sclk_spi1_user", mout_sclk_spi1_user_p,
691 MUX_SEL_PERIC11, 4, 1, CLK_SET_RATE_PARENT, 0), 693 MUX_SEL_PERIC11, 4, 1, CLK_SET_RATE_PARENT, 0),
692 MUX_F(0, "mout_sclk_spi2_user", mout_sclk_spi2_p, 694 MUX_F(0, "mout_sclk_spi2_user", mout_sclk_spi2_user_p,
693 MUX_SEL_PERIC11, 8, 1, CLK_SET_RATE_PARENT, 0), 695 MUX_SEL_PERIC11, 8, 1, CLK_SET_RATE_PARENT, 0),
694 MUX_F(0, "mout_sclk_spi3_user", mout_sclk_spi3_p, 696 MUX_F(0, "mout_sclk_spi3_user", mout_sclk_spi3_user_p,
695 MUX_SEL_PERIC11, 12, 1, CLK_SET_RATE_PARENT, 0), 697 MUX_SEL_PERIC11, 12, 1, CLK_SET_RATE_PARENT, 0),
696 MUX_F(0, "mout_sclk_spi4_user", mout_sclk_spi4_p, 698 MUX_F(0, "mout_sclk_spi4_user", mout_sclk_spi4_user_p,
697 MUX_SEL_PERIC11, 16, 1, CLK_SET_RATE_PARENT, 0), 699 MUX_SEL_PERIC11, 16, 1, CLK_SET_RATE_PARENT, 0),
698 MUX(0, "mout_sclk_uart1_user", mout_sclk_uart1_p, 700 MUX(0, "mout_sclk_uart1_user", mout_sclk_uart1_user_p,
699 MUX_SEL_PERIC11, 20, 1), 701 MUX_SEL_PERIC11, 20, 1),
700 MUX(0, "mout_sclk_uart2_user", mout_sclk_uart2_p, 702 MUX(0, "mout_sclk_uart2_user", mout_sclk_uart2_user_p,
701 MUX_SEL_PERIC11, 24, 1), 703 MUX_SEL_PERIC11, 24, 1),
702 MUX(0, "mout_sclk_uart3_user", mout_sclk_uart3_p, 704 MUX(0, "mout_sclk_uart3_user", mout_sclk_uart3_user_p,
703 MUX_SEL_PERIC11, 28, 1), 705 MUX_SEL_PERIC11, 28, 1),
704}; 706};
705 707