fix a kmap leak in virtio_console
[linux/fpc-iii.git] / arch / arm / mach-msm / board-halibut.c
bloba77529887cbcac04a488ffccd1ae7afcbcad3e4d
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>
21 #include <linux/io.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/msm_iomap.h>
34 #include <linux/mtd/nand.h>
35 #include <linux/mtd/partitions.h>
37 #include "devices.h"
38 #include "common.h"
40 static struct resource smc91x_resources[] = {
41 [0] = {
42 .start = 0x9C004300,
43 .end = 0x9C004400,
44 .flags = IORESOURCE_MEM,
46 [1] = {
47 .start = MSM_GPIO_TO_INT(49),
48 .end = MSM_GPIO_TO_INT(49),
49 .flags = IORESOURCE_IRQ,
53 static struct platform_device smc91x_device = {
54 .name = "smc91x",
55 .id = 0,
56 .num_resources = ARRAY_SIZE(smc91x_resources),
57 .resource = smc91x_resources,
60 static struct platform_device *devices[] __initdata = {
61 &msm_clock_7x01a,
62 &msm_device_gpio_7201,
63 &msm_device_uart3,
64 &msm_device_smd,
65 &msm_device_nand,
66 &msm_device_hsusb,
67 &msm_device_i2c,
68 &smc91x_device,
71 static void __init halibut_init_early(void)
73 arch_ioremap_caller = __msm_ioremap_caller;
76 static void __init halibut_init_irq(void)
78 msm_init_irq();
81 static void __init halibut_init(void)
83 platform_add_devices(devices, ARRAY_SIZE(devices));
86 static void __init halibut_fixup(struct tag *tags, char **cmdline,
87 struct meminfo *mi)
91 static void __init halibut_map_io(void)
93 msm_map_common_io();
96 static void __init halibut_init_late(void)
98 smd_debugfs_init();
101 MACHINE_START(HALIBUT, "Halibut Board (QCT SURF7200A)")
102 .atag_offset = 0x100,
103 .fixup = halibut_fixup,
104 .map_io = halibut_map_io,
105 .init_early = halibut_init_early,
106 .init_irq = halibut_init_irq,
107 .init_machine = halibut_init,
108 .init_late = halibut_init_late,
109 .init_time = msm7x01_timer_init,
110 MACHINE_END