diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-04-24 06:15:34 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-07-28 11:07:29 -0400 |
commit | 51ddec7617bd0d4c73c44a8862faac5d7d97eb03 (patch) | |
tree | 56cfd6db86147db3138d81ae7c9d2d9e9cfda068 /arch | |
parent | 465393749da3a3229f6067246c7e8f97f7cc833d (diff) |
at91: move register clocks to soc generic init
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91/at91cap9.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91rm9200.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9260.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9261.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9263.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9g45.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9rl.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/setup.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-at91/soc.h | 1 |
9 files changed, 11 insertions, 21 deletions
diff --git a/arch/arm/mach-at91/at91cap9.c b/arch/arm/mach-at91/at91cap9.c index bdf50974ef4c..8fabf91fe2e5 100644 --- a/arch/arm/mach-at91/at91cap9.c +++ b/arch/arm/mach-at91/at91cap9.c | |||
@@ -346,9 +346,6 @@ static void __init at91cap9_initialize(void) | |||
346 | pm_power_off = at91cap9_poweroff; | 346 | pm_power_off = at91cap9_poweroff; |
347 | at91_extern_irq = (1 << AT91CAP9_ID_IRQ0) | (1 << AT91CAP9_ID_IRQ1); | 347 | at91_extern_irq = (1 << AT91CAP9_ID_IRQ0) | (1 << AT91CAP9_ID_IRQ1); |
348 | 348 | ||
349 | /* Register the processor-specific clocks */ | ||
350 | at91cap9_register_clocks(); | ||
351 | |||
352 | /* Register GPIO subsystem */ | 349 | /* Register GPIO subsystem */ |
353 | at91_gpio_init(at91cap9_gpio, 4); | 350 | at91_gpio_init(at91cap9_gpio, 4); |
354 | 351 | ||
@@ -404,5 +401,6 @@ static unsigned int at91cap9_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
404 | struct at91_init_soc __initdata at91cap9_soc = { | 401 | struct at91_init_soc __initdata at91cap9_soc = { |
405 | .map_io = at91cap9_map_io, | 402 | .map_io = at91cap9_map_io, |
406 | .default_irq_priority = at91cap9_default_irq_priority, | 403 | .default_irq_priority = at91cap9_default_irq_priority, |
404 | .register_clocks = at91cap9_register_clocks, | ||
407 | .init = at91cap9_initialize, | 405 | .init = at91cap9_initialize, |
408 | }; | 406 | }; |
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c index 966129793dc8..010407802cdc 100644 --- a/arch/arm/mach-at91/at91rm9200.c +++ b/arch/arm/mach-at91/at91rm9200.c | |||
@@ -317,9 +317,6 @@ static void __init at91rm9200_initialize(void) | |||
317 | | (1 << AT91RM9200_ID_IRQ4) | (1 << AT91RM9200_ID_IRQ5) | 317 | | (1 << AT91RM9200_ID_IRQ4) | (1 << AT91RM9200_ID_IRQ5) |
318 | | (1 << AT91RM9200_ID_IRQ6); | 318 | | (1 << AT91RM9200_ID_IRQ6); |
319 | 319 | ||
320 | /* Register the processor-specific clocks */ | ||
321 | at91rm9200_register_clocks(); | ||
322 | |||
323 | /* Initialize GPIO subsystem */ | 320 | /* Initialize GPIO subsystem */ |
324 | at91_gpio_init(at91rm9200_gpio, | 321 | at91_gpio_init(at91rm9200_gpio, |
325 | cpu_is_at91rm9200_bga() ? AT91RM9200_BGA : AT91RM9200_PQFP); | 322 | cpu_is_at91rm9200_bga() ? AT91RM9200_BGA : AT91RM9200_PQFP); |
@@ -371,5 +368,6 @@ static unsigned int at91rm9200_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
371 | struct at91_init_soc __initdata at91rm9200_soc = { | 368 | struct at91_init_soc __initdata at91rm9200_soc = { |
372 | .map_io = at91rm9200_map_io, | 369 | .map_io = at91rm9200_map_io, |
373 | .default_irq_priority = at91rm9200_default_irq_priority, | 370 | .default_irq_priority = at91rm9200_default_irq_priority, |
371 | .register_clocks = at91rm9200_register_clocks, | ||
374 | .init = at91rm9200_initialize, | 372 | .init = at91rm9200_initialize, |
375 | }; | 373 | }; |
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c index 40e123fa9cf5..1addfef73b6c 100644 --- a/arch/arm/mach-at91/at91sam9260.c +++ b/arch/arm/mach-at91/at91sam9260.c | |||
@@ -357,9 +357,6 @@ static void __init at91sam9260_initialize(void) | |||
357 | at91_extern_irq = (1 << AT91SAM9260_ID_IRQ0) | (1 << AT91SAM9260_ID_IRQ1) | 357 | at91_extern_irq = (1 << AT91SAM9260_ID_IRQ0) | (1 << AT91SAM9260_ID_IRQ1) |
358 | | (1 << AT91SAM9260_ID_IRQ2); | 358 | | (1 << AT91SAM9260_ID_IRQ2); |
359 | 359 | ||
360 | /* Register the processor-specific clocks */ | ||
361 | at91sam9260_register_clocks(); | ||
362 | |||
363 | /* Register GPIO subsystem */ | 360 | /* Register GPIO subsystem */ |
364 | at91_gpio_init(at91sam9260_gpio, 3); | 361 | at91_gpio_init(at91sam9260_gpio, 3); |
365 | } | 362 | } |
@@ -409,5 +406,6 @@ static unsigned int at91sam9260_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
409 | struct at91_init_soc __initdata at91sam9260_soc = { | 406 | struct at91_init_soc __initdata at91sam9260_soc = { |
410 | .map_io = at91sam9260_map_io, | 407 | .map_io = at91sam9260_map_io, |
411 | .default_irq_priority = at91sam9260_default_irq_priority, | 408 | .default_irq_priority = at91sam9260_default_irq_priority, |
409 | .register_clocks = at91sam9260_register_clocks, | ||
412 | .init = at91sam9260_initialize, | 410 | .init = at91sam9260_initialize, |
413 | }; | 411 | }; |
diff --git a/arch/arm/mach-at91/at91sam9261.c b/arch/arm/mach-at91/at91sam9261.c index 963197383870..8f97bd4a5268 100644 --- a/arch/arm/mach-at91/at91sam9261.c +++ b/arch/arm/mach-at91/at91sam9261.c | |||
@@ -309,9 +309,6 @@ static void __init at91sam9261_initialize(void) | |||
309 | at91_extern_irq = (1 << AT91SAM9261_ID_IRQ0) | (1 << AT91SAM9261_ID_IRQ1) | 309 | at91_extern_irq = (1 << AT91SAM9261_ID_IRQ0) | (1 << AT91SAM9261_ID_IRQ1) |
310 | | (1 << AT91SAM9261_ID_IRQ2); | 310 | | (1 << AT91SAM9261_ID_IRQ2); |
311 | 311 | ||
312 | /* Register the processor-specific clocks */ | ||
313 | at91sam9261_register_clocks(); | ||
314 | |||
315 | /* Register GPIO subsystem */ | 312 | /* Register GPIO subsystem */ |
316 | at91_gpio_init(at91sam9261_gpio, 3); | 313 | at91_gpio_init(at91sam9261_gpio, 3); |
317 | } | 314 | } |
@@ -361,5 +358,6 @@ static unsigned int at91sam9261_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
361 | struct at91_init_soc __initdata at91sam9261_soc = { | 358 | struct at91_init_soc __initdata at91sam9261_soc = { |
362 | .map_io = at91sam9261_map_io, | 359 | .map_io = at91sam9261_map_io, |
363 | .default_irq_priority = at91sam9261_default_irq_priority, | 360 | .default_irq_priority = at91sam9261_default_irq_priority, |
361 | .register_clocks = at91sam9261_register_clocks, | ||
364 | .init = at91sam9261_initialize, | 362 | .init = at91sam9261_initialize, |
365 | }; | 363 | }; |
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c index 3860007480b0..da13f02acf51 100644 --- a/arch/arm/mach-at91/at91sam9263.c +++ b/arch/arm/mach-at91/at91sam9263.c | |||
@@ -320,9 +320,6 @@ static void __init at91sam9263_initialize(void) | |||
320 | pm_power_off = at91sam9263_poweroff; | 320 | pm_power_off = at91sam9263_poweroff; |
321 | at91_extern_irq = (1 << AT91SAM9263_ID_IRQ0) | (1 << AT91SAM9263_ID_IRQ1); | 321 | at91_extern_irq = (1 << AT91SAM9263_ID_IRQ0) | (1 << AT91SAM9263_ID_IRQ1); |
322 | 322 | ||
323 | /* Register the processor-specific clocks */ | ||
324 | at91sam9263_register_clocks(); | ||
325 | |||
326 | /* Register GPIO subsystem */ | 323 | /* Register GPIO subsystem */ |
327 | at91_gpio_init(at91sam9263_gpio, 5); | 324 | at91_gpio_init(at91sam9263_gpio, 5); |
328 | } | 325 | } |
@@ -372,5 +369,6 @@ static unsigned int at91sam9263_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
372 | struct at91_init_soc __initdata at91sam9263_soc = { | 369 | struct at91_init_soc __initdata at91sam9263_soc = { |
373 | .map_io = at91sam9263_map_io, | 370 | .map_io = at91sam9263_map_io, |
374 | .default_irq_priority = at91sam9263_default_irq_priority, | 371 | .default_irq_priority = at91sam9263_default_irq_priority, |
372 | .register_clocks = at91sam9263_register_clocks, | ||
375 | .init = at91sam9263_initialize, | 373 | .init = at91sam9263_initialize, |
376 | }; | 374 | }; |
diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c index e48dda1e5d45..cbc06451a45f 100644 --- a/arch/arm/mach-at91/at91sam9g45.c +++ b/arch/arm/mach-at91/at91sam9g45.c | |||
@@ -336,9 +336,6 @@ static void __init at91sam9g45_initialize(void) | |||
336 | pm_power_off = at91sam9g45_poweroff; | 336 | pm_power_off = at91sam9g45_poweroff; |
337 | at91_extern_irq = (1 << AT91SAM9G45_ID_IRQ0); | 337 | at91_extern_irq = (1 << AT91SAM9G45_ID_IRQ0); |
338 | 338 | ||
339 | /* Register the processor-specific clocks */ | ||
340 | at91sam9g45_register_clocks(); | ||
341 | |||
342 | /* Register GPIO subsystem */ | 339 | /* Register GPIO subsystem */ |
343 | at91_gpio_init(at91sam9g45_gpio, 5); | 340 | at91_gpio_init(at91sam9g45_gpio, 5); |
344 | } | 341 | } |
@@ -388,5 +385,6 @@ static unsigned int at91sam9g45_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
388 | struct at91_init_soc __initdata at91sam9g45_soc = { | 385 | struct at91_init_soc __initdata at91sam9g45_soc = { |
389 | .map_io = at91sam9g45_map_io, | 386 | .map_io = at91sam9g45_map_io, |
390 | .default_irq_priority = at91sam9g45_default_irq_priority, | 387 | .default_irq_priority = at91sam9g45_default_irq_priority, |
388 | .register_clocks = at91sam9g45_register_clocks, | ||
391 | .init = at91sam9g45_initialize, | 389 | .init = at91sam9g45_initialize, |
392 | }; | 390 | }; |
diff --git a/arch/arm/mach-at91/at91sam9rl.c b/arch/arm/mach-at91/at91sam9rl.c index 53ac1a72e94e..55ee7d0a9bf4 100644 --- a/arch/arm/mach-at91/at91sam9rl.c +++ b/arch/arm/mach-at91/at91sam9rl.c | |||
@@ -306,9 +306,6 @@ static void __init at91sam9rl_initialize(void) | |||
306 | pm_power_off = at91sam9rl_poweroff; | 306 | pm_power_off = at91sam9rl_poweroff; |
307 | at91_extern_irq = (1 << AT91SAM9RL_ID_IRQ0); | 307 | at91_extern_irq = (1 << AT91SAM9RL_ID_IRQ0); |
308 | 308 | ||
309 | /* Register the processor-specific clocks */ | ||
310 | at91sam9rl_register_clocks(); | ||
311 | |||
312 | /* Register GPIO subsystem */ | 309 | /* Register GPIO subsystem */ |
313 | at91_gpio_init(at91sam9rl_gpio, 4); | 310 | at91_gpio_init(at91sam9rl_gpio, 4); |
314 | } | 311 | } |
@@ -358,5 +355,6 @@ static unsigned int at91sam9rl_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
358 | struct at91_init_soc __initdata at91sam9rl_soc = { | 355 | struct at91_init_soc __initdata at91sam9rl_soc = { |
359 | .map_io = at91sam9rl_map_io, | 356 | .map_io = at91sam9rl_map_io, |
360 | .default_irq_priority = at91sam9rl_default_irq_priority, | 357 | .default_irq_priority = at91sam9rl_default_irq_priority, |
358 | .register_clocks = at91sam9rl_register_clocks, | ||
361 | .init = at91sam9rl_initialize, | 359 | .init = at91sam9rl_initialize, |
362 | }; | 360 | }; |
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index dfbc3fa70d22..43251efd90d4 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c | |||
@@ -251,5 +251,8 @@ void __init at91_initialize(unsigned long main_clock) | |||
251 | /* Init clock subsystem */ | 251 | /* Init clock subsystem */ |
252 | at91_clock_init(main_clock); | 252 | at91_clock_init(main_clock); |
253 | 253 | ||
254 | /* Register the processor-specific clocks */ | ||
255 | at91_boot_soc.register_clocks(); | ||
256 | |||
254 | at91_boot_soc.init(); | 257 | at91_boot_soc.init(); |
255 | } | 258 | } |
diff --git a/arch/arm/mach-at91/soc.h b/arch/arm/mach-at91/soc.h index 103030ac27fd..21ed8816e6f7 100644 --- a/arch/arm/mach-at91/soc.h +++ b/arch/arm/mach-at91/soc.h | |||
@@ -7,6 +7,7 @@ | |||
7 | struct at91_init_soc { | 7 | struct at91_init_soc { |
8 | unsigned int *default_irq_priority; | 8 | unsigned int *default_irq_priority; |
9 | void (*map_io)(void); | 9 | void (*map_io)(void); |
10 | void (*register_clocks)(void); | ||
10 | void (*init)(void); | 11 | void (*init)(void); |
11 | }; | 12 | }; |
12 | 13 | ||