aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx/clock.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-10-21 09:06:34 -0400
committerBen Dooks <ben-linux@fluff.org>2008-12-15 16:46:02 -0500
commite24b864ab3e1a5916c87e13cfdc94c1d02f0578b (patch)
treef2c894494fc6831c72cd980b9d836efa900f5be3 /arch/arm/plat-s3c24xx/clock.c
parent93bc6b6371b6b7303ffdae0d69dcdc443b8b0d8a (diff)
[ARM] S3C24XX: Split pll code out of regs-clock.h
Move the PLL calculation code into it's own header file for re-use with the other plat-s3c24xx based systems such as the S3C24A0. Note, we change the name of s3c2410_get_pll to the more generically named s3c24xx_get_pll as well as the related defintions. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c24xx/clock.c')
-rw-r--r--arch/arm/plat-s3c24xx/clock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/clock.c b/arch/arm/plat-s3c24xx/clock.c
index bf2633bd3996..1ff1b9836042 100644
--- a/arch/arm/plat-s3c24xx/clock.c
+++ b/arch/arm/plat-s3c24xx/clock.c
@@ -49,6 +49,7 @@
49 49
50#include <plat/clock.h> 50#include <plat/clock.h>
51#include <plat/cpu.h> 51#include <plat/cpu.h>
52#include <plat/pll.h>
52 53
53/* clock information */ 54/* clock information */
54 55
@@ -332,7 +333,7 @@ int __init s3c24xx_setup_clocks(unsigned long xtal,
332 /* initialise the main system clocks */ 333 /* initialise the main system clocks */
333 334
334 clk_xtal.rate = xtal; 335 clk_xtal.rate = xtal;
335 clk_upll.rate = s3c2410_get_pll(__raw_readl(S3C2410_UPLLCON), xtal); 336 clk_upll.rate = s3c24xx_get_pll(__raw_readl(S3C2410_UPLLCON), xtal);
336 337
337 clk_mpll.rate = fclk; 338 clk_mpll.rate = fclk;
338 clk_h.rate = hclk; 339 clk_h.rate = hclk;