diff options
author | Magnus Damm <damm@opensource.se> | 2010-05-12 10:21:34 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-19 23:07:29 -0400 |
commit | 495b3cea94135a97e919bca67d7dcfdefafc7767 (patch) | |
tree | 480e9fbe9e8d946cd837da0eec244733986939a6 /arch/arm/mach-shmobile/board-ap4evb.c | |
parent | e47bb515c57853c1f41474dae199cb033e747f66 (diff) |
ARM: mach-shmobile: sh7372 clock framework support V2
This patch is V2 of clock framework tables/code for sh7372.
MSTP are included for KEYSC, SCIF, IIC, USB, SDHI and UIO.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index d3b8ca5d4041..4d197e36270a 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <asm/mach-types.h> | 39 | #include <asm/mach-types.h> |
40 | #include <asm/mach/arch.h> | 40 | #include <asm/mach/arch.h> |
41 | #include <asm/mach/map.h> | 41 | #include <asm/mach/map.h> |
42 | #include <asm/mach/time.h> | ||
42 | 43 | ||
43 | /* | 44 | /* |
44 | * Address Interface BusWidth note | 45 | * Address Interface BusWidth note |
@@ -328,9 +329,8 @@ static void __init ap4evb_map_io(void) | |||
328 | { | 329 | { |
329 | iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc)); | 330 | iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc)); |
330 | 331 | ||
331 | /* setup early devices, clocks and console here as well */ | 332 | /* setup early devices and console here as well */ |
332 | sh7372_add_early_devices(); | 333 | sh7372_add_early_devices(); |
333 | sh7367_clock_init(); /* use g3 clocks for now */ | ||
334 | shmobile_setup_console(); | 334 | shmobile_setup_console(); |
335 | } | 335 | } |
336 | 336 | ||
@@ -419,11 +419,21 @@ static void __init ap4evb_init(void) | |||
419 | platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); | 419 | platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); |
420 | } | 420 | } |
421 | 421 | ||
422 | static void __init ap4evb_timer_init(void) | ||
423 | { | ||
424 | sh7372_clock_init(); | ||
425 | shmobile_timer.init(); | ||
426 | } | ||
427 | |||
428 | static struct sys_timer ap4evb_timer = { | ||
429 | .init = ap4evb_timer_init, | ||
430 | }; | ||
431 | |||
422 | MACHINE_START(AP4EVB, "ap4evb") | 432 | MACHINE_START(AP4EVB, "ap4evb") |
423 | .phys_io = 0xe6000000, | 433 | .phys_io = 0xe6000000, |
424 | .io_pg_offst = ((0xe6000000) >> 18) & 0xfffc, | 434 | .io_pg_offst = ((0xe6000000) >> 18) & 0xfffc, |
425 | .map_io = ap4evb_map_io, | 435 | .map_io = ap4evb_map_io, |
426 | .init_irq = sh7372_init_irq, | 436 | .init_irq = sh7372_init_irq, |
427 | .init_machine = ap4evb_init, | 437 | .init_machine = ap4evb_init, |
428 | .timer = &shmobile_timer, | 438 | .timer = &ap4evb_timer, |
429 | MACHINE_END | 439 | MACHINE_END |