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>
32 #include <asm/delay.h>
34 #include <linux/mtd/nand.h>
35 #include <linux/mtd/partitions.h>
37 static struct resource smc91x_resources[] = {
41 .flags = IORESOURCE_MEM,
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 = {
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,
66 static struct platform_device msm_mddi0_device = {
70 .platform_data = &msm_mddi0_pdata
74 static struct platform_device msm_serial0_device = {
79 static struct platform_device *devices[] __initdata = {
85 extern struct sys_timer msm_timer;
87 static void __init halibut_init_irq(void)
92 static void __init halibut_init(void)
94 platform_add_devices(devices, ARRAY_SIZE(devices));
98 static void __init halibut_map_io(void)
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,