blob: 73019363ffa4db099ea801a85fe7a9d8a4b0b3ff [file] [log] [blame]
Stephen Boydc4464072012-09-05 12:28:58 -07001/* 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>
Rob Herring0529e3152012-11-05 16:18:28 -060014#include <linux/irqchip.h>
Stephen Boydc4464072012-09-05 12:28:58 -070015#include <linux/of_platform.h>
16
Stephen Boydc4464072012-09-05 12:28:58 -070017#include <asm/mach/arch.h>
18
19#include "common.h"
20
Stephen Boydc4464072012-09-05 12:28:58 -070021static void __init msm_dt_init(void)
22{
23 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
24}
25
26static const char * const msm8960_dt_match[] __initconst = {
27 "qcom,msm8960-cdp",
28 NULL
29};
30
31DT_MACHINE_START(MSM8960_DT, "Qualcomm MSM (Flattened Device Tree)")
Olof Johansson25468fe2012-09-22 00:06:21 -070032 .smp = smp_ops(msm_smp_ops),
Stephen Boydc4464072012-09-05 12:28:58 -070033 .map_io = msm_map_msm8960_io,
Rob Herring0529e3152012-11-05 16:18:28 -060034 .init_irq = irqchip_init,
Stephen Warren6bb27d72012-11-08 12:40:59 -070035 .init_time = msm_dt_timer_init,
Stephen Boydc4464072012-09-05 12:28:58 -070036 .init_machine = msm_dt_init,
37 .dt_compat = msm8960_dt_match,
Stephen Boydc4464072012-09-05 12:28:58 -070038MACHINE_END