]>
Commit | Line | Data |
---|---|---|
5b67bfba | 1 | /* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. |
a55df6ed SM |
2 | * |
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. | |
6 | * | |
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. | |
a55df6ed SM |
11 | */ |
12 | ||
5b67bfba | 13 | #include <linux/init.h> |
56e2d8a6 | 14 | #include <linux/of.h> |
2b7b9a7d | 15 | #include <linux/of_irq.h> |
56e2d8a6 | 16 | #include <linux/of_platform.h> |
a55df6ed | 17 | |
a55df6ed SM |
18 | #include <asm/mach/arch.h> |
19 | #include <asm/hardware/gic.h> | |
20 | ||
21 | #include <mach/board.h> | |
4312a7ef | 22 | #include "common.h" |
a55df6ed | 23 | |
5b67bfba | 24 | static const struct of_device_id msm_dt_gic_match[] __initconst = { |
2b7b9a7d DB |
25 | { .compatible = "qcom,msm-8660-qgic", .data = gic_of_init }, |
26 | {} | |
27 | }; | |
2b7b9a7d | 28 | |
a55df6ed SM |
29 | static void __init msm8x60_init_irq(void) |
30 | { | |
5b67bfba | 31 | of_irq_init(msm_dt_gic_match); |
a55df6ed SM |
32 | } |
33 | ||
c633c531 SG |
34 | static void __init msm8x60_init_late(void) |
35 | { | |
36 | smd_debugfs_init(); | |
37 | } | |
38 | ||
56e2d8a6 DB |
39 | static struct of_dev_auxdata msm_auxdata_lookup[] __initdata = { |
40 | {} | |
41 | }; | |
42 | ||
56e2d8a6 DB |
43 | static void __init msm8x60_dt_init(void) |
44 | { | |
56e2d8a6 DB |
45 | of_platform_populate(NULL, of_default_bus_match_table, |
46 | msm_auxdata_lookup, NULL); | |
47 | } | |
48 | ||
49 | static const char *msm8x60_fluid_match[] __initdata = { | |
50 | "qcom,msm8660-fluid", | |
51 | "qcom,msm8660-surf", | |
52 | NULL | |
53 | }; | |
56e2d8a6 | 54 | |
56e2d8a6 | 55 | DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)") |
25468fe8 | 56 | .smp = smp_ops(msm_smp_ops), |
5b67bfba | 57 | .map_io = msm_map_msm8x60_io, |
56e2d8a6 | 58 | .init_irq = msm8x60_init_irq, |
63c86c95 | 59 | .handle_irq = gic_handle_irq, |
56e2d8a6 | 60 | .init_machine = msm8x60_dt_init, |
c633c531 | 61 | .init_late = msm8x60_init_late, |
6bb27d73 | 62 | .init_time = msm_dt_timer_init, |
56e2d8a6 DB |
63 | .dt_compat = msm8x60_fluid_match, |
64 | MACHINE_END |