1 /* Copyright (c) 2008-2009, Code Aurora Forum. All rights reserved.
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 #include <linux/kernel.h>
19 #include <linux/irq.h>
20 #include <linux/gpio.h>
21 #include <linux/platform_device.h>
22 #include <linux/delay.h>
24 #include <asm/mach-types.h>
25 #include <asm/mach/arch.h>
27 #include <asm/setup.h>
29 #include <mach/board.h>
30 #include <mach/irqs.h>
31 #include <mach/sirc.h>
32 #include <mach/gpio.h>
36 extern struct sys_timer msm_timer;
38 static struct platform_device *devices[] __initdata = {
42 static void __init qsd8x50_map_io(void)
45 msm_clock_init(msm_clocks_8x50, msm_num_clocks_8x50);
48 static void __init qsd8x50_init_irq(void)
54 static void __init qsd8x50_init(void)
56 platform_add_devices(devices, ARRAY_SIZE(devices));
59 MACHINE_START(QSD8X50_SURF, "QCT QSD8X50 SURF")
60 #ifdef CONFIG_MSM_DEBUG_UART
61 .phys_io = MSM_DEBUG_UART_PHYS,
62 .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc,
64 .boot_params = PHYS_OFFSET + 0x100,
65 .map_io = qsd8x50_map_io,
66 .init_irq = qsd8x50_init_irq,
67 .init_machine = qsd8x50_init,
71 MACHINE_START(QSD8X50A_ST1_5, "QCT QSD8X50A ST1.5")
72 #ifdef CONFIG_MSM_DEBUG_UART
73 .phys_io = MSM_DEBUG_UART_PHYS,
74 .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc,
76 .boot_params = PHYS_OFFSET + 0x100,
77 .map_io = qsd8x50_map_io,
78 .init_irq = qsd8x50_init_irq,
79 .init_machine = qsd8x50_init,