diff options
author | Olof Johansson <olof@lixom.net> | 2014-01-09 03:09:16 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-01-09 03:09:16 -0500 |
commit | e37fce7346dcc4ab1a3f6be675c901efc3af6964 (patch) | |
tree | 9fa125259d370e52bee6f684e4932e526997eb05 /arch/arm/mach-msm | |
parent | 51f37801b44fb5beb7f651e6f74e0dd90fd159c9 (diff) | |
parent | 4f2041174d62d21ec46db48809a29d6517f6d006 (diff) |
Merge branch 'qcom/soc2' into next/soc
* qcom/soc2:
ARM: msm: Move MSM's DT based hardware to multi-platform support
ARM: msm: Only build timer.c if required
ARM: msm: Only build clock.c on proc_comm based platforms
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r-- | arch/arm/mach-msm/Kconfig | 85 | ||||
-rw-r--r-- | arch/arm/mach-msm/Makefile | 4 |
2 files changed, 50 insertions, 39 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig index 702553b96137..9625cf378931 100644 --- a/arch/arm/mach-msm/Kconfig +++ b/arch/arm/mach-msm/Kconfig | |||
@@ -1,12 +1,50 @@ | |||
1 | config ARCH_MSM | ||
2 | bool | ||
3 | |||
4 | config ARCH_MSM_DT | ||
5 | bool "Qualcomm MSM DT Support" if ARCH_MULTI_V7 | ||
6 | select ARCH_MSM | ||
7 | select ARCH_REQUIRE_GPIOLIB | ||
8 | select CLKSRC_OF | ||
9 | select GENERIC_CLOCKEVENTS | ||
10 | help | ||
11 | Support for Qualcomm's devicetree based MSM systems. | ||
12 | |||
1 | if ARCH_MSM | 13 | if ARCH_MSM |
2 | 14 | ||
3 | comment "Qualcomm MSM SoC Type" | 15 | menu "Qualcomm MSM SoC Selection" |
4 | depends on ARCH_MSM_DT | 16 | depends on ARCH_MSM_DT |
5 | 17 | ||
18 | config ARCH_MSM8X60 | ||
19 | bool "Enable support for MSM8X60" | ||
20 | select ARM_GIC | ||
21 | select CPU_V7 | ||
22 | select HAVE_SMP | ||
23 | select MSM_SCM if SMP | ||
24 | select MSM_TIMER | ||
25 | |||
26 | config ARCH_MSM8960 | ||
27 | bool "Enable support for MSM8960" | ||
28 | select ARM_GIC | ||
29 | select CPU_V7 | ||
30 | select HAVE_SMP | ||
31 | select MSM_SCM if SMP | ||
32 | select MSM_TIMER | ||
33 | |||
34 | config ARCH_MSM8974 | ||
35 | bool "Enable support for MSM8974" | ||
36 | select ARM_GIC | ||
37 | select CPU_V7 | ||
38 | select HAVE_ARM_ARCH_TIMER | ||
39 | select HAVE_SMP | ||
40 | select MSM_SCM if SMP | ||
41 | |||
42 | endmenu | ||
43 | |||
6 | choice | 44 | choice |
7 | prompt "Qualcomm MSM SoC Type" | 45 | prompt "Qualcomm MSM SoC Type" |
8 | default ARCH_MSM7X00A | 46 | default ARCH_MSM7X00A |
9 | depends on !ARCH_MSM_DT | 47 | depends on ARCH_MSM_NODT |
10 | 48 | ||
11 | config ARCH_MSM7X00A | 49 | config ARCH_MSM7X00A |
12 | bool "MSM7x00A / MSM7x01A" | 50 | bool "MSM7x00A / MSM7x01A" |
@@ -16,6 +54,7 @@ config ARCH_MSM7X00A | |||
16 | select MACH_TROUT if !MACH_HALIBUT | 54 | select MACH_TROUT if !MACH_HALIBUT |
17 | select MSM_PROC_COMM | 55 | select MSM_PROC_COMM |
18 | select MSM_SMD | 56 | select MSM_SMD |
57 | select MSM_TIMER | ||
19 | select MSM_SMD_PKG3 | 58 | select MSM_SMD_PKG3 |
20 | 59 | ||
21 | config ARCH_MSM7X30 | 60 | config ARCH_MSM7X30 |
@@ -27,6 +66,7 @@ config ARCH_MSM7X30 | |||
27 | select MSM_GPIOMUX | 66 | select MSM_GPIOMUX |
28 | select MSM_PROC_COMM | 67 | select MSM_PROC_COMM |
29 | select MSM_SMD | 68 | select MSM_SMD |
69 | select MSM_TIMER | ||
30 | select MSM_VIC | 70 | select MSM_VIC |
31 | 71 | ||
32 | config ARCH_QSD8X50 | 72 | config ARCH_QSD8X50 |
@@ -38,43 +78,11 @@ config ARCH_QSD8X50 | |||
38 | select MSM_GPIOMUX | 78 | select MSM_GPIOMUX |
39 | select MSM_PROC_COMM | 79 | select MSM_PROC_COMM |
40 | select MSM_SMD | 80 | select MSM_SMD |
81 | select MSM_TIMER | ||
41 | select MSM_VIC | 82 | select MSM_VIC |
42 | 83 | ||
43 | endchoice | 84 | endchoice |
44 | 85 | ||
45 | config ARCH_MSM8X60 | ||
46 | bool "MSM8X60" | ||
47 | select ARCH_MSM_DT | ||
48 | select ARM_GIC | ||
49 | select CPU_V7 | ||
50 | select GPIO_MSM_V2 | ||
51 | select HAVE_SMP | ||
52 | select MSM_SCM if SMP | ||
53 | |||
54 | config ARCH_MSM8960 | ||
55 | bool "MSM8960" | ||
56 | select ARCH_MSM_DT | ||
57 | select ARM_GIC | ||
58 | select CPU_V7 | ||
59 | select HAVE_SMP | ||
60 | select GPIO_MSM_V2 | ||
61 | select MSM_SCM if SMP | ||
62 | |||
63 | config ARCH_MSM8974 | ||
64 | bool "MSM8974" | ||
65 | select ARCH_MSM_DT | ||
66 | select ARM_GIC | ||
67 | select CPU_V7 | ||
68 | select HAVE_ARM_ARCH_TIMER | ||
69 | select HAVE_SMP | ||
70 | select MSM_SCM if SMP | ||
71 | select USE_OF | ||
72 | |||
73 | config ARCH_MSM_DT | ||
74 | bool | ||
75 | select SPARSE_IRQ | ||
76 | select USE_OF | ||
77 | |||
78 | config MSM_HAS_DEBUG_UART_HS | 86 | config MSM_HAS_DEBUG_UART_HS |
79 | bool | 87 | bool |
80 | 88 | ||
@@ -91,7 +99,7 @@ config MSM_VIC | |||
91 | bool | 99 | bool |
92 | 100 | ||
93 | menu "Qualcomm MSM Board Type" | 101 | menu "Qualcomm MSM Board Type" |
94 | depends on !ARCH_MSM_DT | 102 | depends on ARCH_MSM_NODT |
95 | 103 | ||
96 | config MACH_HALIBUT | 104 | config MACH_HALIBUT |
97 | depends on ARCH_MSM | 105 | depends on ARCH_MSM |
@@ -139,10 +147,13 @@ config MSM_SMD | |||
139 | 147 | ||
140 | config MSM_GPIOMUX | 148 | config MSM_GPIOMUX |
141 | bool | 149 | bool |
142 | depends on !ARCH_MSM_DT | ||
143 | help | 150 | help |
144 | Support for MSM V1 TLMM GPIOMUX architecture. | 151 | Support for MSM V1 TLMM GPIOMUX architecture. |
145 | 152 | ||
146 | config MSM_SCM | 153 | config MSM_SCM |
147 | bool | 154 | bool |
155 | |||
156 | config MSM_TIMER | ||
157 | bool | ||
158 | |||
148 | endif | 159 | endif |
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile index 7ed4c1b2bdd2..8e307a10d3c3 100644 --- a/arch/arm/mach-msm/Makefile +++ b/arch/arm/mach-msm/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | obj-y += timer.o | 1 | obj-$(CONFIG_MSM_TIMER) += timer.o |
2 | obj-y += clock.o | 2 | obj-$(CONFIG_MSM_PROC_COMM) += clock.o |
3 | 3 | ||
4 | obj-$(CONFIG_MSM_VIC) += irq-vic.o | 4 | obj-$(CONFIG_MSM_VIC) += irq-vic.o |
5 | 5 | ||