]> git.karo-electronics.de Git - mv-sheeva.git/blob - arch/arm/mach-omap2/board-zoom2.c
Merge branches 'slab/fixes', 'slab/kmemleak', 'slub/perf' and 'slub/stats' into for...
[mv-sheeva.git] / arch / arm / mach-omap2 / board-zoom2.c
1 /*
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>
15 #include <linux/input.h>
16 #include <linux/gpio.h>
17
18 #include <asm/mach-types.h>
19 #include <asm/mach/arch.h>
20
21 #include <plat/common.h>
22 #include <plat/board.h>
23
24 #include <mach/board-zoom.h>
25
26 #include "sdram-micron-mt46h32m32lf-6.h"
27
28 static void __init omap_zoom2_init_irq(void)
29 {
30         omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
31                                  mt46h32m32lf6_sdrc_params);
32         omap_init_irq();
33         omap_gpio_init();
34 }
35
36 /* REVISIT: These audio entries can be removed once MFD code is merged */
37 #if 0
38
39 static struct twl4030_madc_platform_data zoom2_madc_data = {
40         .irq_line       = 1,
41 };
42
43 static struct twl4030_codec_audio_data zoom2_audio_data = {
44         .audio_mclk = 26000000,
45 };
46
47 static struct twl4030_codec_data zoom2_codec_data = {
48         .audio_mclk = 26000000,
49         .audio = &zoom2_audio_data,
50 };
51
52 static struct twl4030_platform_data zoom2_twldata = {
53         .irq_base       = TWL4030_IRQ_BASE,
54         .irq_end        = TWL4030_IRQ_END,
55
56         /* platform_data for children goes here */
57         .bci            = &zoom2_bci_data,
58         .madc           = &zoom2_madc_data,
59         .usb            = &zoom2_usb_data,
60         .gpio           = &zoom2_gpio_data,
61         .keypad         = &zoom2_kp_twl4030_data,
62         .codec          = &zoom2_codec_data,
63         .vmmc1          = &zoom2_vmmc1,
64         .vmmc2          = &zoom2_vmmc2,
65         .vsim           = &zoom2_vsim,
66
67 };
68
69 #endif
70
71 static void __init omap_zoom2_init(void)
72 {
73         zoom_peripherals_init();
74         zoom_debugboard_init();
75 }
76
77 static void __init omap_zoom2_map_io(void)
78 {
79         omap2_set_globals_343x();
80         omap2_map_common_io();
81 }
82
83 MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board")
84         .phys_io        = 0x48000000,
85         .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,
86         .boot_params    = 0x80000100,
87         .map_io         = omap_zoom2_map_io,
88         .init_irq       = omap_zoom2_init_irq,
89         .init_machine   = omap_zoom2_init,
90         .timer          = &omap_timer,
91 MACHINE_END