diff options
author | Magnus Damm <damm@opensource.se> | 2012-02-29 07:37:27 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-03-12 17:19:41 -0400 |
commit | 50e15c34f0072324fee9faaae71b129e8b419913 (patch) | |
tree | d545b7300c87a360dfada7ee07a84cd8e2c93902 /arch/arm/mach-shmobile/board-ag5evm.c | |
parent | 5d7220ec000fe357b8e91b4be66a2b0b061c867f (diff) |
ARM: mach-shmobile: sh73a0 map_io and init_early update
Update the sh73a0 SoC and the AG5EVM and Kota2 boards to make use
of the functions sh73a0_map_io() and sh73a0_add_early_devices().
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/board-ag5evm.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ag5evm.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c index 068b754bc348..cd894a200d52 100644 --- a/arch/arm/mach-shmobile/board-ag5evm.c +++ b/arch/arm/mach-shmobile/board-ag5evm.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <mach/common.h> | 46 | #include <mach/common.h> |
47 | #include <asm/mach-types.h> | 47 | #include <asm/mach-types.h> |
48 | #include <asm/mach/arch.h> | 48 | #include <asm/mach/arch.h> |
49 | #include <asm/mach/map.h> | ||
50 | #include <asm/mach/time.h> | 49 | #include <asm/mach/time.h> |
51 | #include <asm/hardware/gic.h> | 50 | #include <asm/hardware/gic.h> |
52 | #include <asm/hardware/cache-l2x0.h> | 51 | #include <asm/hardware/cache-l2x0.h> |
@@ -486,27 +485,6 @@ static struct platform_device *ag5evm_devices[] __initdata = { | |||
486 | &sdhi1_device, | 485 | &sdhi1_device, |
487 | }; | 486 | }; |
488 | 487 | ||
489 | static struct map_desc ag5evm_io_desc[] __initdata = { | ||
490 | /* create a 1:1 entity map for 0xe6xxxxxx | ||
491 | * used by CPGA, INTC and PFC. | ||
492 | */ | ||
493 | { | ||
494 | .virtual = 0xe6000000, | ||
495 | .pfn = __phys_to_pfn(0xe6000000), | ||
496 | .length = 256 << 20, | ||
497 | .type = MT_DEVICE_NONSHARED | ||
498 | }, | ||
499 | }; | ||
500 | |||
501 | static void __init ag5evm_map_io(void) | ||
502 | { | ||
503 | iotable_init(ag5evm_io_desc, ARRAY_SIZE(ag5evm_io_desc)); | ||
504 | |||
505 | /* setup early devices and console here as well */ | ||
506 | sh73a0_add_early_devices(); | ||
507 | shmobile_setup_console(); | ||
508 | } | ||
509 | |||
510 | static void __init ag5evm_init(void) | 488 | static void __init ag5evm_init(void) |
511 | { | 489 | { |
512 | sh73a0_pinmux_init(); | 490 | sh73a0_pinmux_init(); |
@@ -634,7 +612,8 @@ struct sys_timer ag5evm_timer = { | |||
634 | }; | 612 | }; |
635 | 613 | ||
636 | MACHINE_START(AG5EVM, "ag5evm") | 614 | MACHINE_START(AG5EVM, "ag5evm") |
637 | .map_io = ag5evm_map_io, | 615 | .map_io = sh73a0_map_io, |
616 | .init_early = sh73a0_add_early_devices, | ||
638 | .nr_irqs = NR_IRQS_LEGACY, | 617 | .nr_irqs = NR_IRQS_LEGACY, |
639 | .init_irq = sh73a0_init_irq, | 618 | .init_irq = sh73a0_init_irq, |
640 | .handle_irq = gic_handle_irq, | 619 | .handle_irq = gic_handle_irq, |