2 * linux/arch/arm/mach-omap/generic.c
4 * Modified from innovator.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/arch.h>
22 #include <asm/mach/map.h>
24 #include <asm/arch/clocks.h>
25 #include <asm/arch/gpio.h>
26 #include <asm/arch/mux.h>
30 static void __init omap_generic_init_irq(void)
36 * Muxes the serial ports on
38 static void __init omap_early_serial_init(void)
40 omap_cfg_reg(UART1_TX);
41 omap_cfg_reg(UART1_RTS);
43 omap_cfg_reg(UART2_TX);
44 omap_cfg_reg(UART2_RTS);
46 omap_cfg_reg(UART3_TX);
47 omap_cfg_reg(UART3_RX);
50 static void __init omap_generic_init(void)
52 if (!machine_is_omap_generic())
56 * Make sure the serial ports are muxed on at this point.
57 * You have to mux them off in device drivers later on
60 if (cpu_is_omap1510()) {
61 omap_early_serial_init();
65 static void __init omap_generic_map_io(void)
70 MACHINE_START(OMAP_GENERIC, "Generic OMAP-1510/1610")
71 MAINTAINER("Tony Lindgren <tony@atomide.com>")
72 BOOT_MEM(0x10000000, 0xe0000000, 0xe0000000)
73 BOOT_PARAMS(0x10000100)
74 MAPIO(omap_generic_map_io)
75 INITIRQ(omap_generic_init_irq)
76 INIT_MACHINE(omap_generic_init)