Stephen Boyd | c446407 | 2012-09-05 12:28:58 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. |
| 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. |
| 11 | */ |
| 12 | |
| 13 | #include <linux/init.h> |
Stephen Boyd | c446407 | 2012-09-05 12:28:58 -0700 | [diff] [blame] | 14 | #include <linux/of_platform.h> |
| 15 | |
Stephen Boyd | c446407 | 2012-09-05 12:28:58 -0700 | [diff] [blame] | 16 | #include <asm/mach/arch.h> |
Stephen Boyd | 34606f3 | 2013-07-24 13:54:29 -0700 | [diff] [blame] | 17 | #include <asm/mach/map.h> |
Stephen Boyd | c446407 | 2012-09-05 12:28:58 -0700 | [diff] [blame] | 18 | |
| 19 | #include "common.h" |
| 20 | |
Stephen Boyd | c446407 | 2012-09-05 12:28:58 -0700 | [diff] [blame] | 21 | static void __init msm_dt_init(void) |
| 22 | { |
| 23 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
| 24 | } |
| 25 | |
| 26 | static const char * const msm8960_dt_match[] __initconst = { |
| 27 | "qcom,msm8960-cdp", |
| 28 | NULL |
| 29 | }; |
| 30 | |
| 31 | DT_MACHINE_START(MSM8960_DT, "Qualcomm MSM (Flattened Device Tree)") |
Olof Johansson | 25468fe | 2012-09-22 00:06:21 -0700 | [diff] [blame] | 32 | .smp = smp_ops(msm_smp_ops), |
Stephen Boyd | c446407 | 2012-09-05 12:28:58 -0700 | [diff] [blame] | 33 | .init_machine = msm_dt_init, |
| 34 | .dt_compat = msm8960_dt_match, |
Stephen Boyd | c446407 | 2012-09-05 12:28:58 -0700 | [diff] [blame] | 35 | MACHINE_END |