aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2009-11-29 19:40:47 -0500
committerBen Dooks <ben-linux@fluff.org>2010-01-15 03:10:08 -0500
commit70792bcfad5f4817fc067b7fdb0541d8b13b5502 (patch)
treec60065238f8d6fbc0669f4b7a02b282c962ac516 /arch/arm/plat-s3c
parent3ce2f76f5dfeeacd128db9e5cd6945bac0ea0b2a (diff)
ARM: SAMSUNG: Move <plat/clock.h> to plat-samsung
Move the <plat/clock.h> header to plat-samsung where it can be used by all the platforms, and readies it for the next round of clock updates where the clock code will be amalgamated. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c')
-rw-r--r--arch/arm/plat-s3c/include/plat/clock.h89
1 files changed, 0 insertions, 89 deletions
diff --git a/arch/arm/plat-s3c/include/plat/clock.h b/arch/arm/plat-s3c/include/plat/clock.h
deleted file mode 100644
index d86af84b5b8c..000000000000
--- a/arch/arm/plat-s3c/include/plat/clock.h
+++ /dev/null
@@ -1,89 +0,0 @@
1/* linux/arch/arm/plat-s3c/include/plat/clock.h
2 *
3 * Copyright (c) 2004-2005 Simtec Electronics
4 * http://www.simtec.co.uk/products/SWLINUX/
5 * Written by Ben Dooks, <ben@simtec.co.uk>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10*/
11
12#include <linux/spinlock.h>
13
14struct clk {
15 struct list_head list;
16 struct module *owner;
17 struct clk *parent;
18 const char *name;
19 int id;
20 int usage;
21 unsigned long rate;
22 unsigned long ctrlbit;
23
24 int (*enable)(struct clk *, int enable);
25 int (*set_rate)(struct clk *c, unsigned long rate);
26 unsigned long (*get_rate)(struct clk *c);
27 unsigned long (*round_rate)(struct clk *c, unsigned long rate);
28 int (*set_parent)(struct clk *c, struct clk *parent);
29};
30
31/* other clocks which may be registered by board support */
32
33extern struct clk s3c24xx_dclk0;
34extern struct clk s3c24xx_dclk1;
35extern struct clk s3c24xx_clkout0;
36extern struct clk s3c24xx_clkout1;
37extern struct clk s3c24xx_uclk;
38
39extern struct clk clk_usb_bus;
40
41/* core clock support */
42
43extern struct clk clk_f;
44extern struct clk clk_h;
45extern struct clk clk_p;
46extern struct clk clk_mpll;
47extern struct clk clk_upll;
48extern struct clk clk_epll;
49extern struct clk clk_xtal;
50extern struct clk clk_ext;
51
52/* S3C64XX specific clocks */
53extern struct clk clk_h2;
54extern struct clk clk_27m;
55extern struct clk clk_48m;
56
57/* exports for arch/arm/mach-s3c2410
58 *
59 * Please DO NOT use these outside of arch/arm/mach-s3c2410
60*/
61
62extern spinlock_t clocks_lock;
63
64extern int s3c2410_clkcon_enable(struct clk *clk, int enable);
65
66extern int s3c24xx_register_clock(struct clk *clk);
67extern int s3c24xx_register_clocks(struct clk **clk, int nr_clks);
68
69extern int s3c24xx_register_baseclocks(unsigned long xtal);
70
71extern void s3c64xx_register_clocks(void);
72
73extern void s3c24xx_setup_clocks(unsigned long fclk,
74 unsigned long hclk,
75 unsigned long pclk);
76
77extern void s3c2410_setup_clocks(void);
78extern void s3c2412_setup_clocks(void);
79extern void s3c244x_setup_clocks(void);
80extern void s3c2443_setup_clocks(void);
81
82/* S3C64XX specific functions and clocks */
83
84extern int s3c64xx_sclk_ctrl(struct clk *clk, int enable);
85
86/* Init for pwm clock code */
87
88extern void s3c_pwmclk_init(void);
89