aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-ap4evb.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2012-02-29 07:37:19 -0500
committerRafael J. Wysocki <rjw@sisk.pl>2012-03-12 17:19:41 -0400
commit5d7220ec000fe357b8e91b4be66a2b0b061c867f (patch)
tree0560e35b6a22d32e0d877d54eae79b317a277c90 /arch/arm/mach-shmobile/board-ap4evb.c
parentbfc46f3ef838ab3c01f5e240ec43afaf59f7061b (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-ap4evb.c')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index eeb4d9664584..c57ded14607c 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -61,7 +61,6 @@
61 61
62#include <asm/mach-types.h> 62#include <asm/mach-types.h>
63#include <asm/mach/arch.h> 63#include <asm/mach/arch.h>
64#include <asm/mach/map.h>
65#include <asm/mach/time.h> 64#include <asm/mach/time.h>
66#include <asm/setup.h> 65#include <asm/setup.h>
67 66
@@ -1190,27 +1189,6 @@ static struct i2c_board_info i2c1_devices[] = {
1190 }, 1189 },
1191}; 1190};
1192 1191
1193static struct map_desc ap4evb_io_desc[] __initdata = {
1194 /* create a 1:1 entity map for 0xe6xxxxxx
1195 * used by CPGA, INTC and PFC.
1196 */
1197 {
1198 .virtual = 0xe6000000,
1199 .pfn = __phys_to_pfn(0xe6000000),
1200 .length = 256 << 20,
1201 .type = MT_DEVICE_NONSHARED
1202 },
1203};
1204
1205static void __init ap4evb_map_io(void)
1206{
1207 iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc));
1208
1209 /* setup early devices and console here as well */
1210 sh7372_add_early_devices();
1211 shmobile_setup_console();
1212}
1213
1214#define GPIO_PORT9CR 0xE6051009 1192#define GPIO_PORT9CR 0xE6051009
1215#define GPIO_PORT10CR 0xE605100A 1193#define GPIO_PORT10CR 0xE605100A
1216#define USCCR1 0xE6058144 1194#define USCCR1 0xE6058144
@@ -1469,7 +1447,8 @@ static struct sys_timer ap4evb_timer = {
1469}; 1447};
1470 1448
1471MACHINE_START(AP4EVB, "ap4evb") 1449MACHINE_START(AP4EVB, "ap4evb")
1472 .map_io = ap4evb_map_io, 1450 .map_io = sh7372_map_io,
1451 .init_early = sh7372_add_early_devices,
1473 .init_irq = sh7372_init_irq, 1452 .init_irq = sh7372_init_irq,
1474 .handle_irq = shmobile_handle_irq_intc, 1453 .handle_irq = shmobile_handle_irq_intc,
1475 .init_machine = ap4evb_init, 1454 .init_machine = ap4evb_init,