diff options
Diffstat (limited to 'arch/arm/mach-s3c2416/clock.c')
-rw-r--r-- | arch/arm/mach-s3c2416/clock.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2416/clock.c b/arch/arm/mach-s3c2416/clock.c index 21a5e81f0ab5..72b7c6274c79 100644 --- a/arch/arm/mach-s3c2416/clock.c +++ b/arch/arm/mach-s3c2416/clock.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <plat/cpu.h> | 21 | #include <plat/cpu.h> |
22 | 22 | ||
23 | #include <plat/cpu-freq.h> | 23 | #include <plat/cpu-freq.h> |
24 | #include <plat/pll6553x.h> | ||
25 | #include <plat/pll.h> | 24 | #include <plat/pll.h> |
26 | 25 | ||
27 | #include <asm/mach/map.h> | 26 | #include <asm/mach/map.h> |
@@ -38,6 +37,32 @@ static unsigned int armdiv[8] = { | |||
38 | [7] = 8, | 37 | [7] = 8, |
39 | }; | 38 | }; |
40 | 39 | ||
40 | static struct clksrc_clk hsspi_eplldiv = { | ||
41 | .clk = { | ||
42 | .name = "hsspi-eplldiv", | ||
43 | .parent = &clk_esysclk.clk, | ||
44 | .ctrlbit = (1 << 14), | ||
45 | .enable = s3c2443_clkcon_enable_s, | ||
46 | }, | ||
47 | .reg_div = { .reg = S3C2443_CLKDIV1, .size = 2, .shift = 24 }, | ||
48 | }; | ||
49 | |||
50 | static struct clk *hsspi_sources[] = { | ||
51 | [0] = &hsspi_eplldiv.clk, | ||
52 | [1] = NULL, /* to fix */ | ||
53 | }; | ||
54 | |||
55 | static struct clksrc_clk hsspi_mux = { | ||
56 | .clk = { | ||
57 | .name = "hsspi-if", | ||
58 | }, | ||
59 | .sources = &(struct clksrc_sources) { | ||
60 | .sources = hsspi_sources, | ||
61 | .nr_sources = ARRAY_SIZE(hsspi_sources), | ||
62 | }, | ||
63 | .reg_src = { .reg = S3C2443_CLKSRC, .size = 1, .shift = 18 }, | ||
64 | }; | ||
65 | |||
41 | static struct clksrc_clk hsmmc_div[] = { | 66 | static struct clksrc_clk hsmmc_div[] = { |
42 | [0] = { | 67 | [0] = { |
43 | .clk = { | 68 | .clk = { |
@@ -114,6 +139,8 @@ void __init_or_cpufreq s3c2416_setup_clocks(void) | |||
114 | 139 | ||
115 | 140 | ||
116 | static struct clksrc_clk *clksrcs[] __initdata = { | 141 | static struct clksrc_clk *clksrcs[] __initdata = { |
142 | &hsspi_eplldiv, | ||
143 | &hsspi_mux, | ||
117 | &hsmmc_div[0], | 144 | &hsmmc_div[0], |
118 | &hsmmc_div[1], | 145 | &hsmmc_div[1], |
119 | &hsmmc_mux[0], | 146 | &hsmmc_mux[0], |