diff options
author | Thomas Abraham <thomas.ab@samsung.com> | 2011-06-14 06:12:26 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-07-20 06:11:29 -0400 |
commit | e83626f2fd48fa53ece85760c7e0b4ec4a996a91 (patch) | |
tree | 8f89557b9e9f1e39314d9eabda7454b34a15b8a1 /arch/arm/mach-s3c2443 | |
parent | f86c6660927614fcda257e083569bfb252fcf85e (diff) |
ARM: S3C24XX: Add clkdev support
Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c2443')
-rw-r--r-- | arch/arm/mach-s3c2443/clock.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/arm/mach-s3c2443/clock.c b/arch/arm/mach-s3c2443/clock.c index f4ec6d5715c8..a1a7176675b9 100644 --- a/arch/arm/mach-s3c2443/clock.c +++ b/arch/arm/mach-s3c2443/clock.c | |||
@@ -59,7 +59,6 @@ | |||
59 | 59 | ||
60 | static struct clk clk_i2s_ext = { | 60 | static struct clk clk_i2s_ext = { |
61 | .name = "i2s-ext", | 61 | .name = "i2s-ext", |
62 | .id = -1, | ||
63 | }; | 62 | }; |
64 | 63 | ||
65 | /* armdiv | 64 | /* armdiv |
@@ -139,7 +138,6 @@ static int s3c2443_armclk_setrate(struct clk *clk, unsigned long rate) | |||
139 | 138 | ||
140 | static struct clk clk_armdiv = { | 139 | static struct clk clk_armdiv = { |
141 | .name = "armdiv", | 140 | .name = "armdiv", |
142 | .id = -1, | ||
143 | .parent = &clk_msysclk.clk, | 141 | .parent = &clk_msysclk.clk, |
144 | .ops = &(struct clk_ops) { | 142 | .ops = &(struct clk_ops) { |
145 | .round_rate = s3c2443_armclk_roundrate, | 143 | .round_rate = s3c2443_armclk_roundrate, |
@@ -160,7 +158,6 @@ static struct clk *clk_arm_sources[] = { | |||
160 | static struct clksrc_clk clk_arm = { | 158 | static struct clksrc_clk clk_arm = { |
161 | .clk = { | 159 | .clk = { |
162 | .name = "armclk", | 160 | .name = "armclk", |
163 | .id = -1, | ||
164 | }, | 161 | }, |
165 | .sources = &(struct clksrc_sources) { | 162 | .sources = &(struct clksrc_sources) { |
166 | .sources = clk_arm_sources, | 163 | .sources = clk_arm_sources, |
@@ -177,7 +174,6 @@ static struct clksrc_clk clk_arm = { | |||
177 | static struct clksrc_clk clk_hsspi = { | 174 | static struct clksrc_clk clk_hsspi = { |
178 | .clk = { | 175 | .clk = { |
179 | .name = "hsspi", | 176 | .name = "hsspi", |
180 | .id = -1, | ||
181 | .parent = &clk_esysclk.clk, | 177 | .parent = &clk_esysclk.clk, |
182 | .ctrlbit = S3C2443_SCLKCON_HSSPICLK, | 178 | .ctrlbit = S3C2443_SCLKCON_HSSPICLK, |
183 | .enable = s3c2443_clkcon_enable_s, | 179 | .enable = s3c2443_clkcon_enable_s, |
@@ -196,7 +192,7 @@ static struct clksrc_clk clk_hsspi = { | |||
196 | static struct clksrc_clk clk_hsmmc_div = { | 192 | static struct clksrc_clk clk_hsmmc_div = { |
197 | .clk = { | 193 | .clk = { |
198 | .name = "hsmmc-div", | 194 | .name = "hsmmc-div", |
199 | .id = 1, | 195 | .devname = "s3c-sdhci.1", |
200 | .parent = &clk_esysclk.clk, | 196 | .parent = &clk_esysclk.clk, |
201 | }, | 197 | }, |
202 | .reg_div = { .reg = S3C2443_CLKDIV1, .size = 2, .shift = 6 }, | 198 | .reg_div = { .reg = S3C2443_CLKDIV1, .size = 2, .shift = 6 }, |
@@ -231,7 +227,7 @@ static int s3c2443_enable_hsmmc(struct clk *clk, int enable) | |||
231 | 227 | ||
232 | static struct clk clk_hsmmc = { | 228 | static struct clk clk_hsmmc = { |
233 | .name = "hsmmc-if", | 229 | .name = "hsmmc-if", |
234 | .id = 1, | 230 | .devname = "s3c-sdhci.1", |
235 | .parent = &clk_hsmmc_div.clk, | 231 | .parent = &clk_hsmmc_div.clk, |
236 | .enable = s3c2443_enable_hsmmc, | 232 | .enable = s3c2443_enable_hsmmc, |
237 | .ops = &(struct clk_ops) { | 233 | .ops = &(struct clk_ops) { |
@@ -248,7 +244,6 @@ static struct clk clk_hsmmc = { | |||
248 | static struct clksrc_clk clk_i2s_eplldiv = { | 244 | static struct clksrc_clk clk_i2s_eplldiv = { |
249 | .clk = { | 245 | .clk = { |
250 | .name = "i2s-eplldiv", | 246 | .name = "i2s-eplldiv", |
251 | .id = -1, | ||
252 | .parent = &clk_esysclk.clk, | 247 | .parent = &clk_esysclk.clk, |
253 | }, | 248 | }, |
254 | .reg_div = { .reg = S3C2443_CLKDIV1, .size = 4, .shift = 12, }, | 249 | .reg_div = { .reg = S3C2443_CLKDIV1, .size = 4, .shift = 12, }, |
@@ -271,7 +266,6 @@ struct clk *clk_i2s_srclist[] = { | |||
271 | static struct clksrc_clk clk_i2s = { | 266 | static struct clksrc_clk clk_i2s = { |
272 | .clk = { | 267 | .clk = { |
273 | .name = "i2s-if", | 268 | .name = "i2s-if", |
274 | .id = -1, | ||
275 | .ctrlbit = S3C2443_SCLKCON_I2SCLK, | 269 | .ctrlbit = S3C2443_SCLKCON_I2SCLK, |
276 | .enable = s3c2443_clkcon_enable_s, | 270 | .enable = s3c2443_clkcon_enable_s, |
277 | 271 | ||
@@ -288,25 +282,23 @@ static struct clksrc_clk clk_i2s = { | |||
288 | static struct clk init_clocks_off[] = { | 282 | static struct clk init_clocks_off[] = { |
289 | { | 283 | { |
290 | .name = "sdi", | 284 | .name = "sdi", |
291 | .id = -1, | ||
292 | .parent = &clk_p, | 285 | .parent = &clk_p, |
293 | .enable = s3c2443_clkcon_enable_p, | 286 | .enable = s3c2443_clkcon_enable_p, |
294 | .ctrlbit = S3C2443_PCLKCON_SDI, | 287 | .ctrlbit = S3C2443_PCLKCON_SDI, |
295 | }, { | 288 | }, { |
296 | .name = "iis", | 289 | .name = "iis", |
297 | .id = -1, | ||
298 | .parent = &clk_p, | 290 | .parent = &clk_p, |
299 | .enable = s3c2443_clkcon_enable_p, | 291 | .enable = s3c2443_clkcon_enable_p, |
300 | .ctrlbit = S3C2443_PCLKCON_IIS, | 292 | .ctrlbit = S3C2443_PCLKCON_IIS, |
301 | }, { | 293 | }, { |
302 | .name = "spi", | 294 | .name = "spi", |
303 | .id = 0, | 295 | .devname = "s3c2410-spi.0", |
304 | .parent = &clk_p, | 296 | .parent = &clk_p, |
305 | .enable = s3c2443_clkcon_enable_p, | 297 | .enable = s3c2443_clkcon_enable_p, |
306 | .ctrlbit = S3C2443_PCLKCON_SPI0, | 298 | .ctrlbit = S3C2443_PCLKCON_SPI0, |
307 | }, { | 299 | }, { |
308 | .name = "spi", | 300 | .name = "spi", |
309 | .id = 1, | 301 | .devname = "s3c2410-spi.1", |
310 | .parent = &clk_p, | 302 | .parent = &clk_p, |
311 | .enable = s3c2443_clkcon_enable_p, | 303 | .enable = s3c2443_clkcon_enable_p, |
312 | .ctrlbit = S3C2443_PCLKCON_SPI1, | 304 | .ctrlbit = S3C2443_PCLKCON_SPI1, |