diff options
author | Heiko Stuebner <heiko@sntech.de> | 2012-01-27 02:16:19 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-01-31 06:06:42 -0500 |
commit | 4083da3dcd1901394036e81f858abb2257c7c772 (patch) | |
tree | eda0c2e89c24745b333fe15e8eb18e371a287a54 /arch | |
parent | 37892ff4e4760c675127827e48019438bb33da08 (diff) |
ARM: S3C24XX: move common S3C2443 clock definitions to clock.h
plat-samsung/clock.h currently keeps all the SoC specific clock
declarations except the ones for S3C2443/S3C2416 which were kept in
s3c2443.h.
This patch moves them out of s3c2443.h to get rid of the header
completely later on.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c2416/clock.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/s3c2443-clock.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/clock.h | 17 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/s3c2443.h | 19 |
4 files changed, 17 insertions, 21 deletions
diff --git a/arch/arm/mach-s3c2416/clock.c b/arch/arm/mach-s3c2416/clock.c index 59f54d1d7f8b..5e36905eb7fc 100644 --- a/arch/arm/mach-s3c2416/clock.c +++ b/arch/arm/mach-s3c2416/clock.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/clk.h> | 15 | #include <linux/clk.h> |
16 | 16 | ||
17 | #include <plat/s3c2416.h> | 17 | #include <plat/s3c2416.h> |
18 | #include <plat/s3c2443.h> | ||
19 | #include <plat/clock.h> | 18 | #include <plat/clock.h> |
20 | #include <plat/clock-clksrc.h> | 19 | #include <plat/clock-clksrc.h> |
21 | #include <plat/cpu.h> | 20 | #include <plat/cpu.h> |
diff --git a/arch/arm/plat-s3c24xx/s3c2443-clock.c b/arch/arm/plat-s3c24xx/s3c2443-clock.c index 95e68190d593..363306061c89 100644 --- a/arch/arm/plat-s3c24xx/s3c2443-clock.c +++ b/arch/arm/plat-s3c24xx/s3c2443-clock.c | |||
@@ -12,7 +12,6 @@ | |||
12 | 12 | ||
13 | #include <mach/regs-s3c2443-clock.h> | 13 | #include <mach/regs-s3c2443-clock.h> |
14 | 14 | ||
15 | #include <plat/s3c2443.h> | ||
16 | #include <plat/clock.h> | 15 | #include <plat/clock.h> |
17 | #include <plat/clock-clksrc.h> | 16 | #include <plat/clock-clksrc.h> |
18 | #include <plat/cpu.h> | 17 | #include <plat/cpu.h> |
diff --git a/arch/arm/plat-samsung/include/plat/clock.h b/arch/arm/plat-samsung/include/plat/clock.h index 73c66d4d10fa..42bbe3d99539 100644 --- a/arch/arm/plat-samsung/include/plat/clock.h +++ b/arch/arm/plat-samsung/include/plat/clock.h | |||
@@ -79,6 +79,10 @@ extern struct clk clk_epll; | |||
79 | extern struct clk clk_xtal; | 79 | extern struct clk clk_xtal; |
80 | extern struct clk clk_ext; | 80 | extern struct clk clk_ext; |
81 | 81 | ||
82 | /* S3C2443/S3C2416 specific clocks */ | ||
83 | extern struct clksrc_clk clk_epllref; | ||
84 | extern struct clksrc_clk clk_esysclk; | ||
85 | |||
82 | /* S3C64XX specific clocks */ | 86 | /* S3C64XX specific clocks */ |
83 | extern struct clk clk_h2; | 87 | extern struct clk clk_h2; |
84 | extern struct clk clk_27m; | 88 | extern struct clk clk_27m; |
@@ -116,6 +120,19 @@ extern void s3c2412_setup_clocks(void); | |||
116 | extern void s3c244x_setup_clocks(void); | 120 | extern void s3c244x_setup_clocks(void); |
117 | extern void s3c2443_setup_clocks(void); | 121 | extern void s3c2443_setup_clocks(void); |
118 | 122 | ||
123 | /* S3C2443/S3C2416 specific clock functions */ | ||
124 | |||
125 | typedef unsigned int (*pll_fn)(unsigned int reg, unsigned int base); | ||
126 | |||
127 | extern void s3c2443_common_setup_clocks(pll_fn get_mpll); | ||
128 | extern void s3c2443_common_init_clocks(int xtal, pll_fn get_mpll, | ||
129 | unsigned int *divs, int nr_divs, | ||
130 | int divmask); | ||
131 | |||
132 | extern int s3c2443_clkcon_enable_h(struct clk *clk, int enable); | ||
133 | extern int s3c2443_clkcon_enable_p(struct clk *clk, int enable); | ||
134 | extern int s3c2443_clkcon_enable_s(struct clk *clk, int enable); | ||
135 | |||
119 | /* S3C64XX specific functions and clocks */ | 136 | /* S3C64XX specific functions and clocks */ |
120 | 137 | ||
121 | extern int s3c64xx_sclk_ctrl(struct clk *clk, int enable); | 138 | extern int s3c64xx_sclk_ctrl(struct clk *clk, int enable); |
diff --git a/arch/arm/plat-samsung/include/plat/s3c2443.h b/arch/arm/plat-samsung/include/plat/s3c2443.h index ffaecb9049c0..a5b794ff838b 100644 --- a/arch/arm/plat-samsung/include/plat/s3c2443.h +++ b/arch/arm/plat-samsung/include/plat/s3c2443.h | |||
@@ -32,22 +32,3 @@ extern void s3c2443_restart(char mode, const char *cmd); | |||
32 | #define s3c2443_init NULL | 32 | #define s3c2443_init NULL |
33 | #define s3c2443_restart NULL | 33 | #define s3c2443_restart NULL |
34 | #endif | 34 | #endif |
35 | |||
36 | /* common code used by s3c2443 and others. | ||
37 | * note, not to be used outside of arch/arm/mach-s3c* */ | ||
38 | |||
39 | struct clk; /* some files don't need clk.h otherwise */ | ||
40 | |||
41 | typedef unsigned int (*pll_fn)(unsigned int reg, unsigned int base); | ||
42 | |||
43 | extern void s3c2443_common_setup_clocks(pll_fn get_mpll); | ||
44 | extern void s3c2443_common_init_clocks(int xtal, pll_fn get_mpll, | ||
45 | unsigned int *divs, int nr_divs, | ||
46 | int divmask); | ||
47 | |||
48 | extern int s3c2443_clkcon_enable_h(struct clk *clk, int enable); | ||
49 | extern int s3c2443_clkcon_enable_p(struct clk *clk, int enable); | ||
50 | extern int s3c2443_clkcon_enable_s(struct clk *clk, int enable); | ||
51 | |||
52 | extern struct clksrc_clk clk_epllref; | ||
53 | extern struct clksrc_clk clk_esysclk; | ||