2 * linux/arch/arm/mach-omap/board-generic.c
4 * Modified from board-innovator1510.c
6 * Code for generic OMAP board. Should work on many OMAP systems where
7 * the device drivers take care of all the necessary hardware initialization.
8 * Do not put any board specific code to this file; create a new machine
9 * type if you need custom low-level initializations.
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
16 #include <linux/kernel.h>
17 #include <linux/init.h>
18 #include <linux/device.h>
20 #include <asm/hardware.h>
21 #include <asm/mach-types.h>
22 #include <asm/mach/arch.h>
23 #include <asm/mach/map.h>
25 #include <asm/arch/clocks.h>
26 #include <asm/arch/gpio.h>
27 #include <asm/arch/mux.h>
31 static void __init omap_generic_init_irq(void)
37 * Muxes the serial ports on
39 static void __init omap_early_serial_init(void)
41 omap_cfg_reg(UART1_TX);
42 omap_cfg_reg(UART1_RTS);
44 omap_cfg_reg(UART2_TX);
45 omap_cfg_reg(UART2_RTS);
47 omap_cfg_reg(UART3_TX);
48 omap_cfg_reg(UART3_RX);
51 static void __init omap_generic_init(void)
54 * Make sure the serial ports are muxed on at this point.
55 * You have to mux them off in device drivers later on
58 if (cpu_is_omap1510()) {
59 omap_early_serial_init();
63 static void __init omap_generic_map_io(void)
68 MACHINE_START(OMAP_GENERIC, "Generic OMAP-1510/1610/1710")
69 MAINTAINER("Tony Lindgren <tony@atomide.com>")
70 BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000)
71 BOOT_PARAMS(0x10000100)
72 MAPIO(omap_generic_map_io)
73 INITIRQ(omap_generic_init_irq)
74 INIT_MACHINE(omap_generic_init)