aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-spear
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-12-06 08:51:56 -0500
committerArnd Bergmann <arnd@arndb.de>2013-03-12 12:40:14 -0400
commit5b65fc560398dd849dbe9f0df68d3934089c894a (patch)
tree9a3bbc0e6846649ee485538ead95d86f406484d0 /arch/arm/mach-spear
parent553e7f75a171654d032d0eacbb1ba75bd9be7e8a (diff)
ARM: spear: use multiplatform configuration options.
The spear platform is now multiplatform capable in principle, and everything still builds when enabled. This slightly rearranges the Kconfig options for spear to enable both single- and multiplatform support. As a side-effect, even building the single spear kernel can now enable spear3xx and spear6xx simultaneously, although not together with spear13xx, because they are a different archicture version (v7 instead of v5). Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'arch/arm/mach-spear')
-rw-r--r--arch/arm/mach-spear/Kconfig67
-rw-r--r--arch/arm/mach-spear/Makefile2
2 files changed, 42 insertions, 27 deletions
diff --git a/arch/arm/mach-spear/Kconfig b/arch/arm/mach-spear/Kconfig
index e288df90c746..4c52ee2b77dc 100644
--- a/arch/arm/mach-spear/Kconfig
+++ b/arch/arm/mach-spear/Kconfig
@@ -2,14 +2,22 @@
2# SPEAr Platform configuration file 2# SPEAr Platform configuration file
3# 3#
4 4
5if PLAT_SPEAR 5menuconfig PLAT_SPEAR
6 bool "ST SPEAr Family" if ARCH_MULTI_V7 || ARCH_MULTI_V5
7 default PLAT_SPEAR_SINGLE
8 select ARCH_REQUIRE_GPIOLIB
9 select ARM_AMBA
10 select CLKDEV_LOOKUP
11 select CLKSRC_MMIO
12 select COMMON_CLK
13 select GENERIC_CLOCKEVENTS
14 select HAVE_CLK
6 15
7choice 16if PLAT_SPEAR
8 prompt "ST SPEAr Family"
9 default ARCH_SPEAR3XX
10 17
11config ARCH_SPEAR13XX 18config ARCH_SPEAR13XX
12 bool "ST SPEAr13xx with Device Tree" 19 bool "ST SPEAr13xx"
20 depends on ARCH_MULTI_V7 || PLAT_SPEAR_SINGLE
13 select ARCH_HAVE_CPUFREQ 21 select ARCH_HAVE_CPUFREQ
14 select ARM_GIC 22 select ARM_GIC
15 select CPU_V7 23 select CPU_V7
@@ -21,27 +29,8 @@ config ARCH_SPEAR13XX
21 help 29 help
22 Supports for ARM's SPEAR13XX family 30 Supports for ARM's SPEAR13XX family
23 31
24config ARCH_SPEAR3XX
25 bool "ST SPEAr3xx with Device Tree"
26 select ARM_VIC
27 select CPU_ARM926T
28 select PINCTRL
29 select USE_OF
30 help
31 Supports for ARM's SPEAR3XX family
32
33config ARCH_SPEAR6XX
34 bool "SPEAr6XX"
35 select ARM_VIC
36 select CPU_ARM926T
37 help
38 Supports for ARM's SPEAR6XX family
39
40endchoice
41
42if ARCH_SPEAR13XX 32if ARCH_SPEAR13XX
43 33
44menu "SPEAr13xx Implementations"
45config MACH_SPEAR1310 34config MACH_SPEAR1310
46 bool "SPEAr1310 Machine support with Device Tree" 35 bool "SPEAr1310 Machine support with Device Tree"
47 select PINCTRL_SPEAR1310 36 select PINCTRL_SPEAR1310
@@ -53,12 +42,22 @@ config MACH_SPEAR1340
53 select PINCTRL_SPEAR1340 42 select PINCTRL_SPEAR1340
54 help 43 help
55 Supports ST SPEAr1340 machine configured via the device-tree 44 Supports ST SPEAr1340 machine configured via the device-tree
56endmenu 45
57endif #ARCH_SPEAR13XX 46endif #ARCH_SPEAR13XX
58 47
48config ARCH_SPEAR3XX
49 bool "ST SPEAr3xx"
50 depends on ARCH_MULTI_V5 || PLAT_SPEAR_SINGLE
51 depends on !ARCH_SPEAR13XX
52 select ARM_VIC
53 select CPU_ARM926T
54 select PINCTRL
55 select USE_OF
56 help
57 Supports for ARM's SPEAR3XX family
58
59if ARCH_SPEAR3XX 59if ARCH_SPEAR3XX
60 60
61menu "SPEAr3xx Implementations"
62config MACH_SPEAR300 61config MACH_SPEAR300
63 bool "SPEAr300 Machine support with Device Tree" 62 bool "SPEAr300 Machine support with Device Tree"
64 select PINCTRL_SPEAR300 63 select PINCTRL_SPEAR300
@@ -76,10 +75,18 @@ config MACH_SPEAR320
76 select PINCTRL_SPEAR320 75 select PINCTRL_SPEAR320
77 help 76 help
78 Supports ST SPEAr320 machine configured via the device-tree 77 Supports ST SPEAr320 machine configured via the device-tree
79endmenu
80 78
81endif 79endif
82 80
81config ARCH_SPEAR6XX
82 bool "ST SPEAr6XX"
83 depends on ARCH_MULTI_V5 || PLAT_SPEAR_SINGLE
84 depends on !ARCH_SPEAR13XX
85 select ARM_VIC
86 select CPU_ARM926T
87 help
88 Supports for ARM's SPEAR6XX family
89
83config MACH_SPEAR600 90config MACH_SPEAR600
84 def_bool y 91 def_bool y
85 depends on ARCH_SPEAR6XX 92 depends on ARCH_SPEAR6XX
@@ -87,4 +94,10 @@ config MACH_SPEAR600
87 help 94 help
88 Supports ST SPEAr600 boards configured via the device-treesource "arch/arm/mach-spear6xx/Kconfig" 95 Supports ST SPEAr600 boards configured via the device-treesource "arch/arm/mach-spear6xx/Kconfig"
89 96
97config ARCH_SPEAR_AUTO
98 def_bool PLAT_SPEAR_SINGLE
99 depends on !ARCH_SPEAR13XX && !ARCH_SPEAR6XX
100 select ARCH_SPEAR3XX
101
90endif 102endif
103
diff --git a/arch/arm/mach-spear/Makefile b/arch/arm/mach-spear/Makefile
index 8a937bff9d81..dc9ce80508ad 100644
--- a/arch/arm/mach-spear/Makefile
+++ b/arch/arm/mach-spear/Makefile
@@ -2,6 +2,8 @@
2# SPEAr Platform specific Makefile 2# SPEAr Platform specific Makefile
3# 3#
4 4
5ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include
6
5# Common support 7# Common support
6obj-y := restart.o time.o 8obj-y := restart.o time.o
7 9