omap3: introduce omap3_map_io

Most OMAP3-based boards use exactly the same code for .map_io method in
the machine_desc structure.
This patch introduces omap3_map_io and updates board-* files to use it
as .map_io method.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Este commit está contenido en:
Mike Rapoport
2010-08-04 14:43:18 +03:00
cometido por Tony Lindgren
padre c573bcf96a
commit 869fef4154
Se han modificado 17 ficheros con 23 adiciones y 105 borrados

Ver fichero

@@ -484,17 +484,11 @@ static void __init overo_init(void)
"OVERO_GPIO_USBH_CPEN\n");
}
static void __init overo_map_io(void)
{
omap2_set_globals_3xxx();
omap34xx_map_common_io();
}
MACHINE_START(OVERO, "Gumstix Overo")
.phys_io = 0x48000000,
.io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
.boot_params = 0x80000100,
.map_io = overo_map_io,
.map_io = omap3_map_io,
.reserve = omap_reserve,
.init_irq = overo_init_irq,
.init_machine = overo_init,