blob: a9fe9181b01089ad06fa53682189c1620059c31e [file] [log] [blame]
vikram pandita5f35fbe2009-11-22 10:11:32 -08001/*
2 * Copyright (C) 2009 Texas Instruments Inc.
3 *
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
9
10#include <linux/kernel.h>
11#include <linux/init.h>
12#include <linux/platform_device.h>
13#include <linux/input.h>
14#include <linux/gpio.h>
15
16#include <asm/mach-types.h>
17#include <asm/mach/arch.h>
18
19#include <mach/board-zoom.h>
20
21#include <plat/common.h>
22#include <plat/board.h>
23
Tony Lindgren662c8b52009-12-11 16:16:33 -080024#include "mux.h"
vikram pandita5f35fbe2009-11-22 10:11:32 -080025#include "sdram-hynix-h8mbx00u0mer-0em.h"
26
27static void __init omap_zoom_map_io(void)
28{
29 omap2_set_globals_343x();
30 omap2_map_common_io();
31}
32
33static struct omap_board_config_kernel zoom_config[] __initdata = {
34};
35
36static void __init omap_zoom_init_irq(void)
37{
38 omap_board_config = zoom_config;
39 omap_board_config_size = ARRAY_SIZE(zoom_config);
40 omap2_init_common_hw(h8mbx00u0mer0em_sdrc_params,
41 h8mbx00u0mer0em_sdrc_params);
42 omap_init_irq();
43 omap_gpio_init();
44}
45
Tony Lindgren662c8b52009-12-11 16:16:33 -080046#ifdef CONFIG_OMAP_MUX
47static struct omap_board_mux board_mux[] __initdata = {
48 { .reg_offset = OMAP_MUX_TERMINATOR },
49};
50#else
51#define board_mux NULL
52#endif
53
vikram pandita5f35fbe2009-11-22 10:11:32 -080054static void __init omap_zoom_init(void)
55{
Tony Lindgren662c8b52009-12-11 16:16:33 -080056 omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
vikram pandita5f35fbe2009-11-22 10:11:32 -080057 zoom_peripherals_init();
58 zoom_debugboard_init();
59}
60
61MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board")
62 .phys_io = 0x48000000,
63 .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
64 .boot_params = 0x80000100,
65 .map_io = omap_zoom_map_io,
66 .init_irq = omap_zoom_init_irq,
67 .init_machine = omap_zoom_init,
68 .timer = &omap_timer,
69MACHINE_END