diff options
author | Seungwhan Youn <sw.youn@samsung.com> | 2010-10-13 21:39:08 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-25 03:05:56 -0400 |
commit | d4b34c6c849d67b7afaa90d55dc7fab981c72950 (patch) | |
tree | c6b5c6bfe622832865a98fecec1159cb350bc18a /arch/arm/mach-s5p64x0/clock-s5p6440.c | |
parent | 900fa0196c564895bfa2eb412d2a83421d3f3444 (diff) |
ARM: S5P: Reduce duplicated EPLL control codes
S5P Samsung SoCs has a EPLL to support various PLL clock sources for other
H/W blocks. Until now, to control EPLL, each of SoCs make their own functions
in 'mach-s5pxxx/clock.c'. But some of functions, 'xxx_epll_get_rate()' and
'xxx_epll_enable()', are exactly same in all S5P SoCs, so this patch move
these duplicated codes to common EPLL functions that use platform wide.
Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5p64x0/clock-s5p6440.c')
-rw-r--r-- | arch/arm/mach-s5p64x0/clock-s5p6440.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-s5p64x0/clock-s5p6440.c b/arch/arm/mach-s5p64x0/clock-s5p6440.c index f93dcd8b4d6a..cfccdff744d2 100644 --- a/arch/arm/mach-s5p64x0/clock-s5p6440.c +++ b/arch/arm/mach-s5p64x0/clock-s5p6440.c | |||
@@ -85,7 +85,7 @@ static int s5p6440_epll_set_rate(struct clk *clk, unsigned long rate) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | static struct clk_ops s5p6440_epll_ops = { | 87 | static struct clk_ops s5p6440_epll_ops = { |
88 | .get_rate = s5p64x0_epll_get_rate, | 88 | .get_rate = s5p_epll_get_rate, |
89 | .set_rate = s5p6440_epll_set_rate, | 89 | .set_rate = s5p6440_epll_set_rate, |
90 | }; | 90 | }; |
91 | 91 | ||
@@ -548,7 +548,7 @@ void __init_or_cpufreq s5p6440_setup_clocks(void) | |||
548 | 548 | ||
549 | /* Set S5P6440 functions for clk_fout_epll */ | 549 | /* Set S5P6440 functions for clk_fout_epll */ |
550 | 550 | ||
551 | clk_fout_epll.enable = s5p64x0_epll_enable; | 551 | clk_fout_epll.enable = s5p_epll_enable; |
552 | clk_fout_epll.ops = &s5p6440_epll_ops; | 552 | clk_fout_epll.ops = &s5p6440_epll_ops; |
553 | 553 | ||
554 | clk_48m.enable = s5p64x0_clk48m_ctrl; | 554 | clk_48m.enable = s5p64x0_clk48m_ctrl; |