aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm
diff options
context:
space:
mode:
authorRohit Vaswani <rvaswani@codeaurora.org>2013-09-09 19:24:54 -0400
committerDavid Brown <davidb@codeaurora.org>2013-09-25 16:02:56 -0400
commitd0e190c37a85f1a8b7dccada8b2fb8fa64c36635 (patch)
tree5832447aab3f53ace2df82ffd872725f98ba0c18 /arch/arm/mach-msm
parent61e570a9df06f9a8a168b0f1b9fc221736d5d3f3 (diff)
ARM: msm: Create a common board-dt and config ARCH_MSM_DT
Create a config ARCH_MSM_DT and common board-dt.c to encapsulate the MSM DT based targets. Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r--arch/arm/mach-msm/Kconfig13
-rw-r--r--arch/arm/mach-msm/Makefile3
-rw-r--r--arch/arm/mach-msm/board-dt-8660.c48
-rw-r--r--arch/arm/mach-msm/board-dt.c (renamed from arch/arm/mach-msm/board-dt-8960.c)17
4 files changed, 17 insertions, 64 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index 020240cc2ae7..2586c2865874 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -1,12 +1,12 @@
1if ARCH_MSM 1if ARCH_MSM
2 2
3comment "Qualcomm MSM SoC Type" 3comment "Qualcomm MSM SoC Type"
4 depends on (ARCH_MSM8X60 || ARCH_MSM8960) 4 depends on ARCH_MSM_DT
5 5
6choice 6choice
7 prompt "Qualcomm MSM SoC Type" 7 prompt "Qualcomm MSM SoC Type"
8 default ARCH_MSM7X00A 8 default ARCH_MSM7X00A
9 depends on !(ARCH_MSM8X60 || ARCH_MSM8960) 9 depends on !ARCH_MSM_DT
10 10
11config ARCH_MSM7X00A 11config ARCH_MSM7X00A
12 bool "MSM7x00A / MSM7x01A" 12 bool "MSM7x00A / MSM7x01A"
@@ -49,8 +49,6 @@ config ARCH_MSM8X60
49 select GPIO_MSM_V2 49 select GPIO_MSM_V2
50 select HAVE_SMP 50 select HAVE_SMP
51 select MSM_SCM if SMP 51 select MSM_SCM if SMP
52 select SPARSE_IRQ
53 select USE_OF
54 52
55config ARCH_MSM8960 53config ARCH_MSM8960
56 bool "MSM8960" 54 bool "MSM8960"
@@ -59,6 +57,10 @@ config ARCH_MSM8960
59 select HAVE_SMP 57 select HAVE_SMP
60 select GPIO_MSM_V2 58 select GPIO_MSM_V2
61 select MSM_SCM if SMP 59 select MSM_SCM if SMP
60
61config ARCH_MSM_DT
62 def_bool y
63 depends on (ARCH_MSM8X60 || ARCH_MSM8960)
62 select SPARSE_IRQ 64 select SPARSE_IRQ
63 select USE_OF 65 select USE_OF
64 66
@@ -70,6 +72,7 @@ config MSM_SOC_REV_A
70 72
71config ARCH_MSM_ARM11 73config ARCH_MSM_ARM11
72 bool 74 bool
75
73config ARCH_MSM_SCORPION 76config ARCH_MSM_SCORPION
74 bool 77 bool
75 78
@@ -77,6 +80,7 @@ config MSM_VIC
77 bool 80 bool
78 81
79menu "Qualcomm MSM Board Type" 82menu "Qualcomm MSM Board Type"
83 depends on !ARCH_MSM_DT
80 84
81config MACH_HALIBUT 85config MACH_HALIBUT
82 depends on ARCH_MSM 86 depends on ARCH_MSM
@@ -124,6 +128,7 @@ config MSM_SMD
124 128
125config MSM_GPIOMUX 129config MSM_GPIOMUX
126 bool 130 bool
131 depends on !ARCH_MSM_DT
127 help 132 help
128 Support for MSM V1 TLMM GPIOMUX architecture. 133 Support for MSM V1 TLMM GPIOMUX architecture.
129 134
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile
index d872634c2f85..7ed4c1b2bdd2 100644
--- a/arch/arm/mach-msm/Makefile
+++ b/arch/arm/mach-msm/Makefile
@@ -26,7 +26,6 @@ obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o b
26obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o 26obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o
27obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o 27obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o
28obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o 28obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o
29obj-$(CONFIG_ARCH_MSM8X60) += board-dt-8660.o 29obj-$(CONFIG_ARCH_MSM_DT) += board-dt.o
30obj-$(CONFIG_ARCH_MSM8960) += board-dt-8960.o
31obj-$(CONFIG_MSM_GPIOMUX) += gpiomux.o 30obj-$(CONFIG_MSM_GPIOMUX) += gpiomux.o
32obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o 31obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o
diff --git a/arch/arm/mach-msm/board-dt-8660.c b/arch/arm/mach-msm/board-dt-8660.c
deleted file mode 100644
index c2946892f5e3..000000000000
--- a/arch/arm/mach-msm/board-dt-8660.c
+++ /dev/null
@@ -1,48 +0,0 @@
1/* Copyright (c) 2010-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>
14#include <linux/of.h>
15#include <linux/of_platform.h>
16
17#include <asm/mach/arch.h>
18#include <asm/mach/map.h>
19
20#include "common.h"
21
22static void __init msm8x60_init_late(void)
23{
24 smd_debugfs_init();
25}
26
27static struct of_dev_auxdata msm_auxdata_lookup[] __initdata = {
28 {}
29};
30
31static void __init msm8x60_dt_init(void)
32{
33 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};
42
43DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)")
44 .smp = smp_ops(msm_smp_ops),
45 .init_machine = msm8x60_dt_init,
46 .init_late = msm8x60_init_late,
47 .dt_compat = msm8x60_fluid_match,
48MACHINE_END
diff --git a/arch/arm/mach-msm/board-dt-8960.c b/arch/arm/mach-msm/board-dt.c
index d4ca52c45111..16e6183ac9f1 100644
--- a/arch/arm/mach-msm/board-dt-8960.c
+++ b/arch/arm/mach-msm/board-dt.c
@@ -1,4 +1,4 @@
1/* Copyright (c) 2012, The Linux Foundation. All rights reserved. 1/* Copyright (c) 2010-2012,2013 The Linux Foundation. All rights reserved.
2 * 2 *
3 * This program is free software; you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License version 2 and
@@ -11,6 +11,7 @@
11 */ 11 */
12 12
13#include <linux/init.h> 13#include <linux/init.h>
14#include <linux/of.h>
14#include <linux/of_platform.h> 15#include <linux/of_platform.h>
15 16
16#include <asm/mach/arch.h> 17#include <asm/mach/arch.h>
@@ -18,18 +19,14 @@
18 19
19#include "common.h" 20#include "common.h"
20 21
21static void __init msm_dt_init(void) 22static const char * const msm_dt_match[] __initconst = {
22{ 23 "qcom,msm8660-fluid",
23 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); 24 "qcom,msm8660-surf",
24}
25
26static const char * const msm8960_dt_match[] __initconst = {
27 "qcom,msm8960-cdp", 25 "qcom,msm8960-cdp",
28 NULL 26 NULL
29}; 27};
30 28
31DT_MACHINE_START(MSM8960_DT, "Qualcomm MSM (Flattened Device Tree)") 29DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)")
32 .smp = smp_ops(msm_smp_ops), 30 .smp = smp_ops(msm_smp_ops),
33 .init_machine = msm_dt_init, 31 .dt_compat = msm_dt_match,
34 .dt_compat = msm8960_dt_match,
35MACHINE_END 32MACHINE_END