m68knommu: move ColdFire pit.c to its own coldfire directory
[wrt350n-kernel.git] / arch / arm / mach-msm / board-halibut.c
blob86dfb2b5261c5073fa6be44ecf726beed01c78fe
1 /* linux/arch/arm/mach-msm/board-halibut.c
3 * Copyright (C) 2007 Google, Inc.
4 * Author: Brian Swetland <swetland@google.com>
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #include <linux/kernel.h>
18 #include <linux/init.h>
19 #include <linux/platform_device.h>
20 #include <linux/input.h>
22 #include <asm/hardware.h>
23 #include <asm/mach-types.h>
24 #include <asm/mach/arch.h>
25 #include <asm/mach/map.h>
26 #include <asm/mach/flash.h>
28 #include <asm/arch/board.h>
29 #include <asm/arch/msm_iomap.h>
31 #include <asm/io.h>
32 #include <asm/delay.h>
34 #include <linux/mtd/nand.h>
35 #include <linux/mtd/partitions.h>
37 static struct resource smc91x_resources[] = {
38 [0] = {
39 .start = 0x9C004300,
40 .end = 0x9C004400,
41 .flags = IORESOURCE_MEM,
43 [1] = {
44 .start = MSM_GPIO_TO_INT(49),
45 .end = MSM_GPIO_TO_INT(49),
46 .flags = IORESOURCE_IRQ,
50 static struct platform_device smc91x_device = {
51 .name = "smc91x",
52 .id = 0,
53 .num_resources = ARRAY_SIZE(smc91x_resources),
54 .resource = smc91x_resources,
57 static void mddi0_panel_power(int on)
61 static struct msm_mddi_platform_data msm_mddi0_pdata = {
62 .panel_power = mddi0_panel_power,
63 .has_vsync_irq = 0,
66 static struct platform_device msm_mddi0_device = {
67 .name = "msm_mddi",
68 .id = 0,
69 .dev = {
70 .platform_data = &msm_mddi0_pdata
74 static struct platform_device msm_serial0_device = {
75 .name = "msm_serial",
76 .id = 0,
79 static struct platform_device *devices[] __initdata = {
80 &msm_serial0_device,
81 &msm_mddi0_device,
82 &smc91x_device,
85 extern struct sys_timer msm_timer;
87 static void __init halibut_init_irq(void)
89 msm_init_irq();
92 static void __init halibut_init(void)
94 platform_add_devices(devices, ARRAY_SIZE(devices));
95 msm_add_devices();
98 static void __init halibut_map_io(void)
100 msm_map_common_io();
103 MACHINE_START(HALIBUT, "Halibut Board (QCT SURF7200A)")
105 /* UART for LL DEBUG */
106 .phys_io = MSM_UART1_PHYS,
107 .io_pg_offst = ((MSM_UART1_BASE) >> 18) & 0xfffc,
109 .boot_params = 0x10000100,
110 .map_io = halibut_map_io,
111 .init_irq = halibut_init_irq,
112 .init_machine = halibut_init,
113 .timer = &msm_timer,
114 MACHINE_END