Stephen Boyd | 5b67bfb | 2012-09-05 12:28:55 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. |
Steve Muckle | a55df6e | 2010-01-07 12:43:24 -0800 | [diff] [blame] | 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. |
Steve Muckle | a55df6e | 2010-01-07 12:43:24 -0800 | [diff] [blame] | 11 | */ |
| 12 | |
Stephen Boyd | 5b67bfb | 2012-09-05 12:28:55 -0700 | [diff] [blame] | 13 | #include <linux/init.h> |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 14 | #include <linux/of.h> |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 15 | #include <linux/of_platform.h> |
Steve Muckle | a55df6e | 2010-01-07 12:43:24 -0800 | [diff] [blame] | 16 | |
Steve Muckle | a55df6e | 2010-01-07 12:43:24 -0800 | [diff] [blame] | 17 | #include <asm/mach/arch.h> |
Steve Muckle | a55df6e | 2010-01-07 12:43:24 -0800 | [diff] [blame] | 18 | |
| 19 | #include <mach/board.h> |
Stephen Boyd | 4312a7e | 2012-09-05 12:28:52 -0700 | [diff] [blame] | 20 | #include "common.h" |
Steve Muckle | a55df6e | 2010-01-07 12:43:24 -0800 | [diff] [blame] | 21 | |
Shawn Guo | c633c53 | 2012-05-02 15:53:20 +0800 | [diff] [blame] | 22 | static void __init msm8x60_init_late(void) |
| 23 | { |
| 24 | smd_debugfs_init(); |
| 25 | } |
| 26 | |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 27 | static struct of_dev_auxdata msm_auxdata_lookup[] __initdata = { |
| 28 | {} |
| 29 | }; |
| 30 | |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 31 | static void __init msm8x60_dt_init(void) |
| 32 | { |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 33 | of_platform_populate(NULL, of_default_bus_match_table, |
| 34 | msm_auxdata_lookup, NULL); |
| 35 | } |
| 36 | |
| 37 | static const char *msm8x60_fluid_match[] __initdata = { |
| 38 | "qcom,msm8660-fluid", |
| 39 | "qcom,msm8660-surf", |
| 40 | NULL |
| 41 | }; |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 42 | |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 43 | DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)") |
Olof Johansson | 25468fe | 2012-09-22 00:06:21 -0700 | [diff] [blame] | 44 | .smp = smp_ops(msm_smp_ops), |
Stephen Boyd | 5b67bfb | 2012-09-05 12:28:55 -0700 | [diff] [blame] | 45 | .map_io = msm_map_msm8x60_io, |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 46 | .init_machine = msm8x60_dt_init, |
Shawn Guo | c633c53 | 2012-05-02 15:53:20 +0800 | [diff] [blame] | 47 | .init_late = msm8x60_init_late, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 48 | .init_time = msm_dt_timer_init, |
David Brown | 56e2d8a | 2011-08-04 02:01:02 -0700 | [diff] [blame] | 49 | .dt_compat = msm8x60_fluid_match, |
| 50 | MACHINE_END |