diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-21 09:06:34 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 16:46:02 -0500 |
commit | e24b864ab3e1a5916c87e13cfdc94c1d02f0578b (patch) | |
tree | f2c894494fc6831c72cd980b9d836efa900f5be3 /arch/arm/plat-s3c24xx/s3c244x.c | |
parent | 93bc6b6371b6b7303ffdae0d69dcdc443b8b0d8a (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/s3c244x.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/s3c244x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/s3c244x.c b/arch/arm/plat-s3c24xx/s3c244x.c index d1152d1f9ba0..7f33cef20bac 100644 --- a/arch/arm/plat-s3c24xx/s3c244x.c +++ b/arch/arm/plat-s3c24xx/s3c244x.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <plat/devs.h> | 42 | #include <plat/devs.h> |
43 | #include <plat/cpu.h> | 43 | #include <plat/cpu.h> |
44 | #include <plat/pm.h> | 44 | #include <plat/pm.h> |
45 | #include <plat/pll.h> | ||
45 | 46 | ||
46 | static struct map_desc s3c244x_iodesc[] __initdata = { | 47 | static struct map_desc s3c244x_iodesc[] __initdata = { |
47 | IODESC_ENT(CLKPWR), | 48 | IODESC_ENT(CLKPWR), |
@@ -80,7 +81,7 @@ void __init s3c244x_init_clocks(int xtal) | |||
80 | /* now we've got our machine bits initialised, work out what | 81 | /* now we've got our machine bits initialised, work out what |
81 | * clocks we've got */ | 82 | * clocks we've got */ |
82 | 83 | ||
83 | fclk = s3c2410_get_pll(__raw_readl(S3C2410_MPLLCON), xtal) * 2; | 84 | fclk = s3c24xx_get_pll(__raw_readl(S3C2410_MPLLCON), xtal) * 2; |
84 | 85 | ||
85 | clkdiv = __raw_readl(S3C2410_CLKDIVN); | 86 | clkdiv = __raw_readl(S3C2410_CLKDIVN); |
86 | camdiv = __raw_readl(S3C2440_CAMDIVN); | 87 | camdiv = __raw_readl(S3C2440_CAMDIVN); |