diff options
author | Magnus Damm <damm@opensource.se> | 2012-02-29 07:37:19 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-03-12 17:19:41 -0400 |
commit | 5d7220ec000fe357b8e91b4be66a2b0b061c867f (patch) | |
tree | 0560e35b6a22d32e0d877d54eae79b317a277c90 /arch/arm/mach-shmobile/board-mackerel.c | |
parent | bfc46f3ef838ab3c01f5e240ec43afaf59f7061b (diff) |
ARM: mach-shmobile: sh7372 map_io and init_early update
Update the sh7372 SoC and the AP4EVB and Mackerel boards to make use
of the functions sh7372_map_io() and sh7372_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-mackerel.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index a2813247b455..de51c07b8686 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -58,7 +58,6 @@ | |||
58 | 58 | ||
59 | #include <asm/mach/arch.h> | 59 | #include <asm/mach/arch.h> |
60 | #include <asm/mach/time.h> | 60 | #include <asm/mach/time.h> |
61 | #include <asm/mach/map.h> | ||
62 | #include <asm/mach-types.h> | 61 | #include <asm/mach-types.h> |
63 | 62 | ||
64 | /* | 63 | /* |
@@ -1337,27 +1336,6 @@ static struct i2c_board_info i2c1_devices[] = { | |||
1337 | }, | 1336 | }, |
1338 | }; | 1337 | }; |
1339 | 1338 | ||
1340 | static struct map_desc mackerel_io_desc[] __initdata = { | ||
1341 | /* create a 1:1 entity map for 0xe6xxxxxx | ||
1342 | * used by CPGA, INTC and PFC. | ||
1343 | */ | ||
1344 | { | ||
1345 | .virtual = 0xe6000000, | ||
1346 | .pfn = __phys_to_pfn(0xe6000000), | ||
1347 | .length = 256 << 20, | ||
1348 | .type = MT_DEVICE_NONSHARED | ||
1349 | }, | ||
1350 | }; | ||
1351 | |||
1352 | static void __init mackerel_map_io(void) | ||
1353 | { | ||
1354 | iotable_init(mackerel_io_desc, ARRAY_SIZE(mackerel_io_desc)); | ||
1355 | |||
1356 | /* setup early devices and console here as well */ | ||
1357 | sh7372_add_early_devices(); | ||
1358 | shmobile_setup_console(); | ||
1359 | } | ||
1360 | |||
1361 | #define GPIO_PORT9CR 0xE6051009 | 1339 | #define GPIO_PORT9CR 0xE6051009 |
1362 | #define GPIO_PORT10CR 0xE605100A | 1340 | #define GPIO_PORT10CR 0xE605100A |
1363 | #define GPIO_PORT167CR 0xE60520A7 | 1341 | #define GPIO_PORT167CR 0xE60520A7 |
@@ -1587,7 +1565,8 @@ static struct sys_timer mackerel_timer = { | |||
1587 | }; | 1565 | }; |
1588 | 1566 | ||
1589 | MACHINE_START(MACKEREL, "mackerel") | 1567 | MACHINE_START(MACKEREL, "mackerel") |
1590 | .map_io = mackerel_map_io, | 1568 | .map_io = sh7372_map_io, |
1569 | .init_early = sh7372_add_early_devices, | ||
1591 | .init_irq = sh7372_init_irq, | 1570 | .init_irq = sh7372_init_irq, |
1592 | .handle_irq = shmobile_handle_irq_intc, | 1571 | .handle_irq = shmobile_handle_irq_intc, |
1593 | .init_machine = mackerel_init, | 1572 | .init_machine = mackerel_init, |