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 <linux/delay.h>
24 #include <mach/hardware.h>
25 #include <asm/mach-types.h>
26 #include <asm/mach/arch.h>
27 #include <asm/mach/map.h>
28 #include <asm/mach/flash.h>
30 #include <mach/board.h>
31 #include <mach/msm_iomap.h>
33 #include <linux/mtd/nand.h>
34 #include <linux/mtd/partitions.h>
36 static struct resource smc91x_resources[] = {
40 .flags = IORESOURCE_MEM,
43 .start = MSM_GPIO_TO_INT(49),
44 .end = MSM_GPIO_TO_INT(49),
45 .flags = IORESOURCE_IRQ,
49 static struct platform_device smc91x_device = {
52 .num_resources = ARRAY_SIZE(smc91x_resources),
53 .resource = smc91x_resources,
56 static void mddi0_panel_power(int on)
60 static struct msm_mddi_platform_data msm_mddi0_pdata = {
61 .panel_power = mddi0_panel_power,
65 static struct platform_device msm_mddi0_device = {
69 .platform_data = &msm_mddi0_pdata
73 static struct platform_device msm_serial0_device = {
78 static struct platform_device *devices[] __initdata = {
84 extern struct sys_timer msm_timer;
86 static void __init halibut_init_irq(void)
91 static void __init halibut_init(void)
93 platform_add_devices(devices, ARRAY_SIZE(devices));
97 static void __init halibut_map_io(void)
102 MACHINE_START(HALIBUT, "Halibut Board (QCT SURF7200A)")
104 /* UART for LL DEBUG */
105 .phys_io = MSM_UART1_PHYS,
106 .io_pg_offst = ((MSM_UART1_BASE) >> 18) & 0xfffc,
108 .boot_params = 0x10000100,
109 .map_io = halibut_map_io,
110 .init_irq = halibut_init_irq,
111 .init_machine = halibut_init,