aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/s3c2410.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/mach-s3c2410/s3c2410.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/mach-s3c2410/s3c2410.c')
-rw-r--r--arch/arm/mach-s3c2410/s3c2410.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2410/s3c2410.c b/arch/arm/mach-s3c2410/s3c2410.c
index 1db39c609d78..4e23bc05f4b5 100644
--- a/arch/arm/mach-s3c2410/s3c2410.c
+++ b/arch/arm/mach-s3c2410/s3c2410.c
@@ -35,6 +35,7 @@
35#include <plat/cpu.h> 35#include <plat/cpu.h>
36#include <plat/devs.h> 36#include <plat/devs.h>
37#include <plat/clock.h> 37#include <plat/clock.h>
38#include <plat/pll.h>
38 39
39/* Initial IO mappings */ 40/* Initial IO mappings */
40 41
@@ -74,7 +75,7 @@ void __init s3c2410_init_clocks(int xtal)
74 /* now we've got our machine bits initialised, work out what 75 /* now we've got our machine bits initialised, work out what
75 * clocks we've got */ 76 * clocks we've got */
76 77
77 fclk = s3c2410_get_pll(__raw_readl(S3C2410_MPLLCON), xtal); 78 fclk = s3c24xx_get_pll(__raw_readl(S3C2410_MPLLCON), xtal);
78 79
79 tmp = __raw_readl(S3C2410_CLKDIVN); 80 tmp = __raw_readl(S3C2410_CLKDIVN);
80 81