blob: 781ed2558e122e0e71ed0379d34b428b95eb792c [file] [log] [blame]
Srinath1cb125c2010-11-16 14:26:58 -08001/*
2 * Support for AM3517/05 Craneboard
3 * http://www.mistralsolutions.com/products/craneboard.php
4 *
5 * Copyright (C) 2010 Mistral Solutions Pvt Ltd. <www.mistralsolutions.com>
6 * Author: R.Srinath <srinath@mistralsolutions.com>
7 *
8 * Based on mach-omap2/board-am3517evm.c
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the
12 * Free Software Foundation version 2.
13 *
14 * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind,
15 * whether express or implied; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 */
19
20#include <linux/kernel.h>
21#include <linux/init.h>
Srinath1cb125c2010-11-16 14:26:58 -080022
23#include <mach/hardware.h>
24#include <asm/mach-types.h>
25#include <asm/mach/arch.h>
26#include <asm/mach/map.h>
27
28#include <plat/board.h>
29#include <plat/common.h>
30
31#include "mux.h"
32
33/* Board initialization */
34static struct omap_board_config_kernel am3517_crane_config[] __initdata = {
35};
36
37#ifdef CONFIG_OMAP_MUX
38static struct omap_board_mux board_mux[] __initdata = {
39 { .reg_offset = OMAP_MUX_TERMINATOR },
40};
41#else
42#define board_mux NULL
43#endif
44
45static void __init am3517_crane_init_irq(void)
46{
47 omap_board_config = am3517_crane_config;
48 omap_board_config_size = ARRAY_SIZE(am3517_crane_config);
49
Paul Walmsley48057342010-12-21 15:25:10 -070050 omap2_init_common_infrastructure();
51 omap2_init_common_devices(NULL, NULL);
Srinath1cb125c2010-11-16 14:26:58 -080052 omap_init_irq();
Srinath1cb125c2010-11-16 14:26:58 -080053}
54
55static void __init am3517_crane_init(void)
56{
57 omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
58 omap_serial_init();
59}
60
61MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD")
62 .boot_params = 0x80000100,
63 .map_io = omap3_map_io,
64 .reserve = omap_reserve,
65 .init_irq = am3517_crane_init_irq,
66 .init_machine = am3517_crane_init,
67 .timer = &omap_timer,
68MACHINE_END