blob: 492f5cd87b0a74d7ba3fd02545adf7a7297f656b [file] [log] [blame]
Stephen Boyd5b67bfb2012-09-05 12:28:55 -07001/* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
Steve Mucklea55df6e2010-01-07 12:43:24 -08002 *
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 Mucklea55df6e2010-01-07 12:43:24 -080011 */
12
Stephen Boyd5b67bfb2012-09-05 12:28:55 -070013#include <linux/init.h>
David Brown56e2d8a2011-08-04 02:01:02 -070014#include <linux/of.h>
David Brown56e2d8a2011-08-04 02:01:02 -070015#include <linux/of_platform.h>
Steve Mucklea55df6e2010-01-07 12:43:24 -080016
Steve Mucklea55df6e2010-01-07 12:43:24 -080017#include <asm/mach/arch.h>
Steve Mucklea55df6e2010-01-07 12:43:24 -080018
19#include <mach/board.h>
Stephen Boyd4312a7e2012-09-05 12:28:52 -070020#include "common.h"
Steve Mucklea55df6e2010-01-07 12:43:24 -080021
Shawn Guoc633c532012-05-02 15:53:20 +080022static void __init msm8x60_init_late(void)
23{
24 smd_debugfs_init();
25}
26
David Brown56e2d8a2011-08-04 02:01:02 -070027static struct of_dev_auxdata msm_auxdata_lookup[] __initdata = {
28 {}
29};
30
David Brown56e2d8a2011-08-04 02:01:02 -070031static void __init msm8x60_dt_init(void)
32{
David Brown56e2d8a2011-08-04 02:01:02 -070033 of_platform_populate(NULL, of_default_bus_match_table,
34 msm_auxdata_lookup, NULL);
35}
36
37static const char *msm8x60_fluid_match[] __initdata = {
38 "qcom,msm8660-fluid",
39 "qcom,msm8660-surf",
40 NULL
41};
David Brown56e2d8a2011-08-04 02:01:02 -070042
David Brown56e2d8a2011-08-04 02:01:02 -070043DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)")
Olof Johansson25468fe2012-09-22 00:06:21 -070044 .smp = smp_ops(msm_smp_ops),
Stephen Boyd5b67bfb2012-09-05 12:28:55 -070045 .map_io = msm_map_msm8x60_io,
David Brown56e2d8a2011-08-04 02:01:02 -070046 .init_machine = msm8x60_dt_init,
Shawn Guoc633c532012-05-02 15:53:20 +080047 .init_late = msm8x60_init_late,
Stephen Warren6bb27d72012-11-08 12:40:59 -070048 .init_time = msm_dt_timer_init,
David Brown56e2d8a2011-08-04 02:01:02 -070049 .dt_compat = msm8x60_fluid_match,
50MACHINE_END