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>
29 #include <asm/setup.h>
31 #include <mach/irqs.h>
32 #include <mach/board.h>
33 #include <mach/msm_iomap.h>
35 #include <linux/mtd/nand.h>
36 #include <linux/mtd/partitions.h>
41 static struct resource smc91x_resources
[] = {
45 .flags
= IORESOURCE_MEM
,
48 .start
= MSM_GPIO_TO_INT(49),
49 .end
= MSM_GPIO_TO_INT(49),
50 .flags
= IORESOURCE_IRQ
,
54 static struct platform_device smc91x_device
= {
57 .num_resources
= ARRAY_SIZE(smc91x_resources
),
58 .resource
= smc91x_resources
,
61 static struct platform_device
*devices
[] __initdata
= {
63 &msm_device_gpio_7201
,
72 static void __init
halibut_init_early(void)
74 arch_ioremap_caller
= __msm_ioremap_caller
;
77 static void __init
halibut_init_irq(void)
82 static void __init
halibut_init(void)
84 platform_add_devices(devices
, ARRAY_SIZE(devices
));
87 static void __init
halibut_fixup(struct tag
*tags
, char **cmdline
,
92 static void __init
halibut_map_io(void)
97 static void __init
halibut_init_late(void)
102 MACHINE_START(HALIBUT
, "Halibut Board (QCT SURF7200A)")
103 .atag_offset
= 0x100,
104 .fixup
= halibut_fixup
,
105 .map_io
= halibut_map_io
,
106 .init_early
= halibut_init_early
,
107 .init_irq
= halibut_init_irq
,
108 .init_machine
= halibut_init
,
109 .init_late
= halibut_init_late
,
110 .init_time
= msm7x01_timer_init
,