diff options
author | Rohit Vaswani <rvaswani@codeaurora.org> | 2013-09-09 19:24:54 -0400 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2013-09-25 16:02:56 -0400 |
commit | d0e190c37a85f1a8b7dccada8b2fb8fa64c36635 (patch) | |
tree | 5832447aab3f53ace2df82ffd872725f98ba0c18 /arch/arm/mach-msm | |
parent | 61e570a9df06f9a8a168b0f1b9fc221736d5d3f3 (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/Kconfig | 13 | ||||
-rw-r--r-- | arch/arm/mach-msm/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-dt-8660.c | 48 | ||||
-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 @@ | |||
1 | if ARCH_MSM | 1 | if ARCH_MSM |
2 | 2 | ||
3 | comment "Qualcomm MSM SoC Type" | 3 | comment "Qualcomm MSM SoC Type" |
4 | depends on (ARCH_MSM8X60 || ARCH_MSM8960) | 4 | depends on ARCH_MSM_DT |
5 | 5 | ||
6 | choice | 6 | choice |
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 | ||
11 | config ARCH_MSM7X00A | 11 | config 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 | ||
55 | config ARCH_MSM8960 | 53 | config 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 | |||
61 | config 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 | ||
71 | config ARCH_MSM_ARM11 | 73 | config ARCH_MSM_ARM11 |
72 | bool | 74 | bool |
75 | |||
73 | config ARCH_MSM_SCORPION | 76 | config ARCH_MSM_SCORPION |
74 | bool | 77 | bool |
75 | 78 | ||
@@ -77,6 +80,7 @@ config MSM_VIC | |||
77 | bool | 80 | bool |
78 | 81 | ||
79 | menu "Qualcomm MSM Board Type" | 82 | menu "Qualcomm MSM Board Type" |
83 | depends on !ARCH_MSM_DT | ||
80 | 84 | ||
81 | config MACH_HALIBUT | 85 | config MACH_HALIBUT |
82 | depends on ARCH_MSM | 86 | depends on ARCH_MSM |
@@ -124,6 +128,7 @@ config MSM_SMD | |||
124 | 128 | ||
125 | config MSM_GPIOMUX | 129 | config 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 | |||
26 | obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o | 26 | obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o |
27 | obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o | 27 | obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o |
28 | obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o | 28 | obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o |
29 | obj-$(CONFIG_ARCH_MSM8X60) += board-dt-8660.o | 29 | obj-$(CONFIG_ARCH_MSM_DT) += board-dt.o |
30 | obj-$(CONFIG_ARCH_MSM8960) += board-dt-8960.o | ||
31 | obj-$(CONFIG_MSM_GPIOMUX) += gpiomux.o | 30 | obj-$(CONFIG_MSM_GPIOMUX) += gpiomux.o |
32 | obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o | 31 | obj-$(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 | |||
22 | static void __init msm8x60_init_late(void) | ||
23 | { | ||
24 | smd_debugfs_init(); | ||
25 | } | ||
26 | |||
27 | static struct of_dev_auxdata msm_auxdata_lookup[] __initdata = { | ||
28 | {} | ||
29 | }; | ||
30 | |||
31 | static void __init msm8x60_dt_init(void) | ||
32 | { | ||
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 | }; | ||
42 | |||
43 | DT_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, | ||
48 | MACHINE_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 | ||
21 | static void __init msm_dt_init(void) | 22 | static 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 | |||
26 | static const char * const msm8960_dt_match[] __initconst = { | ||
27 | "qcom,msm8960-cdp", | 25 | "qcom,msm8960-cdp", |
28 | NULL | 26 | NULL |
29 | }; | 27 | }; |
30 | 28 | ||
31 | DT_MACHINE_START(MSM8960_DT, "Qualcomm MSM (Flattened Device Tree)") | 29 | DT_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, | ||
35 | MACHINE_END | 32 | MACHINE_END |