diff options
author | Thomas Abraham <thomas.ab@samsung.com> | 2010-05-16 20:38:52 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-16 21:37:37 -0400 |
commit | f445dbd5af7863dd7dce4685e39980419d4144eb (patch) | |
tree | 194f8c8302003aaeef8d9df7e37b8156e5bcddb2 /arch/arm/plat-s5p | |
parent | f44cf78b6b475116a4d3c98576f8697dd4ca7e79 (diff) |
ARM: S5PV210: Add support for VPLL
This patch adds the following.
1. Adds 'clk_sclk_hdmi27m' clock to represent the HDMI 27MHz clock.
2. Adds 'clk_vpllsrc; clock of type clksrc_clk to represent the
input clock for VPLL.
3. Adds 'clk_sclk_vpll' clock of type clksrc_clk to represent the
output of the MUX_VPLL mux.
4. Add clk_sclk_hdmi27m, clk_vpllsrc and clk_sclk_vpll to the list
of clocks to be registered.
5. Adds boot time print of 'clk_sclk_vpll' clock rate.
6. Adds 'clk_fout_vpll' clock to plat-s5p such that it is reusable
on other s5p platforms.
Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s5p')
-rw-r--r-- | arch/arm/plat-s5p/clock.c | 8 | ||||
-rw-r--r-- | arch/arm/plat-s5p/include/plat/s5p-clock.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-s5p/clock.c b/arch/arm/plat-s5p/clock.c index aa96e335073b..4ca0759fa228 100644 --- a/arch/arm/plat-s5p/clock.c +++ b/arch/arm/plat-s5p/clock.c | |||
@@ -69,6 +69,13 @@ struct clk clk_fout_epll = { | |||
69 | .ctrlbit = (1 << 31), | 69 | .ctrlbit = (1 << 31), |
70 | }; | 70 | }; |
71 | 71 | ||
72 | /* VPLL clock output */ | ||
73 | struct clk clk_fout_vpll = { | ||
74 | .name = "fout_vpll", | ||
75 | .id = -1, | ||
76 | .ctrlbit = (1 << 31), | ||
77 | }; | ||
78 | |||
72 | /* ARM clock */ | 79 | /* ARM clock */ |
73 | struct clk clk_arm = { | 80 | struct clk clk_arm = { |
74 | .name = "armclk", | 81 | .name = "armclk", |
@@ -133,6 +140,7 @@ static struct clk *s5p_clks[] __initdata = { | |||
133 | &clk_fout_apll, | 140 | &clk_fout_apll, |
134 | &clk_fout_mpll, | 141 | &clk_fout_mpll, |
135 | &clk_fout_epll, | 142 | &clk_fout_epll, |
143 | &clk_fout_vpll, | ||
136 | &clk_arm, | 144 | &clk_arm, |
137 | &clk_vpll, | 145 | &clk_vpll, |
138 | }; | 146 | }; |
diff --git a/arch/arm/plat-s5p/include/plat/s5p-clock.h b/arch/arm/plat-s5p/include/plat/s5p-clock.h index 56fb8b414d41..5ae8866b7989 100644 --- a/arch/arm/plat-s5p/include/plat/s5p-clock.h +++ b/arch/arm/plat-s5p/include/plat/s5p-clock.h | |||
@@ -27,6 +27,7 @@ extern struct clk clk_48m; | |||
27 | extern struct clk clk_fout_apll; | 27 | extern struct clk clk_fout_apll; |
28 | extern struct clk clk_fout_mpll; | 28 | extern struct clk clk_fout_mpll; |
29 | extern struct clk clk_fout_epll; | 29 | extern struct clk clk_fout_epll; |
30 | extern struct clk clk_fout_vpll; | ||
30 | extern struct clk clk_arm; | 31 | extern struct clk clk_arm; |
31 | extern struct clk clk_vpll; | 32 | extern struct clk clk_vpll; |
32 | 33 | ||