blob: 31d485b6859fdc0d61f329347d98466a35d5be50 [file] [log] [blame]
Vikram Pandita577145f2009-05-28 14:04:04 -07001/*
2 * Copyright (C) 2009 Texas Instruments Inc.
3 * Mikkel Christensen <mlc@ti.com>
4 *
5 * Modified from mach-omap2/board-ldp.c
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#include <linux/kernel.h>
13#include <linux/init.h>
14#include <linux/platform_device.h>
Vikram Pandita70ac51a2009-08-28 11:24:13 -070015#include <linux/input.h>
Vikram Pandita577145f2009-05-28 14:04:04 -070016#include <linux/gpio.h>
Vikram Pandita577145f2009-05-28 14:04:04 -070017
18#include <asm/mach-types.h>
19#include <asm/mach/arch.h>
20
Tony Lindgrence491cf2009-10-20 09:40:47 -070021#include <plat/common.h>
vikram pandita479f12c2009-11-22 10:11:30 -080022#include <plat/board.h>
Vikram Pandita577145f2009-05-28 14:04:04 -070023
Teerth Reddy02563a52009-10-14 09:56:35 -070024#include "sdram-micron-mt46h32m32lf-6.h"
Vikram Pandita577145f2009-05-28 14:04:04 -070025
Paul Walmsleyb3c6df32009-09-03 20:14:02 +030026static void __init omap_zoom2_init_irq(void)
27{
Teerth Reddy02563a52009-10-14 09:56:35 -070028 omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
29 mt46h32m32lf6_sdrc_params);
Paul Walmsleyb3c6df32009-09-03 20:14:02 +030030 omap_init_irq();
31 omap_gpio_init();
32}
33
vikram pandita479f12c2009-11-22 10:11:30 -080034/* REVISIT: These audio entries can be removed once MFD code is merged */
35#if 0
Vikram Pandita70ac51a2009-08-28 11:24:13 -070036
37static struct twl4030_madc_platform_data zoom2_madc_data = {
38 .irq_line = 1,
Vikram Pandita577145f2009-05-28 14:04:04 -070039};
40
41static struct twl4030_platform_data zoom2_twldata = {
42 .irq_base = TWL4030_IRQ_BASE,
43 .irq_end = TWL4030_IRQ_END,
44
45 /* platform_data for children goes here */
Vikram Pandita70ac51a2009-08-28 11:24:13 -070046 .bci = &zoom2_bci_data,
47 .madc = &zoom2_madc_data,
48 .usb = &zoom2_usb_data,
Vikram Pandita577145f2009-05-28 14:04:04 -070049 .gpio = &zoom2_gpio_data,
Vikram Pandita70ac51a2009-08-28 11:24:13 -070050 .keypad = &zoom2_kp_twl4030_data,
51 .vmmc1 = &zoom2_vmmc1,
52 .vmmc2 = &zoom2_vmmc2,
53 .vsim = &zoom2_vsim,
54
Vikram Pandita577145f2009-05-28 14:04:04 -070055};
56
vikram pandita479f12c2009-11-22 10:11:30 -080057#endif
Vikram Pandita577145f2009-05-28 14:04:04 -070058
Vikram Pandita577145f2009-05-28 14:04:04 -070059extern int __init omap_zoom2_debugboard_init(void);
vikram pandita479f12c2009-11-22 10:11:30 -080060extern void __init zoom_peripherals_init(void);
Vikram Pandita577145f2009-05-28 14:04:04 -070061
62static void __init omap_zoom2_init(void)
63{
vikram pandita479f12c2009-11-22 10:11:30 -080064 zoom_peripherals_init();
Vikram Pandita577145f2009-05-28 14:04:04 -070065 omap_zoom2_debugboard_init();
Vikram Pandita577145f2009-05-28 14:04:04 -070066}
67
68static void __init omap_zoom2_map_io(void)
69{
70 omap2_set_globals_343x();
71 omap2_map_common_io();
72}
73
74MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board")
75 .phys_io = 0x48000000,
Santosh Shilimkarb4224b22009-10-19 17:25:55 -070076 .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
Vikram Pandita577145f2009-05-28 14:04:04 -070077 .boot_params = 0x80000100,
78 .map_io = omap_zoom2_map_io,
79 .init_irq = omap_zoom2_init_irq,
80 .init_machine = omap_zoom2_init,
81 .timer = &omap_timer,
82MACHINE_END