diff options
author | Shiraz Hashim <shiraz.hashim@st.com> | 2012-11-10 01:43:41 -0500 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-11-21 14:45:30 -0500 |
commit | e0b9c2109b4686c343514823469013150d28b4c0 (patch) | |
tree | 1988734de4752680ecc57fc97a7be8c757963cd3 /drivers/clk | |
parent | df2449aba4749fb8d04c3c1bbfad5cf8863c323b (diff) |
CLK: SPEAr13xx: Fix mux clock names
This patch updates mux clock names of multiple clocks. It updates _clk with
_mclk to make it more readable.
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/spear/spear1310_clock.c | 4 | ||||
-rw-r--r-- | drivers/clk/spear/spear1340_clock.c | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/drivers/clk/spear/spear1310_clock.c b/drivers/clk/spear/spear1310_clock.c index f13b1d23b4a9..2f1cb7165bc7 100644 --- a/drivers/clk/spear/spear1310_clock.c +++ b/drivers/clk/spear/spear1310_clock.c | |||
@@ -633,7 +633,7 @@ void __init spear1310_clk_init(void) | |||
633 | ARRAY_SIZE(clcd_pixel_parents), 0, | 633 | ARRAY_SIZE(clcd_pixel_parents), 0, |
634 | SPEAR1310_PERIP_CLK_CFG, SPEAR1310_CLCD_CLK_SHIFT, | 634 | SPEAR1310_PERIP_CLK_CFG, SPEAR1310_CLCD_CLK_SHIFT, |
635 | SPEAR1310_CLCD_CLK_MASK, 0, &_lock); | 635 | SPEAR1310_CLCD_CLK_MASK, 0, &_lock); |
636 | clk_register_clkdev(clk, "clcd_pixel_clk", NULL); | 636 | clk_register_clkdev(clk, "clcd_pixel_mclk", NULL); |
637 | 637 | ||
638 | clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0, | 638 | clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0, |
639 | SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_CLCD_CLK_ENB, 0, | 639 | SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_CLCD_CLK_ENB, 0, |
@@ -645,7 +645,7 @@ void __init spear1310_clk_init(void) | |||
645 | ARRAY_SIZE(i2s_src_parents), 0, SPEAR1310_I2S_CLK_CFG, | 645 | ARRAY_SIZE(i2s_src_parents), 0, SPEAR1310_I2S_CLK_CFG, |
646 | SPEAR1310_I2S_SRC_CLK_SHIFT, SPEAR1310_I2S_SRC_CLK_MASK, | 646 | SPEAR1310_I2S_SRC_CLK_SHIFT, SPEAR1310_I2S_SRC_CLK_MASK, |
647 | 0, &_lock); | 647 | 0, &_lock); |
648 | clk_register_clkdev(clk, "i2s_src_clk", NULL); | 648 | clk_register_clkdev(clk, "i2s_src_mclk", NULL); |
649 | 649 | ||
650 | clk = clk_register_aux("i2s_prs1_clk", NULL, "i2s_src_mclk", 0, | 650 | clk = clk_register_aux("i2s_prs1_clk", NULL, "i2s_src_mclk", 0, |
651 | SPEAR1310_I2S_CLK_CFG, &i2s_prs1_masks, i2s_prs1_rtbl, | 651 | SPEAR1310_I2S_CLK_CFG, &i2s_prs1_masks, i2s_prs1_rtbl, |
diff --git a/drivers/clk/spear/spear1340_clock.c b/drivers/clk/spear/spear1340_clock.c index dae2ba60a8f9..4733d996599e 100644 --- a/drivers/clk/spear/spear1340_clock.c +++ b/drivers/clk/spear/spear1340_clock.c | |||
@@ -521,7 +521,7 @@ void __init spear1340_clk_init(void) | |||
521 | ARRAY_SIZE(sys_parents), 0, SPEAR1340_SYS_CLK_CTRL, | 521 | ARRAY_SIZE(sys_parents), 0, SPEAR1340_SYS_CLK_CTRL, |
522 | SPEAR1340_SCLK_SRC_SEL_SHIFT, | 522 | SPEAR1340_SCLK_SRC_SEL_SHIFT, |
523 | SPEAR1340_SCLK_SRC_SEL_MASK, 0, &_lock); | 523 | SPEAR1340_SCLK_SRC_SEL_MASK, 0, &_lock); |
524 | clk_register_clkdev(clk, "sys_clk", NULL); | 524 | clk_register_clkdev(clk, "sys_mclk", NULL); |
525 | 525 | ||
526 | clk = clk_register_fixed_factor(NULL, "cpu_clk", "sys_mclk", 0, 1, | 526 | clk = clk_register_fixed_factor(NULL, "cpu_clk", "sys_mclk", 0, 1, |
527 | 2); | 527 | 2); |
@@ -697,7 +697,7 @@ void __init spear1340_clk_init(void) | |||
697 | ARRAY_SIZE(clcd_pixel_parents), 0, | 697 | ARRAY_SIZE(clcd_pixel_parents), 0, |
698 | SPEAR1340_PERIP_CLK_CFG, SPEAR1340_CLCD_CLK_SHIFT, | 698 | SPEAR1340_PERIP_CLK_CFG, SPEAR1340_CLCD_CLK_SHIFT, |
699 | SPEAR1340_CLCD_CLK_MASK, 0, &_lock); | 699 | SPEAR1340_CLCD_CLK_MASK, 0, &_lock); |
700 | clk_register_clkdev(clk, "clcd_pixel_clk", NULL); | 700 | clk_register_clkdev(clk, "clcd_pixel_mclk", NULL); |
701 | 701 | ||
702 | clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0, | 702 | clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0, |
703 | SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_CLCD_CLK_ENB, 0, | 703 | SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_CLCD_CLK_ENB, 0, |
@@ -709,7 +709,7 @@ void __init spear1340_clk_init(void) | |||
709 | ARRAY_SIZE(i2s_src_parents), 0, SPEAR1340_I2S_CLK_CFG, | 709 | ARRAY_SIZE(i2s_src_parents), 0, SPEAR1340_I2S_CLK_CFG, |
710 | SPEAR1340_I2S_SRC_CLK_SHIFT, SPEAR1340_I2S_SRC_CLK_MASK, | 710 | SPEAR1340_I2S_SRC_CLK_SHIFT, SPEAR1340_I2S_SRC_CLK_MASK, |
711 | 0, &_lock); | 711 | 0, &_lock); |
712 | clk_register_clkdev(clk, "i2s_src_clk", NULL); | 712 | clk_register_clkdev(clk, "i2s_src_mclk", NULL); |
713 | 713 | ||
714 | clk = clk_register_aux("i2s_prs1_clk", NULL, "i2s_src_mclk", 0, | 714 | clk = clk_register_aux("i2s_prs1_clk", NULL, "i2s_src_mclk", 0, |
715 | SPEAR1340_I2S_CLK_CFG, &i2s_prs1_masks, i2s_prs1_rtbl, | 715 | SPEAR1340_I2S_CLK_CFG, &i2s_prs1_masks, i2s_prs1_rtbl, |
@@ -720,7 +720,7 @@ void __init spear1340_clk_init(void) | |||
720 | ARRAY_SIZE(i2s_ref_parents), 0, SPEAR1340_I2S_CLK_CFG, | 720 | ARRAY_SIZE(i2s_ref_parents), 0, SPEAR1340_I2S_CLK_CFG, |
721 | SPEAR1340_I2S_REF_SHIFT, SPEAR1340_I2S_REF_SEL_MASK, 0, | 721 | SPEAR1340_I2S_REF_SHIFT, SPEAR1340_I2S_REF_SEL_MASK, 0, |
722 | &_lock); | 722 | &_lock); |
723 | clk_register_clkdev(clk, "i2s_ref_clk", NULL); | 723 | clk_register_clkdev(clk, "i2s_ref_mclk", NULL); |
724 | 724 | ||
725 | clk = clk_register_gate(NULL, "i2s_ref_pad_clk", "i2s_ref_mclk", 0, | 725 | clk = clk_register_gate(NULL, "i2s_ref_pad_clk", "i2s_ref_mclk", 0, |
726 | SPEAR1340_PERIP2_CLK_ENB, SPEAR1340_I2S_REF_PAD_CLK_ENB, | 726 | SPEAR1340_PERIP2_CLK_ENB, SPEAR1340_I2S_REF_PAD_CLK_ENB, |
@@ -846,30 +846,30 @@ void __init spear1340_clk_init(void) | |||
846 | ARRAY_SIZE(gen_synth0_1_parents), 0, SPEAR1340_PLL_CFG, | 846 | ARRAY_SIZE(gen_synth0_1_parents), 0, SPEAR1340_PLL_CFG, |
847 | SPEAR1340_GEN_SYNT0_1_CLK_SHIFT, | 847 | SPEAR1340_GEN_SYNT0_1_CLK_SHIFT, |
848 | SPEAR1340_GEN_SYNT_CLK_MASK, 0, &_lock); | 848 | SPEAR1340_GEN_SYNT_CLK_MASK, 0, &_lock); |
849 | clk_register_clkdev(clk, "gen_syn0_1_clk", NULL); | 849 | clk_register_clkdev(clk, "gen_syn0_1_mclk", NULL); |
850 | 850 | ||
851 | clk = clk_register_mux(NULL, "gen_syn2_3_mclk", gen_synth2_3_parents, | 851 | clk = clk_register_mux(NULL, "gen_syn2_3_mclk", gen_synth2_3_parents, |
852 | ARRAY_SIZE(gen_synth2_3_parents), 0, SPEAR1340_PLL_CFG, | 852 | ARRAY_SIZE(gen_synth2_3_parents), 0, SPEAR1340_PLL_CFG, |
853 | SPEAR1340_GEN_SYNT2_3_CLK_SHIFT, | 853 | SPEAR1340_GEN_SYNT2_3_CLK_SHIFT, |
854 | SPEAR1340_GEN_SYNT_CLK_MASK, 0, &_lock); | 854 | SPEAR1340_GEN_SYNT_CLK_MASK, 0, &_lock); |
855 | clk_register_clkdev(clk, "gen_syn2_3_clk", NULL); | 855 | clk_register_clkdev(clk, "gen_syn2_3_mclk", NULL); |
856 | 856 | ||
857 | clk = clk_register_frac("gen_syn0_clk", "gen_syn0_1_clk", 0, | 857 | clk = clk_register_frac("gen_syn0_clk", "gen_syn0_1_mclk", 0, |
858 | SPEAR1340_GEN_CLK_SYNT0, gen_rtbl, ARRAY_SIZE(gen_rtbl), | 858 | SPEAR1340_GEN_CLK_SYNT0, gen_rtbl, ARRAY_SIZE(gen_rtbl), |
859 | &_lock); | 859 | &_lock); |
860 | clk_register_clkdev(clk, "gen_syn0_clk", NULL); | 860 | clk_register_clkdev(clk, "gen_syn0_clk", NULL); |
861 | 861 | ||
862 | clk = clk_register_frac("gen_syn1_clk", "gen_syn0_1_clk", 0, | 862 | clk = clk_register_frac("gen_syn1_clk", "gen_syn0_1_mclk", 0, |
863 | SPEAR1340_GEN_CLK_SYNT1, gen_rtbl, ARRAY_SIZE(gen_rtbl), | 863 | SPEAR1340_GEN_CLK_SYNT1, gen_rtbl, ARRAY_SIZE(gen_rtbl), |
864 | &_lock); | 864 | &_lock); |
865 | clk_register_clkdev(clk, "gen_syn1_clk", NULL); | 865 | clk_register_clkdev(clk, "gen_syn1_clk", NULL); |
866 | 866 | ||
867 | clk = clk_register_frac("gen_syn2_clk", "gen_syn2_3_clk", 0, | 867 | clk = clk_register_frac("gen_syn2_clk", "gen_syn2_3_mclk", 0, |
868 | SPEAR1340_GEN_CLK_SYNT2, gen_rtbl, ARRAY_SIZE(gen_rtbl), | 868 | SPEAR1340_GEN_CLK_SYNT2, gen_rtbl, ARRAY_SIZE(gen_rtbl), |
869 | &_lock); | 869 | &_lock); |
870 | clk_register_clkdev(clk, "gen_syn2_clk", NULL); | 870 | clk_register_clkdev(clk, "gen_syn2_clk", NULL); |
871 | 871 | ||
872 | clk = clk_register_frac("gen_syn3_clk", "gen_syn2_3_clk", 0, | 872 | clk = clk_register_frac("gen_syn3_clk", "gen_syn2_3_mclk", 0, |
873 | SPEAR1340_GEN_CLK_SYNT3, gen_rtbl, ARRAY_SIZE(gen_rtbl), | 873 | SPEAR1340_GEN_CLK_SYNT3, gen_rtbl, ARRAY_SIZE(gen_rtbl), |
874 | &_lock); | 874 | &_lock); |
875 | clk_register_clkdev(clk, "gen_syn3_clk", NULL); | 875 | clk_register_clkdev(clk, "gen_syn3_clk", NULL); |