Merge branch 'multiplatform/smp_ops' into next/multiplatform
[linux-2.6.git] / arch / arm / mach-msm / board-dt-8660.c
blobe5643f629dcd88cb6d0ff773ce0596fb638ef9e1
1 /* Copyright (c) 2010-2012, The Linux Foundation. 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.
13 #include <linux/init.h>
14 #include <linux/of.h>
15 #include <linux/of_irq.h>
16 #include <linux/of_platform.h>
18 #include <asm/mach/arch.h>
19 #include <asm/hardware/gic.h>
21 #include <mach/board.h>
22 #include "common.h"
23 #include "core.h"
25 static const struct of_device_id msm_dt_gic_match[] __initconst = {
26 { .compatible = "qcom,msm-8660-qgic", .data = gic_of_init },
30 static void __init msm8x60_init_irq(void)
32 of_irq_init(msm_dt_gic_match);
35 static void __init msm8x60_init_late(void)
37 smd_debugfs_init();
40 static struct of_dev_auxdata msm_auxdata_lookup[] __initdata = {
44 static void __init msm8x60_dt_init(void)
46 of_platform_populate(NULL, of_default_bus_match_table,
47 msm_auxdata_lookup, NULL);
50 static const char *msm8x60_fluid_match[] __initdata = {
51 "qcom,msm8660-fluid",
52 "qcom,msm8660-surf",
53 NULL
56 DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)")
57 .smp = smp_ops(msm_smp_ops),
58 .map_io = msm_map_msm8x60_io,
59 .init_irq = msm8x60_init_irq,
60 .handle_irq = gic_handle_irq,
61 .init_machine = msm8x60_dt_init,
62 .init_late = msm8x60_init_late,
63 .timer = &msm_dt_timer,
64 .dt_compat = msm8x60_fluid_match,
65 MACHINE_END