TI816X: Update common OMAP machine specific sources
[deliverable/linux.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/usb.h>
30#include <plat/board.h>
31#include <plat/common.h>
1dbae815 32
b3c6df3a
PW
33static struct omap_board_config_kernel generic_config[] = {
34};
35
3dc3bad6 36static void __init omap_generic_init_early(void)
1dbae815 37{
b3c6df3a
PW
38 omap_board_config = generic_config;
39 omap_board_config_size = ARRAY_SIZE(generic_config);
4805734b
PW
40 omap2_init_common_infrastructure();
41 omap2_init_common_devices(NULL, NULL);
1dbae815
TL
42}
43
1dbae815
TL
44static void __init omap_generic_init(void)
45{
1dbae815
TL
46 omap_serial_init();
47}
48
49static void __init omap_generic_map_io(void)
50{
6515e489
PW
51 if (cpu_is_omap242x()) {
52 omap2_set_globals_242x();
53 omap242x_map_common_io();
54 } else if (cpu_is_omap243x()) {
55 omap2_set_globals_243x();
56 omap243x_map_common_io();
57 } else if (cpu_is_omap34xx()) {
58 omap2_set_globals_3xxx();
59 omap34xx_map_common_io();
60 } else if (cpu_is_omap44xx()) {
61 omap2_set_globals_443x();
62 omap44xx_map_common_io();
63 }
1dbae815
TL
64}
65
6515e489 66/* XXX This machine entry name should be updated */
1dbae815
TL
67MACHINE_START(OMAP_GENERIC, "Generic OMAP24xx")
68 /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */
1dbae815 69 .boot_params = 0x80000100,
71ee7dad 70 .reserve = omap_reserve,
3dc3bad6
RKAL
71 .map_io = omap_generic_map_io,
72 .init_early = omap_generic_init_early,
73 .init_irq = omap_init_irq,
1dbae815
TL
74 .init_machine = omap_generic_init,
75 .timer = &omap_timer,
76MACHINE_END
This page took 0.511881 seconds and 5 git commands to generate.