diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-21 09:07:00 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 16:53:58 -0500 |
commit | 4b31d8b2256db3ed825a63603f223f84d927ca39 (patch) | |
tree | 256cfe52c637140342791d230c0f3de4b725284b /arch/arm/plat-s3c | |
parent | 952b564b4d26964e3114d02368741e192e30ae28 (diff) |
[ARM] S3C64XX: Add initial clock framework
Add the initial clocks definitions for the s3c6400
and s3c6410. Move the epll and ext clock from the
s3c2443 support into the common code.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c')
-rw-r--r-- | arch/arm/plat-s3c/clock.c | 10 | ||||
-rw-r--r-- | arch/arm/plat-s3c/include/plat/clock.h | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c/clock.c b/arch/arm/plat-s3c/clock.c index da7ac07c7a0b..1054d18828fd 100644 --- a/arch/arm/plat-s3c/clock.c +++ b/arch/arm/plat-s3c/clock.c | |||
@@ -239,6 +239,16 @@ struct clk clk_xtal = { | |||
239 | .ctrlbit = 0, | 239 | .ctrlbit = 0, |
240 | }; | 240 | }; |
241 | 241 | ||
242 | struct clk clk_ext = { | ||
243 | .name = "ext", | ||
244 | .id = -1, | ||
245 | }; | ||
246 | |||
247 | struct clk clk_epll = { | ||
248 | .name = "epll", | ||
249 | .id = -1, | ||
250 | }; | ||
251 | |||
242 | struct clk clk_mpll = { | 252 | struct clk clk_mpll = { |
243 | .name = "mpll", | 253 | .name = "mpll", |
244 | .id = -1, | 254 | .id = -1, |
diff --git a/arch/arm/plat-s3c/include/plat/clock.h b/arch/arm/plat-s3c/include/plat/clock.h index d871609738f9..6a2c5af10009 100644 --- a/arch/arm/plat-s3c/include/plat/clock.h +++ b/arch/arm/plat-s3c/include/plat/clock.h | |||
@@ -45,7 +45,13 @@ extern struct clk clk_h; | |||
45 | extern struct clk clk_p; | 45 | extern struct clk clk_p; |
46 | extern struct clk clk_mpll; | 46 | extern struct clk clk_mpll; |
47 | extern struct clk clk_upll; | 47 | extern struct clk clk_upll; |
48 | extern struct clk clk_epll; | ||
48 | extern struct clk clk_xtal; | 49 | extern struct clk clk_xtal; |
50 | extern struct clk clk_ext; | ||
51 | |||
52 | /* S3C64XX specific clocks */ | ||
53 | extern struct clk clk_27m; | ||
54 | extern struct clk clk_48m; | ||
49 | 55 | ||
50 | /* exports for arch/arm/mach-s3c2410 | 56 | /* exports for arch/arm/mach-s3c2410 |
51 | * | 57 | * |
@@ -61,6 +67,8 @@ extern int s3c24xx_register_clocks(struct clk **clk, int nr_clks); | |||
61 | 67 | ||
62 | extern int s3c24xx_register_baseclocks(unsigned long xtal); | 68 | extern int s3c24xx_register_baseclocks(unsigned long xtal); |
63 | 69 | ||
70 | extern void s3c64xx_register_clocks(void); | ||
71 | |||
64 | extern void s3c24xx_setup_clocks(unsigned long fclk, | 72 | extern void s3c24xx_setup_clocks(unsigned long fclk, |
65 | unsigned long hclk, | 73 | unsigned long hclk, |
66 | unsigned long pclk); | 74 | unsigned long pclk); |