aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/Kconfig
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-02-23 19:41:53 -0500
committerTony Lindgren <tony@atomide.com>2012-02-24 11:24:46 -0500
commitc295fb633e321a7df3b8846c4eaddc5da3e0aaed (patch)
treeb0f0587f3daa3a48ffa8cde8b49c1a0bf84e7365 /arch/arm/mach-omap2/Kconfig
parent3e2e613f5f1c5d8b30e6ce49954143bdfaa03dd5 (diff)
ARM: OMAP2+: Fix multiple randconfig errors with SOC_OMAP and SOC_OMAP_NOOP
If we don't have ARCH_OMAP2, 3 or 4 selected randconfig will always fail with multiple errors as the CPU and MACHINE are not set. Fix this by changing arch/arm/Makefile to build mach-omap2 based on ARCH_OMAP2PLUS. And let's introduce SOC_OMAP and SOC_OMAP_NOOP that allow randconfig to generate buildable .config files. Note that we can also remove few uncecssary ARCH_OMAP2PLUS lines as they are all within if ARCH_OMAP2PLUS block. Cc: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/Kconfig')
-rw-r--r--arch/arm/mach-omap2/Kconfig51
1 files changed, 34 insertions, 17 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 337f98dd8148..c4ae0a77f7b4 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -21,16 +21,12 @@ config ARCH_OMAP2PLUS_TYPICAL
21 Compile a kernel suitable for booting most boards 21 Compile a kernel suitable for booting most boards
22 22
23config ARCH_OMAP2 23config ARCH_OMAP2
24 bool "TI OMAP2" 24 bool
25 depends on ARCH_OMAP2PLUS
26 default y
27 select CPU_V6 25 select CPU_V6
28 select MULTI_IRQ_HANDLER 26 select MULTI_IRQ_HANDLER
29 27
30config ARCH_OMAP3 28config ARCH_OMAP3
31 bool "TI OMAP3" 29 bool
32 depends on ARCH_OMAP2PLUS
33 default y
34 select CPU_V7 30 select CPU_V7
35 select USB_ARCH_HAS_EHCI if USB_SUPPORT 31 select USB_ARCH_HAS_EHCI if USB_SUPPORT
36 select ARCH_HAS_OPP 32 select ARCH_HAS_OPP
@@ -39,9 +35,7 @@ config ARCH_OMAP3
39 select MULTI_IRQ_HANDLER 35 select MULTI_IRQ_HANDLER
40 36
41config ARCH_OMAP4 37config ARCH_OMAP4
42 bool "TI OMAP4" 38 bool
43 default y
44 depends on ARCH_OMAP2PLUS
45 select CACHE_L2X0 39 select CACHE_L2X0
46 select CPU_V7 40 select CPU_V7
47 select ARM_GIC 41 select ARM_GIC
@@ -56,36 +50,58 @@ config ARCH_OMAP4
56 select ARM_CPU_SUSPEND if PM 50 select ARM_CPU_SUSPEND if PM
57 51
58comment "OMAP Core Type" 52comment "OMAP Core Type"
59 depends on ARCH_OMAP2 53
54config SOC_OMAP
55 bool
60 56
61config SOC_OMAP2420 57config SOC_OMAP2420
62 bool "OMAP2420 support" 58 bool "OMAP2420 support"
63 depends on ARCH_OMAP2
64 default y 59 default y
60 select SOC_OMAP
61 select ARCH_OMAP2
65 select OMAP_DM_TIMER 62 select OMAP_DM_TIMER
66 select ARCH_OMAP_OTG 63 select ARCH_OMAP_OTG
67 64
68config SOC_OMAP2430 65config SOC_OMAP2430
69 bool "OMAP2430 support" 66 bool "OMAP2430 support"
70 depends on ARCH_OMAP2
71 default y 67 default y
68 select SOC_OMAP
69 select ARCH_OMAP2
72 select ARCH_OMAP_OTG 70 select ARCH_OMAP_OTG
73 71
74config SOC_OMAP3430 72config SOC_OMAP3430
75 bool "OMAP3430 support" 73 bool "OMAP3430 support"
76 depends on ARCH_OMAP3
77 default y 74 default y
75 select SOC_OMAP
76 select ARCH_OMAP3
78 select ARCH_OMAP_OTG 77 select ARCH_OMAP_OTG
79 78
80config SOC_OMAPTI81XX 79config SOC_OMAPTI81XX
81 bool "TI81XX support" 80 bool "TI81XX support"
82 depends on ARCH_OMAP3
83 default y 81 default y
82 select SOC_OMAP
83 select ARCH_OMAP3
84 84
85config SOC_OMAPAM33XX 85config SOC_OMAPAM33XX
86 bool "AM33XX support" 86 bool "AM33XX support"
87 depends on ARCH_OMAP3
88 default y 87 default y
88 select SOC_OMAP
89 select ARCH_OMAP3
90
91config SOC_OMAP44XX
92 bool "OMAP44XX support"
93 default y
94 select SOC_OMAP
95 select ARCH_OMAP4
96
97config SOC_OMAP_NOOP
98 bool
99 depends on !SOC_OMAP
100 default y
101 select ARCH_OMAP2
102 select ARCH_OMAP3
103 select ARCH_OMAP4
104 select MACH_OMAP_GENERIC
89 105
90config OMAP_PACKAGE_ZAF 106config OMAP_PACKAGE_ZAF
91 bool 107 bool
@@ -112,17 +128,17 @@ config OMAP_PACKAGE_CBS
112 bool 128 bool
113 129
114comment "OMAP Board Type" 130comment "OMAP Board Type"
115 depends on ARCH_OMAP2PLUS
116 131
117config MACH_OMAP_GENERIC 132config MACH_OMAP_GENERIC
118 bool "Generic OMAP2+ board" 133 bool "Generic OMAP2+ board"
119 depends on ARCH_OMAP2PLUS
120 select USE_OF 134 select USE_OF
121 default y 135 default y
122 help 136 help
123 Support for generic TI OMAP2+ boards using Flattened Device Tree. 137 Support for generic TI OMAP2+ boards using Flattened Device Tree.
124 More information at Documentation/devicetree 138 More information at Documentation/devicetree
125 139
140if SOC_OMAP
141
126config MACH_OMAP2_TUSB6010 142config MACH_OMAP2_TUSB6010
127 bool 143 bool
128 depends on ARCH_OMAP2 && SOC_OMAP2420 144 depends on ARCH_OMAP2 && SOC_OMAP2420
@@ -343,6 +359,7 @@ config MACH_OMAP4_PANDA
343 select OMAP_PACKAGE_CBS 359 select OMAP_PACKAGE_CBS
344 select REGULATOR_FIXED_VOLTAGE if REGULATOR 360 select REGULATOR_FIXED_VOLTAGE if REGULATOR
345 361
362endif
346config OMAP3_EMU 363config OMAP3_EMU
347 bool "OMAP3 debugging peripherals" 364 bool "OMAP3 debugging peripherals"
348 depends on ARCH_OMAP3 365 depends on ARCH_OMAP3