xref: /linux/arch/arm/mach-omap2/Kconfig (revision ec8a42e7343234802b9054874fe01810880289ce)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "TI OMAP/AM/DM/DRA Family"
3	depends on ARCH_MULTI_V6 || ARCH_MULTI_V7
4
5config OMAP_HWMOD
6	bool
7
8config ARCH_OMAP2
9	bool "TI OMAP2"
10	depends on ARCH_MULTI_V6
11	select ARCH_OMAP2PLUS
12	select CPU_V6
13	select OMAP_HWMOD
14	select SOC_HAS_OMAP2_SDRC
15
16config ARCH_OMAP3
17	bool "TI OMAP3"
18	depends on ARCH_MULTI_V7
19	select ARCH_OMAP2PLUS
20	select ARM_CPU_SUSPEND
21	select OMAP_HWMOD
22	select OMAP_INTERCONNECT
23	select PM_OPP
24	select SOC_HAS_OMAP2_SDRC
25	select ARM_ERRATA_430973
26
27config ARCH_OMAP4
28	bool "TI OMAP4"
29	depends on ARCH_MULTI_V7
30	select ARCH_OMAP2PLUS
31	select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
32	select ARM_CPU_SUSPEND
33	select ARM_ERRATA_720789
34	select ARM_GIC
35	select HAVE_ARM_SCU if SMP
36	select HAVE_ARM_TWD if SMP
37	select OMAP_HWMOD
38	select OMAP_INTERCONNECT
39	select OMAP_INTERCONNECT_BARRIER
40	select PL310_ERRATA_588369 if CACHE_L2X0
41	select PL310_ERRATA_727915 if CACHE_L2X0
42	select PM_OPP
43	select PM if CPU_IDLE
44	select ARM_ERRATA_754322
45	select ARM_ERRATA_775420
46	select OMAP_INTERCONNECT
47
48config SOC_OMAP5
49	bool "TI OMAP5"
50	depends on ARCH_MULTI_V7
51	select ARCH_OMAP2PLUS
52	select ARM_CPU_SUSPEND
53	select ARM_GIC
54	select HAVE_ARM_SCU if SMP
55	select HAVE_ARM_ARCH_TIMER
56	select ARM_ERRATA_798181 if SMP
57	select OMAP_HWMOD
58	select OMAP_INTERCONNECT
59	select OMAP_INTERCONNECT_BARRIER
60	select PM_OPP
61	select ZONE_DMA if ARM_LPAE
62
63config SOC_AM33XX
64	bool "TI AM33XX"
65	depends on ARCH_MULTI_V7
66	select ARCH_OMAP2PLUS
67	select ARM_CPU_SUSPEND
68
69config SOC_AM43XX
70	bool "TI AM43x"
71	depends on ARCH_MULTI_V7
72	select ARCH_OMAP2PLUS
73	select ARM_GIC
74	select MACH_OMAP_GENERIC
75	select HAVE_ARM_SCU
76	select GENERIC_CLOCKEVENTS_BROADCAST
77	select HAVE_ARM_TWD
78	select ARM_ERRATA_754322
79	select ARM_ERRATA_775420
80	select OMAP_INTERCONNECT
81	select ARM_CPU_SUSPEND
82
83config SOC_DRA7XX
84	bool "TI DRA7XX"
85	depends on ARCH_MULTI_V7
86	select ARCH_OMAP2PLUS
87	select ARM_CPU_SUSPEND
88	select ARM_GIC
89	select HAVE_ARM_SCU if SMP
90	select HAVE_ARM_ARCH_TIMER
91	select IRQ_CROSSBAR
92	select ARM_ERRATA_798181 if SMP
93	select OMAP_HWMOD
94	select OMAP_INTERCONNECT
95	select OMAP_INTERCONNECT_BARRIER
96	select PM_OPP
97	select ZONE_DMA if ARM_LPAE
98	select PINCTRL_TI_IODELAY if OF && PINCTRL
99
100config ARCH_OMAP2PLUS
101	bool
102	select ARCH_HAS_BANDGAP
103	select ARCH_HAS_RESET_CONTROLLER
104	select ARCH_OMAP
105	select CLKSRC_MMIO
106	select GENERIC_IRQ_CHIP
107	select GPIOLIB
108	select MACH_OMAP_GENERIC
109	select MEMORY
110	select MFD_SYSCON
111	select OMAP_DM_TIMER
112	select OMAP_GPMC
113	select PINCTRL
114	select PM
115	select PM_GENERIC_DOMAINS
116	select PM_GENERIC_DOMAINS_OF
117	select RESET_CONTROLLER
118	select SIMPLE_PM_BUS
119	select SOC_BUS
120	select TI_SYSC
121	select OMAP_IRQCHIP
122	select CLKSRC_TI_32K
123	help
124	  Systems based on OMAP2, OMAP3, OMAP4 or OMAP5
125
126config OMAP_INTERCONNECT_BARRIER
127	bool
128	select ARM_HEAVY_MB
129
130
131if ARCH_OMAP2PLUS
132
133menu "TI OMAP2/3/4 Specific Features"
134
135config ARCH_OMAP2PLUS_TYPICAL
136	bool "Typical OMAP configuration"
137	default y
138	select AEABI
139	select HIGHMEM
140	select I2C
141	select I2C_OMAP
142	select MENELAUS if ARCH_OMAP2
143	select NEON if CPU_V7
144	select REGULATOR
145	select REGULATOR_FIXED_VOLTAGE
146	select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4
147	select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4
148	select VFP
149	help
150	  Compile a kernel suitable for booting most boards
151
152config SOC_HAS_OMAP2_SDRC
153	bool "OMAP2 SDRAM Controller support"
154
155config SOC_HAS_REALTIME_COUNTER
156	bool "Real time free running counter"
157	depends on SOC_OMAP5 || SOC_DRA7XX
158	default y
159
160comment "OMAP Core Type"
161	depends on ARCH_OMAP2
162
163config SOC_OMAP2420
164	bool "OMAP2420 support"
165	depends on ARCH_OMAP2
166	default y
167	select OMAP_DM_TIMER
168	select SOC_HAS_OMAP2_SDRC
169
170config SOC_OMAP2430
171	bool "OMAP2430 support"
172	depends on ARCH_OMAP2
173	default y
174	select SOC_HAS_OMAP2_SDRC
175
176config SOC_OMAP3430
177	bool "OMAP3430 support"
178	depends on ARCH_OMAP3
179	default y
180	select SOC_HAS_OMAP2_SDRC
181
182config SOC_TI81XX
183	bool "TI81XX support"
184	depends on ARCH_OMAP3
185	default y
186
187config OMAP_PACKAGE_CBC
188       bool
189
190config OMAP_PACKAGE_CBB
191       bool
192
193config OMAP_PACKAGE_CUS
194       bool
195
196config OMAP_PACKAGE_CBP
197       bool
198
199comment "OMAP Legacy Platform Data Board Type"
200	depends on ARCH_OMAP2PLUS
201
202config MACH_OMAP_GENERIC
203	bool
204
205config MACH_OMAP2_TUSB6010
206	bool
207	depends on ARCH_OMAP2 && SOC_OMAP2420
208	default y if MACH_NOKIA_N8X0
209
210config MACH_OMAP3517EVM
211	bool "OMAP3517/ AM3517 EVM board"
212	depends on ARCH_OMAP3
213	default y
214
215config MACH_OMAP3_PANDORA
216	bool "OMAP3 Pandora"
217	depends on ARCH_OMAP3
218	default y
219	select OMAP_PACKAGE_CBB
220
221config MACH_NOKIA_N810
222       bool
223
224config MACH_NOKIA_N810_WIMAX
225       bool
226
227config MACH_NOKIA_N8X0
228	bool "Nokia N800/N810"
229	depends on SOC_OMAP2420
230	default y
231	select MACH_NOKIA_N810
232	select MACH_NOKIA_N810_WIMAX
233
234config OMAP3_SDRC_AC_TIMING
235	bool "Enable SDRC AC timing register changes"
236	depends on ARCH_OMAP3
237	help
238	  If you know that none of your system initiators will attempt to
239	  access SDRAM during CORE DVFS, select Y here.  This should boost
240	  SDRAM performance at lower CORE OPPs.  There are relatively few
241	  users who will wish to say yes at this point - almost everyone will
242	  wish to say no.  Selecting yes without understanding what is
243	  going on could result in system crashes;
244
245endmenu
246
247endif
248
249config OMAP5_ERRATA_801819
250	bool "Errata 801819: An eviction from L1 data cache might stall indefinitely"
251	depends on SOC_OMAP5 || SOC_DRA7XX
252	help
253	  A livelock can occur in the L2 cache arbitration that might prevent
254	  a snoop from completing. Under certain conditions this can cause the
255	  system to deadlock.
256
257endmenu
258