drm/i915|intel-gtt: consolidate intel-gtt.h headers
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / mach-msm / board-mahimahi.c
blobef3ebf2f763be9c660554f4c6189aa67028a2ea0
1 /* linux/arch/arm/mach-msm/board-mahimahi.c
3 * Copyright (C) 2009 Google, Inc.
4 * Copyright (C) 2009 HTC Corporation.
5 * Author: Dima Zavin <dima@android.com>
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
18 #include <linux/delay.h>
19 #include <linux/gpio.h>
20 #include <linux/init.h>
21 #include <linux/input.h>
22 #include <linux/io.h>
23 #include <linux/kernel.h>
24 #include <linux/platform_device.h>
26 #include <asm/mach-types.h>
27 #include <asm/mach/arch.h>
28 #include <asm/mach/map.h>
29 #include <asm/setup.h>
31 #include <mach/board.h>
32 #include <mach/hardware.h>
33 #include <mach/system.h>
35 #include "board-mahimahi.h"
36 #include "devices.h"
37 #include "proc_comm.h"
39 static uint debug_uart;
41 module_param_named(debug_uart, debug_uart, uint, 0);
43 static struct platform_device *devices[] __initdata = {
44 #if !defined(CONFIG_MSM_SERIAL_DEBUGGER)
45 &msm_device_uart1,
46 #endif
47 &msm_device_uart_dm1,
48 &msm_device_nand,
51 static void __init mahimahi_init(void)
53 platform_add_devices(devices, ARRAY_SIZE(devices));
56 static void __init mahimahi_fixup(struct machine_desc *desc, struct tag *tags,
57 char **cmdline, struct meminfo *mi)
59 mi->nr_banks = 2;
60 mi->bank[0].start = PHYS_OFFSET;
61 mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET);
62 mi->bank[0].size = (219*1024*1024);
63 mi->bank[1].start = MSM_HIGHMEM_BASE;
64 mi->bank[1].node = PHYS_TO_NID(MSM_HIGHMEM_BASE);
65 mi->bank[1].size = MSM_HIGHMEM_SIZE;
68 static void __init mahimahi_map_io(void)
70 msm_map_common_io();
71 msm_clock_init();
74 extern struct sys_timer msm_timer;
76 MACHINE_START(MAHIMAHI, "mahimahi")
77 #ifdef CONFIG_MSM_DEBUG_UART
78 #endif
79 .boot_params = 0x20000100,
80 .fixup = mahimahi_fixup,
81 .map_io = mahimahi_map_io,
82 .init_irq = msm_init_irq,
83 .init_machine = mahimahi_init,
84 .timer = &msm_timer,
85 MACHINE_END