Merge branch 'next' of git://git.secretlab.ca/git/linux-2.6
[linux-2.6-block.git] / arch / arm / mach-omap2 / board-generic.c
CommitLineData
1dbae815 1/*
f30c2269 2 * linux/arch/arm/mach-omap2/board-generic.c
1dbae815
TL
3 *
4 * Copyright (C) 2005 Nokia Corporation
5 * Author: Paul Mundt <paul.mundt@nokia.com>
6 *
7 * Modified from mach-omap/omap1/board-generic.c
8 *
9 * Code for generic OMAP2 board. Should work on many OMAP2 systems where
10 * the bootloader passes the board-specific data to the kernel.
11 * Do not put any board specific code to this file; create a new machine
12 * type if you need custom low-level initializations.
13 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2 as
16 * published by the Free Software Foundation.
17 */
18
19#include <linux/kernel.h>
20#include <linux/init.h>
21#include <linux/device.h>
22
a09e64fb 23#include <mach/hardware.h>
1dbae815
TL
24#include <asm/mach-types.h>
25#include <asm/mach/arch.h>
26#include <asm/mach/map.h>
27
a09e64fb 28#include <mach/gpio.h>
ce491cf8
TL
29#include <plat/mux.h>
30#include <plat/usb.h>
31#include <plat/board.h>
32#include <plat/common.h>
1dbae815 33
b3c6df3a
PW
34static struct omap_board_config_kernel generic_config[] = {
35};
36
1dbae815
TL
37static void __init omap_generic_init_irq(void)
38{
b3c6df3a
PW
39 omap_board_config = generic_config;
40 omap_board_config_size = ARRAY_SIZE(generic_config);
58cda884 41 omap2_init_common_hw(NULL, NULL);
1dbae815
TL
42 omap_init_irq();
43}
44
1dbae815
TL
45static void __init omap_generic_init(void)
46{
1dbae815
TL
47 omap_serial_init();
48}
49
50static void __init omap_generic_map_io(void)
51{
c8d2eb8e 52 omap2_set_globals_242x(); /* should be 242x, 243x, or 343x */
18f49ea2 53 omap2_map_common_io();
1dbae815
TL
54}
55
56MACHINE_START(OMAP_GENERIC, "Generic OMAP24xx")
57 /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */
1dbae815 58 .phys_io = 0x48000000,
b4224b23 59 .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
1dbae815
TL
60 .boot_params = 0x80000100,
61 .map_io = omap_generic_map_io,
62 .init_irq = omap_generic_init_irq,
63 .init_machine = omap_generic_init,
64 .timer = &omap_timer,
65MACHINE_END