aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-10-21 09:07:00 -0400
committerBen Dooks <ben-linux@fluff.org>2008-12-15 16:53:58 -0500
commit4b31d8b2256db3ed825a63603f223f84d927ca39 (patch)
tree256cfe52c637140342791d230c0f3de4b725284b /arch/arm/plat-s3c
parent952b564b4d26964e3114d02368741e192e30ae28 (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.c10
-rw-r--r--arch/arm/plat-s3c/include/plat/clock.h8
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
242struct clk clk_ext = {
243 .name = "ext",
244 .id = -1,
245};
246
247struct clk clk_epll = {
248 .name = "epll",
249 .id = -1,
250};
251
242struct clk clk_mpll = { 252struct 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;
45extern struct clk clk_p; 45extern struct clk clk_p;
46extern struct clk clk_mpll; 46extern struct clk clk_mpll;
47extern struct clk clk_upll; 47extern struct clk clk_upll;
48extern struct clk clk_epll;
48extern struct clk clk_xtal; 49extern struct clk clk_xtal;
50extern struct clk clk_ext;
51
52/* S3C64XX specific clocks */
53extern struct clk clk_27m;
54extern 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
62extern int s3c24xx_register_baseclocks(unsigned long xtal); 68extern int s3c24xx_register_baseclocks(unsigned long xtal);
63 69
70extern void s3c64xx_register_clocks(void);
71
64extern void s3c24xx_setup_clocks(unsigned long fclk, 72extern void s3c24xx_setup_clocks(unsigned long fclk,
65 unsigned long hclk, 73 unsigned long hclk,
66 unsigned long pclk); 74 unsigned long pclk);