xref: /openbmc/linux/arch/arm/Kconfig (revision 19c233b7)
1config ARM
2	bool
3	default y
4	select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
5	select ARCH_HAS_ELF_RANDOMIZE
6	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
7	select ARCH_HAVE_CUSTOM_GPIO_H
8	select ARCH_HAS_GCOV_PROFILE_ALL
9	select ARCH_MIGHT_HAVE_PC_PARPORT
10	select ARCH_SUPPORTS_ATOMIC_RMW
11	select ARCH_USE_BUILTIN_BSWAP
12	select ARCH_USE_CMPXCHG_LOCKREF
13	select ARCH_WANT_IPC_PARSE_VERSION
14	select BUILDTIME_EXTABLE_SORT if MMU
15	select CLONE_BACKWARDS
16	select CPU_PM if (SUSPEND || CPU_IDLE)
17	select DCACHE_WORD_ACCESS if HAVE_EFFICIENT_UNALIGNED_ACCESS
18	select EDAC_SUPPORT
19	select EDAC_ATOMIC_SCRUB
20	select GENERIC_ALLOCATOR
21	select GENERIC_ATOMIC64 if (CPU_V7M || CPU_V6 || !CPU_32v6K || !AEABI)
22	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
23	select GENERIC_IDLE_POLL_SETUP
24	select GENERIC_IRQ_PROBE
25	select GENERIC_IRQ_SHOW
26	select GENERIC_IRQ_SHOW_LEVEL
27	select GENERIC_PCI_IOMAP
28	select GENERIC_SCHED_CLOCK
29	select GENERIC_SMP_IDLE_THREAD
30	select GENERIC_STRNCPY_FROM_USER
31	select GENERIC_STRNLEN_USER
32	select HANDLE_DOMAIN_IRQ
33	select HARDIRQS_SW_RESEND
34	select HAVE_ARCH_AUDITSYSCALL if (AEABI && !OABI_COMPAT)
35	select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6
36	select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32
37	select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32
38	select HAVE_ARCH_SECCOMP_FILTER if (AEABI && !OABI_COMPAT)
39	select HAVE_ARCH_TRACEHOOK
40	select HAVE_BPF_JIT
41	select HAVE_CC_STACKPROTECTOR
42	select HAVE_CONTEXT_TRACKING
43	select HAVE_C_RECORDMCOUNT
44	select HAVE_DEBUG_KMEMLEAK
45	select HAVE_DMA_API_DEBUG
46	select HAVE_DMA_ATTRS
47	select HAVE_DMA_CONTIGUOUS if MMU
48	select HAVE_DYNAMIC_FTRACE if (!XIP_KERNEL) && !CPU_ENDIAN_BE32
49	select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU
50	select HAVE_FTRACE_MCOUNT_RECORD if (!XIP_KERNEL)
51	select HAVE_FUNCTION_GRAPH_TRACER if (!THUMB2_KERNEL)
52	select HAVE_FUNCTION_TRACER if (!XIP_KERNEL)
53	select HAVE_GENERIC_DMA_COHERENT
54	select HAVE_HW_BREAKPOINT if (PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7))
55	select HAVE_IDE if PCI || ISA || PCMCIA
56	select HAVE_IRQ_TIME_ACCOUNTING
57	select HAVE_KERNEL_GZIP
58	select HAVE_KERNEL_LZ4
59	select HAVE_KERNEL_LZMA
60	select HAVE_KERNEL_LZO
61	select HAVE_KERNEL_XZ
62	select HAVE_KPROBES if !XIP_KERNEL && !CPU_ENDIAN_BE32 && !CPU_V7M
63	select HAVE_KRETPROBES if (HAVE_KPROBES)
64	select HAVE_MEMBLOCK
65	select HAVE_MOD_ARCH_SPECIFIC
66	select HAVE_OPROFILE if (HAVE_PERF_EVENTS)
67	select HAVE_OPTPROBES if !THUMB2_KERNEL
68	select HAVE_PERF_EVENTS
69	select HAVE_PERF_REGS
70	select HAVE_PERF_USER_STACK_DUMP
71	select HAVE_RCU_TABLE_FREE if (SMP && ARM_LPAE)
72	select HAVE_REGS_AND_STACK_ACCESS_API
73	select HAVE_SYSCALL_TRACEPOINTS
74	select HAVE_UID16
75	select HAVE_VIRT_CPU_ACCOUNTING_GEN
76	select IRQ_FORCED_THREADING
77	select MODULES_USE_ELF_REL
78	select NO_BOOTMEM
79	select OLD_SIGACTION
80	select OLD_SIGSUSPEND3
81	select PERF_USE_VMALLOC
82	select RTC_LIB
83	select SYS_SUPPORTS_APM_EMULATION
84	# Above selects are sorted alphabetically; please add new ones
85	# according to that.  Thanks.
86	help
87	  The ARM series is a line of low-power-consumption RISC chip designs
88	  licensed by ARM Ltd and targeted at embedded applications and
89	  handhelds such as the Compaq IPAQ.  ARM-based PCs are no longer
90	  manufactured, but legacy ARM-based PC hardware remains popular in
91	  Europe.  There is an ARM Linux project with a web page at
92	  <http://www.arm.linux.org.uk/>.
93
94config ARM_HAS_SG_CHAIN
95	select ARCH_HAS_SG_CHAIN
96	bool
97
98config NEED_SG_DMA_LENGTH
99	bool
100
101config ARM_DMA_USE_IOMMU
102	bool
103	select ARM_HAS_SG_CHAIN
104	select NEED_SG_DMA_LENGTH
105
106if ARM_DMA_USE_IOMMU
107
108config ARM_DMA_IOMMU_ALIGNMENT
109	int "Maximum PAGE_SIZE order of alignment for DMA IOMMU buffers"
110	range 4 9
111	default 8
112	help
113	  DMA mapping framework by default aligns all buffers to the smallest
114	  PAGE_SIZE order which is greater than or equal to the requested buffer
115	  size. This works well for buffers up to a few hundreds kilobytes, but
116	  for larger buffers it just a waste of address space. Drivers which has
117	  relatively small addressing window (like 64Mib) might run out of
118	  virtual space with just a few allocations.
119
120	  With this parameter you can specify the maximum PAGE_SIZE order for
121	  DMA IOMMU buffers. Larger buffers will be aligned only to this
122	  specified order. The order is expressed as a power of two multiplied
123	  by the PAGE_SIZE.
124
125endif
126
127config MIGHT_HAVE_PCI
128	bool
129
130config SYS_SUPPORTS_APM_EMULATION
131	bool
132
133config HAVE_TCM
134	bool
135	select GENERIC_ALLOCATOR
136
137config HAVE_PROC_CPU
138	bool
139
140config NO_IOPORT_MAP
141	bool
142
143config EISA
144	bool
145	---help---
146	  The Extended Industry Standard Architecture (EISA) bus was
147	  developed as an open alternative to the IBM MicroChannel bus.
148
149	  The EISA bus provided some of the features of the IBM MicroChannel
150	  bus while maintaining backward compatibility with cards made for
151	  the older ISA bus.  The EISA bus saw limited use between 1988 and
152	  1995 when it was made obsolete by the PCI bus.
153
154	  Say Y here if you are building a kernel for an EISA-based machine.
155
156	  Otherwise, say N.
157
158config SBUS
159	bool
160
161config STACKTRACE_SUPPORT
162	bool
163	default y
164
165config HAVE_LATENCYTOP_SUPPORT
166	bool
167	depends on !SMP
168	default y
169
170config LOCKDEP_SUPPORT
171	bool
172	default y
173
174config TRACE_IRQFLAGS_SUPPORT
175	bool
176	default !CPU_V7M
177
178config RWSEM_XCHGADD_ALGORITHM
179	bool
180	default y
181
182config ARCH_HAS_ILOG2_U32
183	bool
184
185config ARCH_HAS_ILOG2_U64
186	bool
187
188config ARCH_HAS_BANDGAP
189	bool
190
191config GENERIC_HWEIGHT
192	bool
193	default y
194
195config GENERIC_CALIBRATE_DELAY
196	bool
197	default y
198
199config ARCH_MAY_HAVE_PC_FDC
200	bool
201
202config ZONE_DMA
203	bool
204
205config NEED_DMA_MAP_STATE
206       def_bool y
207
208config ARCH_SUPPORTS_UPROBES
209	def_bool y
210
211config ARCH_HAS_DMA_SET_COHERENT_MASK
212	bool
213
214config GENERIC_ISA_DMA
215	bool
216
217config FIQ
218	bool
219
220config NEED_RET_TO_USER
221	bool
222
223config ARCH_MTD_XIP
224	bool
225
226config VECTORS_BASE
227	hex
228	default 0xffff0000 if MMU || CPU_HIGH_VECTOR
229	default DRAM_BASE if REMAP_VECTORS_TO_RAM
230	default 0x00000000
231	help
232	  The base address of exception vectors.  This must be two pages
233	  in size.
234
235config ARM_PATCH_PHYS_VIRT
236	bool "Patch physical to virtual translations at runtime" if EMBEDDED
237	default y
238	depends on !XIP_KERNEL && MMU
239	depends on !ARCH_REALVIEW || !SPARSEMEM
240	help
241	  Patch phys-to-virt and virt-to-phys translation functions at
242	  boot and module load time according to the position of the
243	  kernel in system memory.
244
245	  This can only be used with non-XIP MMU kernels where the base
246	  of physical memory is at a 16MB boundary.
247
248	  Only disable this option if you know that you do not require
249	  this feature (eg, building a kernel for a single machine) and
250	  you need to shrink the kernel to the minimal size.
251
252config NEED_MACH_IO_H
253	bool
254	help
255	  Select this when mach/io.h is required to provide special
256	  definitions for this platform.  The need for mach/io.h should
257	  be avoided when possible.
258
259config NEED_MACH_MEMORY_H
260	bool
261	help
262	  Select this when mach/memory.h is required to provide special
263	  definitions for this platform.  The need for mach/memory.h should
264	  be avoided when possible.
265
266config PHYS_OFFSET
267	hex "Physical address of main memory" if MMU
268	depends on !ARM_PATCH_PHYS_VIRT
269	default DRAM_BASE if !MMU
270	default 0x00000000 if ARCH_EBSA110 || \
271			ARCH_FOOTBRIDGE || \
272			ARCH_INTEGRATOR || \
273			ARCH_IOP13XX || \
274			ARCH_KS8695 || \
275			(ARCH_REALVIEW && !REALVIEW_HIGH_PHYS_OFFSET)
276	default 0x10000000 if ARCH_OMAP1 || ARCH_RPC
277	default 0x20000000 if ARCH_S5PV210
278	default 0x70000000 if REALVIEW_HIGH_PHYS_OFFSET
279	default 0xc0000000 if ARCH_SA1100
280	help
281	  Please provide the physical address corresponding to the
282	  location of main memory in your system.
283
284config GENERIC_BUG
285	def_bool y
286	depends on BUG
287
288config PGTABLE_LEVELS
289	int
290	default 3 if ARM_LPAE
291	default 2
292
293source "init/Kconfig"
294
295source "kernel/Kconfig.freezer"
296
297menu "System Type"
298
299config MMU
300	bool "MMU-based Paged Memory Management Support"
301	default y
302	help
303	  Select if you want MMU-based virtualised addressing space
304	  support by paged memory management. If unsure, say 'Y'.
305
306#
307# The "ARM system type" choice list is ordered alphabetically by option
308# text.  Please add new entries in the option alphabetic order.
309#
310choice
311	prompt "ARM system type"
312	default ARCH_VERSATILE if !MMU
313	default ARCH_MULTIPLATFORM if MMU
314
315config ARCH_MULTIPLATFORM
316	bool "Allow multiple platforms to be selected"
317	depends on MMU
318	select ARCH_WANT_OPTIONAL_GPIOLIB
319	select ARM_HAS_SG_CHAIN
320	select ARM_PATCH_PHYS_VIRT
321	select AUTO_ZRELADDR
322	select CLKSRC_OF
323	select COMMON_CLK
324	select GENERIC_CLOCKEVENTS
325	select MIGHT_HAVE_PCI
326	select MULTI_IRQ_HANDLER
327	select SPARSE_IRQ
328	select USE_OF
329
330config ARM_SINGLE_ARMV7M
331	bool "ARMv7-M based platforms (Cortex-M0/M3/M4)"
332	depends on !MMU
333	select ARCH_WANT_OPTIONAL_GPIOLIB
334	select ARM_NVIC
335	select AUTO_ZRELADDR
336	select CLKSRC_OF
337	select COMMON_CLK
338	select CPU_V7M
339	select GENERIC_CLOCKEVENTS
340	select NO_IOPORT_MAP
341	select SPARSE_IRQ
342	select USE_OF
343
344config ARCH_REALVIEW
345	bool "ARM Ltd. RealView family"
346	select ARCH_WANT_OPTIONAL_GPIOLIB
347	select ARM_AMBA
348	select ARM_TIMER_SP804
349	select COMMON_CLK
350	select COMMON_CLK_VERSATILE
351	select GENERIC_CLOCKEVENTS
352	select GPIO_PL061 if GPIOLIB
353	select ICST
354	select NEED_MACH_MEMORY_H
355	select PLAT_VERSATILE
356	select PLAT_VERSATILE_SCHED_CLOCK
357	help
358	  This enables support for ARM Ltd RealView boards.
359
360config ARCH_VERSATILE
361	bool "ARM Ltd. Versatile family"
362	select ARCH_WANT_OPTIONAL_GPIOLIB
363	select ARM_AMBA
364	select ARM_TIMER_SP804
365	select ARM_VIC
366	select CLKDEV_LOOKUP
367	select GENERIC_CLOCKEVENTS
368	select HAVE_MACH_CLKDEV
369	select ICST
370	select PLAT_VERSATILE
371	select PLAT_VERSATILE_CLOCK
372	select PLAT_VERSATILE_SCHED_CLOCK
373	select VERSATILE_FPGA_IRQ
374	help
375	  This enables support for ARM Ltd Versatile board.
376
377config ARCH_CLPS711X
378	bool "Cirrus Logic CLPS711x/EP721x/EP731x-based"
379	select ARCH_REQUIRE_GPIOLIB
380	select AUTO_ZRELADDR
381	select CLKSRC_MMIO
382	select COMMON_CLK
383	select CPU_ARM720T
384	select GENERIC_CLOCKEVENTS
385	select MFD_SYSCON
386	select SOC_BUS
387	help
388	  Support for Cirrus Logic 711x/721x/731x based boards.
389
390config ARCH_GEMINI
391	bool "Cortina Systems Gemini"
392	select ARCH_REQUIRE_GPIOLIB
393	select CLKSRC_MMIO
394	select CPU_FA526
395	select GENERIC_CLOCKEVENTS
396	help
397	  Support for the Cortina Systems Gemini family SoCs
398
399config ARCH_EBSA110
400	bool "EBSA-110"
401	select ARCH_USES_GETTIMEOFFSET
402	select CPU_SA110
403	select ISA
404	select NEED_MACH_IO_H
405	select NEED_MACH_MEMORY_H
406	select NO_IOPORT_MAP
407	help
408	  This is an evaluation board for the StrongARM processor available
409	  from Digital. It has limited hardware on-board, including an
410	  Ethernet interface, two PCMCIA sockets, two serial ports and a
411	  parallel port.
412
413config ARCH_EP93XX
414	bool "EP93xx-based"
415	select ARCH_HAS_HOLES_MEMORYMODEL
416	select ARCH_REQUIRE_GPIOLIB
417	select ARM_AMBA
418	select ARM_PATCH_PHYS_VIRT
419	select ARM_VIC
420	select AUTO_ZRELADDR
421	select CLKDEV_LOOKUP
422	select CLKSRC_MMIO
423	select CPU_ARM920T
424	select GENERIC_CLOCKEVENTS
425	help
426	  This enables support for the Cirrus EP93xx series of CPUs.
427
428config ARCH_FOOTBRIDGE
429	bool "FootBridge"
430	select CPU_SA110
431	select FOOTBRIDGE
432	select GENERIC_CLOCKEVENTS
433	select HAVE_IDE
434	select NEED_MACH_IO_H if !MMU
435	select NEED_MACH_MEMORY_H
436	help
437	  Support for systems based on the DC21285 companion chip
438	  ("FootBridge"), such as the Simtec CATS and the Rebel NetWinder.
439
440config ARCH_NETX
441	bool "Hilscher NetX based"
442	select ARM_VIC
443	select CLKSRC_MMIO
444	select CPU_ARM926T
445	select GENERIC_CLOCKEVENTS
446	help
447	  This enables support for systems based on the Hilscher NetX Soc
448
449config ARCH_IOP13XX
450	bool "IOP13xx-based"
451	depends on MMU
452	select CPU_XSC3
453	select NEED_MACH_MEMORY_H
454	select NEED_RET_TO_USER
455	select PCI
456	select PLAT_IOP
457	select VMSPLIT_1G
458	select SPARSE_IRQ
459	help
460	  Support for Intel's IOP13XX (XScale) family of processors.
461
462config ARCH_IOP32X
463	bool "IOP32x-based"
464	depends on MMU
465	select ARCH_REQUIRE_GPIOLIB
466	select CPU_XSCALE
467	select GPIO_IOP
468	select NEED_RET_TO_USER
469	select PCI
470	select PLAT_IOP
471	help
472	  Support for Intel's 80219 and IOP32X (XScale) family of
473	  processors.
474
475config ARCH_IOP33X
476	bool "IOP33x-based"
477	depends on MMU
478	select ARCH_REQUIRE_GPIOLIB
479	select CPU_XSCALE
480	select GPIO_IOP
481	select NEED_RET_TO_USER
482	select PCI
483	select PLAT_IOP
484	help
485	  Support for Intel's IOP33X (XScale) family of processors.
486
487config ARCH_IXP4XX
488	bool "IXP4xx-based"
489	depends on MMU
490	select ARCH_HAS_DMA_SET_COHERENT_MASK
491	select ARCH_REQUIRE_GPIOLIB
492	select ARCH_SUPPORTS_BIG_ENDIAN
493	select CLKSRC_MMIO
494	select CPU_XSCALE
495	select DMABOUNCE if PCI
496	select GENERIC_CLOCKEVENTS
497	select MIGHT_HAVE_PCI
498	select NEED_MACH_IO_H
499	select USB_EHCI_BIG_ENDIAN_DESC
500	select USB_EHCI_BIG_ENDIAN_MMIO
501	help
502	  Support for Intel's IXP4XX (XScale) family of processors.
503
504config ARCH_DOVE
505	bool "Marvell Dove"
506	select ARCH_REQUIRE_GPIOLIB
507	select CPU_PJ4
508	select GENERIC_CLOCKEVENTS
509	select MIGHT_HAVE_PCI
510	select MVEBU_MBUS
511	select PINCTRL
512	select PINCTRL_DOVE
513	select PLAT_ORION_LEGACY
514	help
515	  Support for the Marvell Dove SoC 88AP510
516
517config ARCH_MV78XX0
518	bool "Marvell MV78xx0"
519	select ARCH_REQUIRE_GPIOLIB
520	select CPU_FEROCEON
521	select GENERIC_CLOCKEVENTS
522	select MVEBU_MBUS
523	select PCI
524	select PLAT_ORION_LEGACY
525	help
526	  Support for the following Marvell MV78xx0 series SoCs:
527	  MV781x0, MV782x0.
528
529config ARCH_ORION5X
530	bool "Marvell Orion"
531	depends on MMU
532	select ARCH_REQUIRE_GPIOLIB
533	select CPU_FEROCEON
534	select GENERIC_CLOCKEVENTS
535	select MVEBU_MBUS
536	select PCI
537	select PLAT_ORION_LEGACY
538	help
539	  Support for the following Marvell Orion 5x series SoCs:
540	  Orion-1 (5181), Orion-VoIP (5181L), Orion-NAS (5182),
541	  Orion-2 (5281), Orion-1-90 (6183).
542
543config ARCH_MMP
544	bool "Marvell PXA168/910/MMP2"
545	depends on MMU
546	select ARCH_REQUIRE_GPIOLIB
547	select CLKDEV_LOOKUP
548	select GENERIC_ALLOCATOR
549	select GENERIC_CLOCKEVENTS
550	select GPIO_PXA
551	select IRQ_DOMAIN
552	select MULTI_IRQ_HANDLER
553	select PINCTRL
554	select PLAT_PXA
555	select SPARSE_IRQ
556	help
557	  Support for Marvell's PXA168/PXA910(MMP) and MMP2 processor line.
558
559config ARCH_KS8695
560	bool "Micrel/Kendin KS8695"
561	select ARCH_REQUIRE_GPIOLIB
562	select CLKSRC_MMIO
563	select CPU_ARM922T
564	select GENERIC_CLOCKEVENTS
565	select NEED_MACH_MEMORY_H
566	help
567	  Support for Micrel/Kendin KS8695 "Centaur" (ARM922T) based
568	  System-on-Chip devices.
569
570config ARCH_W90X900
571	bool "Nuvoton W90X900 CPU"
572	select ARCH_REQUIRE_GPIOLIB
573	select CLKDEV_LOOKUP
574	select CLKSRC_MMIO
575	select CPU_ARM926T
576	select GENERIC_CLOCKEVENTS
577	help
578	  Support for Nuvoton (Winbond logic dept.) ARM9 processor,
579	  At present, the w90x900 has been renamed nuc900, regarding
580	  the ARM series product line, you can login the following
581	  link address to know more.
582
583	  <http://www.nuvoton.com/hq/enu/ProductAndSales/ProductLines/
584		ConsumerElectronicsIC/ARMMicrocontroller/ARMMicrocontroller>
585
586config ARCH_LPC32XX
587	bool "NXP LPC32XX"
588	select ARCH_REQUIRE_GPIOLIB
589	select ARM_AMBA
590	select CLKDEV_LOOKUP
591	select CLKSRC_MMIO
592	select CPU_ARM926T
593	select GENERIC_CLOCKEVENTS
594	select HAVE_IDE
595	select USE_OF
596	help
597	  Support for the NXP LPC32XX family of processors
598
599config ARCH_PXA
600	bool "PXA2xx/PXA3xx-based"
601	depends on MMU
602	select ARCH_MTD_XIP
603	select ARCH_REQUIRE_GPIOLIB
604	select ARM_CPU_SUSPEND if PM
605	select AUTO_ZRELADDR
606	select COMMON_CLK
607	select CLKDEV_LOOKUP
608	select CLKSRC_MMIO
609	select CLKSRC_OF
610	select GENERIC_CLOCKEVENTS
611	select GPIO_PXA
612	select HAVE_IDE
613	select IRQ_DOMAIN
614	select MULTI_IRQ_HANDLER
615	select PLAT_PXA
616	select SPARSE_IRQ
617	help
618	  Support for Intel/Marvell's PXA2xx/PXA3xx processor line.
619
620config ARCH_SHMOBILE_LEGACY
621	bool "Renesas ARM SoCs (non-multiplatform)"
622	select ARCH_SHMOBILE
623	select ARM_PATCH_PHYS_VIRT if MMU
624	select CLKDEV_LOOKUP
625	select CPU_V7
626	select GENERIC_CLOCKEVENTS
627	select HAVE_ARM_SCU if SMP
628	select HAVE_ARM_TWD if SMP
629	select HAVE_SMP
630	select MIGHT_HAVE_CACHE_L2X0
631	select MULTI_IRQ_HANDLER
632	select NO_IOPORT_MAP
633	select PINCTRL
634	select PM_GENERIC_DOMAINS if PM
635	select SH_CLK_CPG
636	select SPARSE_IRQ
637	help
638	  Support for Renesas ARM SoC platforms using a non-multiplatform
639	  kernel. This includes the SH-Mobile, R-Mobile, EMMA-Mobile, R-Car
640	  and RZ families.
641
642config ARCH_RPC
643	bool "RiscPC"
644	select ARCH_ACORN
645	select ARCH_MAY_HAVE_PC_FDC
646	select ARCH_SPARSEMEM_ENABLE
647	select ARCH_USES_GETTIMEOFFSET
648	select CPU_SA110
649	select FIQ
650	select HAVE_IDE
651	select HAVE_PATA_PLATFORM
652	select ISA_DMA_API
653	select NEED_MACH_IO_H
654	select NEED_MACH_MEMORY_H
655	select NO_IOPORT_MAP
656	select VIRT_TO_BUS
657	help
658	  On the Acorn Risc-PC, Linux can support the internal IDE disk and
659	  CD-ROM interface, serial and parallel port, and the floppy drive.
660
661config ARCH_SA1100
662	bool "SA1100-based"
663	select ARCH_MTD_XIP
664	select ARCH_REQUIRE_GPIOLIB
665	select ARCH_SPARSEMEM_ENABLE
666	select CLKDEV_LOOKUP
667	select CLKSRC_MMIO
668	select CPU_FREQ
669	select CPU_SA1100
670	select GENERIC_CLOCKEVENTS
671	select HAVE_IDE
672	select IRQ_DOMAIN
673	select ISA
674	select MULTI_IRQ_HANDLER
675	select NEED_MACH_MEMORY_H
676	select SPARSE_IRQ
677	help
678	  Support for StrongARM 11x0 based boards.
679
680config ARCH_S3C24XX
681	bool "Samsung S3C24XX SoCs"
682	select ARCH_REQUIRE_GPIOLIB
683	select ATAGS
684	select CLKDEV_LOOKUP
685	select CLKSRC_SAMSUNG_PWM
686	select GENERIC_CLOCKEVENTS
687	select GPIO_SAMSUNG
688	select HAVE_S3C2410_I2C if I2C
689	select HAVE_S3C2410_WATCHDOG if WATCHDOG
690	select HAVE_S3C_RTC if RTC_CLASS
691	select MULTI_IRQ_HANDLER
692	select NEED_MACH_IO_H
693	select SAMSUNG_ATAGS
694	help
695	  Samsung S3C2410, S3C2412, S3C2413, S3C2416, S3C2440, S3C2442, S3C2443
696	  and S3C2450 SoCs based systems, such as the Simtec Electronics BAST
697	  (<http://www.simtec.co.uk/products/EB110ITX/>), the IPAQ 1940 or the
698	  Samsung SMDK2410 development board (and derivatives).
699
700config ARCH_S3C64XX
701	bool "Samsung S3C64XX"
702	select ARCH_REQUIRE_GPIOLIB
703	select ARM_AMBA
704	select ARM_VIC
705	select ATAGS
706	select CLKDEV_LOOKUP
707	select CLKSRC_SAMSUNG_PWM
708	select COMMON_CLK_SAMSUNG
709	select CPU_V6K
710	select GENERIC_CLOCKEVENTS
711	select GPIO_SAMSUNG
712	select HAVE_S3C2410_I2C if I2C
713	select HAVE_S3C2410_WATCHDOG if WATCHDOG
714	select HAVE_TCM
715	select NO_IOPORT_MAP
716	select PLAT_SAMSUNG
717	select PM_GENERIC_DOMAINS if PM
718	select S3C_DEV_NAND
719	select S3C_GPIO_TRACK
720	select SAMSUNG_ATAGS
721	select SAMSUNG_WAKEMASK
722	select SAMSUNG_WDT_RESET
723	help
724	  Samsung S3C64XX series based systems
725
726config ARCH_DAVINCI
727	bool "TI DaVinci"
728	select ARCH_HAS_HOLES_MEMORYMODEL
729	select ARCH_REQUIRE_GPIOLIB
730	select CLKDEV_LOOKUP
731	select GENERIC_ALLOCATOR
732	select GENERIC_CLOCKEVENTS
733	select GENERIC_IRQ_CHIP
734	select HAVE_IDE
735	select TI_PRIV_EDMA
736	select USE_OF
737	select ZONE_DMA
738	help
739	  Support for TI's DaVinci platform.
740
741config ARCH_OMAP1
742	bool "TI OMAP1"
743	depends on MMU
744	select ARCH_HAS_HOLES_MEMORYMODEL
745	select ARCH_OMAP
746	select ARCH_REQUIRE_GPIOLIB
747	select CLKDEV_LOOKUP
748	select CLKSRC_MMIO
749	select GENERIC_CLOCKEVENTS
750	select GENERIC_IRQ_CHIP
751	select HAVE_IDE
752	select IRQ_DOMAIN
753	select MULTI_IRQ_HANDLER
754	select NEED_MACH_IO_H if PCCARD
755	select NEED_MACH_MEMORY_H
756	select SPARSE_IRQ
757	help
758	  Support for older TI OMAP1 (omap7xx, omap15xx or omap16xx)
759
760endchoice
761
762menu "Multiple platform selection"
763	depends on ARCH_MULTIPLATFORM
764
765comment "CPU Core family selection"
766
767config ARCH_MULTI_V4
768	bool "ARMv4 based platforms (FA526)"
769	depends on !ARCH_MULTI_V6_V7
770	select ARCH_MULTI_V4_V5
771	select CPU_FA526
772
773config ARCH_MULTI_V4T
774	bool "ARMv4T based platforms (ARM720T, ARM920T, ...)"
775	depends on !ARCH_MULTI_V6_V7
776	select ARCH_MULTI_V4_V5
777	select CPU_ARM920T if !(CPU_ARM7TDMI || CPU_ARM720T || \
778		CPU_ARM740T || CPU_ARM9TDMI || CPU_ARM922T || \
779		CPU_ARM925T || CPU_ARM940T)
780
781config ARCH_MULTI_V5
782	bool "ARMv5 based platforms (ARM926T, XSCALE, PJ1, ...)"
783	depends on !ARCH_MULTI_V6_V7
784	select ARCH_MULTI_V4_V5
785	select CPU_ARM926T if !(CPU_ARM946E || CPU_ARM1020 || \
786		CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \
787		CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_FEROCEON)
788
789config ARCH_MULTI_V4_V5
790	bool
791
792config ARCH_MULTI_V6
793	bool "ARMv6 based platforms (ARM11)"
794	select ARCH_MULTI_V6_V7
795	select CPU_V6K
796
797config ARCH_MULTI_V7
798	bool "ARMv7 based platforms (Cortex-A, PJ4, Scorpion, Krait)"
799	default y
800	select ARCH_MULTI_V6_V7
801	select CPU_V7
802	select HAVE_SMP
803
804config ARCH_MULTI_V6_V7
805	bool
806	select MIGHT_HAVE_CACHE_L2X0
807
808config ARCH_MULTI_CPU_AUTO
809	def_bool !(ARCH_MULTI_V4 || ARCH_MULTI_V4T || ARCH_MULTI_V6_V7)
810	select ARCH_MULTI_V5
811
812endmenu
813
814config ARCH_VIRT
815	bool "Dummy Virtual Machine" if ARCH_MULTI_V7
816	select ARM_AMBA
817	select ARM_GIC
818	select ARM_PSCI
819	select HAVE_ARM_ARCH_TIMER
820
821#
822# This is sorted alphabetically by mach-* pathname.  However, plat-*
823# Kconfigs may be included either alphabetically (according to the
824# plat- suffix) or along side the corresponding mach-* source.
825#
826source "arch/arm/mach-mvebu/Kconfig"
827
828source "arch/arm/mach-alpine/Kconfig"
829
830source "arch/arm/mach-asm9260/Kconfig"
831
832source "arch/arm/mach-at91/Kconfig"
833
834source "arch/arm/mach-axxia/Kconfig"
835
836source "arch/arm/mach-bcm/Kconfig"
837
838source "arch/arm/mach-berlin/Kconfig"
839
840source "arch/arm/mach-clps711x/Kconfig"
841
842source "arch/arm/mach-cns3xxx/Kconfig"
843
844source "arch/arm/mach-davinci/Kconfig"
845
846source "arch/arm/mach-digicolor/Kconfig"
847
848source "arch/arm/mach-dove/Kconfig"
849
850source "arch/arm/mach-ep93xx/Kconfig"
851
852source "arch/arm/mach-footbridge/Kconfig"
853
854source "arch/arm/mach-gemini/Kconfig"
855
856source "arch/arm/mach-highbank/Kconfig"
857
858source "arch/arm/mach-hisi/Kconfig"
859
860source "arch/arm/mach-integrator/Kconfig"
861
862source "arch/arm/mach-iop32x/Kconfig"
863
864source "arch/arm/mach-iop33x/Kconfig"
865
866source "arch/arm/mach-iop13xx/Kconfig"
867
868source "arch/arm/mach-ixp4xx/Kconfig"
869
870source "arch/arm/mach-keystone/Kconfig"
871
872source "arch/arm/mach-ks8695/Kconfig"
873
874source "arch/arm/mach-meson/Kconfig"
875
876source "arch/arm/mach-moxart/Kconfig"
877
878source "arch/arm/mach-mv78xx0/Kconfig"
879
880source "arch/arm/mach-imx/Kconfig"
881
882source "arch/arm/mach-mediatek/Kconfig"
883
884source "arch/arm/mach-mxs/Kconfig"
885
886source "arch/arm/mach-netx/Kconfig"
887
888source "arch/arm/mach-nomadik/Kconfig"
889
890source "arch/arm/mach-nspire/Kconfig"
891
892source "arch/arm/plat-omap/Kconfig"
893
894source "arch/arm/mach-omap1/Kconfig"
895
896source "arch/arm/mach-omap2/Kconfig"
897
898source "arch/arm/mach-orion5x/Kconfig"
899
900source "arch/arm/mach-picoxcell/Kconfig"
901
902source "arch/arm/mach-pxa/Kconfig"
903source "arch/arm/plat-pxa/Kconfig"
904
905source "arch/arm/mach-mmp/Kconfig"
906
907source "arch/arm/mach-qcom/Kconfig"
908
909source "arch/arm/mach-realview/Kconfig"
910
911source "arch/arm/mach-rockchip/Kconfig"
912
913source "arch/arm/mach-sa1100/Kconfig"
914
915source "arch/arm/mach-socfpga/Kconfig"
916
917source "arch/arm/mach-spear/Kconfig"
918
919source "arch/arm/mach-sti/Kconfig"
920
921source "arch/arm/mach-s3c24xx/Kconfig"
922
923source "arch/arm/mach-s3c64xx/Kconfig"
924
925source "arch/arm/mach-s5pv210/Kconfig"
926
927source "arch/arm/mach-exynos/Kconfig"
928source "arch/arm/plat-samsung/Kconfig"
929
930source "arch/arm/mach-shmobile/Kconfig"
931
932source "arch/arm/mach-sunxi/Kconfig"
933
934source "arch/arm/mach-prima2/Kconfig"
935
936source "arch/arm/mach-tegra/Kconfig"
937
938source "arch/arm/mach-u300/Kconfig"
939
940source "arch/arm/mach-uniphier/Kconfig"
941
942source "arch/arm/mach-ux500/Kconfig"
943
944source "arch/arm/mach-versatile/Kconfig"
945
946source "arch/arm/mach-vexpress/Kconfig"
947source "arch/arm/plat-versatile/Kconfig"
948
949source "arch/arm/mach-vt8500/Kconfig"
950
951source "arch/arm/mach-w90x900/Kconfig"
952
953source "arch/arm/mach-zx/Kconfig"
954
955source "arch/arm/mach-zynq/Kconfig"
956
957# ARMv7-M architecture
958config ARCH_EFM32
959	bool "Energy Micro efm32"
960	depends on ARM_SINGLE_ARMV7M
961	select ARCH_REQUIRE_GPIOLIB
962	help
963	  Support for Energy Micro's (now Silicon Labs) efm32 Giant Gecko
964	  processors.
965
966config ARCH_LPC18XX
967	bool "NXP LPC18xx/LPC43xx"
968	depends on ARM_SINGLE_ARMV7M
969	select ARCH_HAS_RESET_CONTROLLER
970	select ARM_AMBA
971	select CLKSRC_LPC32XX
972	select PINCTRL
973	help
974	  Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4
975	  high performance microcontrollers.
976
977config ARCH_STM32
978	bool "STMicrolectronics STM32"
979	depends on ARM_SINGLE_ARMV7M
980	select ARCH_HAS_RESET_CONTROLLER
981	select ARMV7M_SYSTICK
982	select CLKSRC_STM32
983	select RESET_CONTROLLER
984	help
985	  Support for STMicroelectronics STM32 processors.
986
987# Definitions to make life easier
988config ARCH_ACORN
989	bool
990
991config PLAT_IOP
992	bool
993	select GENERIC_CLOCKEVENTS
994
995config PLAT_ORION
996	bool
997	select CLKSRC_MMIO
998	select COMMON_CLK
999	select GENERIC_IRQ_CHIP
1000	select IRQ_DOMAIN
1001
1002config PLAT_ORION_LEGACY
1003	bool
1004	select PLAT_ORION
1005
1006config PLAT_PXA
1007	bool
1008
1009config PLAT_VERSATILE
1010	bool
1011
1012source "arch/arm/firmware/Kconfig"
1013
1014source arch/arm/mm/Kconfig
1015
1016config IWMMXT
1017	bool "Enable iWMMXt support"
1018	depends on CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_PJ4 || CPU_PJ4B
1019	default y if PXA27x || PXA3xx || ARCH_MMP || CPU_PJ4 || CPU_PJ4B
1020	help
1021	  Enable support for iWMMXt context switching at run time if
1022	  running on a CPU that supports it.
1023
1024config MULTI_IRQ_HANDLER
1025	bool
1026	help
1027	  Allow each machine to specify it's own IRQ handler at run time.
1028
1029if !MMU
1030source "arch/arm/Kconfig-nommu"
1031endif
1032
1033config PJ4B_ERRATA_4742
1034	bool "PJ4B Errata 4742: IDLE Wake Up Commands can Cause the CPU Core to Cease Operation"
1035	depends on CPU_PJ4B && MACH_ARMADA_370
1036	default y
1037	help
1038	  When coming out of either a Wait for Interrupt (WFI) or a Wait for
1039	  Event (WFE) IDLE states, a specific timing sensitivity exists between
1040	  the retiring WFI/WFE instructions and the newly issued subsequent
1041	  instructions.  This sensitivity can result in a CPU hang scenario.
1042	  Workaround:
1043	  The software must insert either a Data Synchronization Barrier (DSB)
1044	  or Data Memory Barrier (DMB) command immediately after the WFI/WFE
1045	  instruction
1046
1047config ARM_ERRATA_326103
1048	bool "ARM errata: FSR write bit incorrect on a SWP to read-only memory"
1049	depends on CPU_V6
1050	help
1051	  Executing a SWP instruction to read-only memory does not set bit 11
1052	  of the FSR on the ARM 1136 prior to r1p0. This causes the kernel to
1053	  treat the access as a read, preventing a COW from occurring and
1054	  causing the faulting task to livelock.
1055
1056config ARM_ERRATA_411920
1057	bool "ARM errata: Invalidation of the Instruction Cache operation can fail"
1058	depends on CPU_V6 || CPU_V6K
1059	help
1060	  Invalidation of the Instruction Cache operation can
1061	  fail. This erratum is present in 1136 (before r1p4), 1156 and 1176.
1062	  It does not affect the MPCore. This option enables the ARM Ltd.
1063	  recommended workaround.
1064
1065config ARM_ERRATA_430973
1066	bool "ARM errata: Stale prediction on replaced interworking branch"
1067	depends on CPU_V7
1068	help
1069	  This option enables the workaround for the 430973 Cortex-A8
1070	  r1p* erratum. If a code sequence containing an ARM/Thumb
1071	  interworking branch is replaced with another code sequence at the
1072	  same virtual address, whether due to self-modifying code or virtual
1073	  to physical address re-mapping, Cortex-A8 does not recover from the
1074	  stale interworking branch prediction. This results in Cortex-A8
1075	  executing the new code sequence in the incorrect ARM or Thumb state.
1076	  The workaround enables the BTB/BTAC operations by setting ACTLR.IBE
1077	  and also flushes the branch target cache at every context switch.
1078	  Note that setting specific bits in the ACTLR register may not be
1079	  available in non-secure mode.
1080
1081config ARM_ERRATA_458693
1082	bool "ARM errata: Processor deadlock when a false hazard is created"
1083	depends on CPU_V7
1084	depends on !ARCH_MULTIPLATFORM
1085	help
1086	  This option enables the workaround for the 458693 Cortex-A8 (r2p0)
1087	  erratum. For very specific sequences of memory operations, it is
1088	  possible for a hazard condition intended for a cache line to instead
1089	  be incorrectly associated with a different cache line. This false
1090	  hazard might then cause a processor deadlock. The workaround enables
1091	  the L1 caching of the NEON accesses and disables the PLD instruction
1092	  in the ACTLR register. Note that setting specific bits in the ACTLR
1093	  register may not be available in non-secure mode.
1094
1095config ARM_ERRATA_460075
1096	bool "ARM errata: Data written to the L2 cache can be overwritten with stale data"
1097	depends on CPU_V7
1098	depends on !ARCH_MULTIPLATFORM
1099	help
1100	  This option enables the workaround for the 460075 Cortex-A8 (r2p0)
1101	  erratum. Any asynchronous access to the L2 cache may encounter a
1102	  situation in which recent store transactions to the L2 cache are lost
1103	  and overwritten with stale memory contents from external memory. The
1104	  workaround disables the write-allocate mode for the L2 cache via the
1105	  ACTLR register. Note that setting specific bits in the ACTLR register
1106	  may not be available in non-secure mode.
1107
1108config ARM_ERRATA_742230
1109	bool "ARM errata: DMB operation may be faulty"
1110	depends on CPU_V7 && SMP
1111	depends on !ARCH_MULTIPLATFORM
1112	help
1113	  This option enables the workaround for the 742230 Cortex-A9
1114	  (r1p0..r2p2) erratum. Under rare circumstances, a DMB instruction
1115	  between two write operations may not ensure the correct visibility
1116	  ordering of the two writes. This workaround sets a specific bit in
1117	  the diagnostic register of the Cortex-A9 which causes the DMB
1118	  instruction to behave as a DSB, ensuring the correct behaviour of
1119	  the two writes.
1120
1121config ARM_ERRATA_742231
1122	bool "ARM errata: Incorrect hazard handling in the SCU may lead to data corruption"
1123	depends on CPU_V7 && SMP
1124	depends on !ARCH_MULTIPLATFORM
1125	help
1126	  This option enables the workaround for the 742231 Cortex-A9
1127	  (r2p0..r2p2) erratum. Under certain conditions, specific to the
1128	  Cortex-A9 MPCore micro-architecture, two CPUs working in SMP mode,
1129	  accessing some data located in the same cache line, may get corrupted
1130	  data due to bad handling of the address hazard when the line gets
1131	  replaced from one of the CPUs at the same time as another CPU is
1132	  accessing it. This workaround sets specific bits in the diagnostic
1133	  register of the Cortex-A9 which reduces the linefill issuing
1134	  capabilities of the processor.
1135
1136config ARM_ERRATA_643719
1137	bool "ARM errata: LoUIS bit field in CLIDR register is incorrect"
1138	depends on CPU_V7 && SMP
1139	default y
1140	help
1141	  This option enables the workaround for the 643719 Cortex-A9 (prior to
1142	  r1p0) erratum. On affected cores the LoUIS bit field of the CLIDR
1143	  register returns zero when it should return one. The workaround
1144	  corrects this value, ensuring cache maintenance operations which use
1145	  it behave as intended and avoiding data corruption.
1146
1147config ARM_ERRATA_720789
1148	bool "ARM errata: TLBIASIDIS and TLBIMVAIS operations can broadcast a faulty ASID"
1149	depends on CPU_V7
1150	help
1151	  This option enables the workaround for the 720789 Cortex-A9 (prior to
1152	  r2p0) erratum. A faulty ASID can be sent to the other CPUs for the
1153	  broadcasted CP15 TLB maintenance operations TLBIASIDIS and TLBIMVAIS.
1154	  As a consequence of this erratum, some TLB entries which should be
1155	  invalidated are not, resulting in an incoherency in the system page
1156	  tables. The workaround changes the TLB flushing routines to invalidate
1157	  entries regardless of the ASID.
1158
1159config ARM_ERRATA_743622
1160	bool "ARM errata: Faulty hazard checking in the Store Buffer may lead to data corruption"
1161	depends on CPU_V7
1162	depends on !ARCH_MULTIPLATFORM
1163	help
1164	  This option enables the workaround for the 743622 Cortex-A9
1165	  (r2p*) erratum. Under very rare conditions, a faulty
1166	  optimisation in the Cortex-A9 Store Buffer may lead to data
1167	  corruption. This workaround sets a specific bit in the diagnostic
1168	  register of the Cortex-A9 which disables the Store Buffer
1169	  optimisation, preventing the defect from occurring. This has no
1170	  visible impact on the overall performance or power consumption of the
1171	  processor.
1172
1173config ARM_ERRATA_751472
1174	bool "ARM errata: Interrupted ICIALLUIS may prevent completion of broadcasted operation"
1175	depends on CPU_V7
1176	depends on !ARCH_MULTIPLATFORM
1177	help
1178	  This option enables the workaround for the 751472 Cortex-A9 (prior
1179	  to r3p0) erratum. An interrupted ICIALLUIS operation may prevent the
1180	  completion of a following broadcasted operation if the second
1181	  operation is received by a CPU before the ICIALLUIS has completed,
1182	  potentially leading to corrupted entries in the cache or TLB.
1183
1184config ARM_ERRATA_754322
1185	bool "ARM errata: possible faulty MMU translations following an ASID switch"
1186	depends on CPU_V7
1187	help
1188	  This option enables the workaround for the 754322 Cortex-A9 (r2p*,
1189	  r3p*) erratum. A speculative memory access may cause a page table walk
1190	  which starts prior to an ASID switch but completes afterwards. This
1191	  can populate the micro-TLB with a stale entry which may be hit with
1192	  the new ASID. This workaround places two dsb instructions in the mm
1193	  switching code so that no page table walks can cross the ASID switch.
1194
1195config ARM_ERRATA_754327
1196	bool "ARM errata: no automatic Store Buffer drain"
1197	depends on CPU_V7 && SMP
1198	help
1199	  This option enables the workaround for the 754327 Cortex-A9 (prior to
1200	  r2p0) erratum. The Store Buffer does not have any automatic draining
1201	  mechanism and therefore a livelock may occur if an external agent
1202	  continuously polls a memory location waiting to observe an update.
1203	  This workaround defines cpu_relax() as smp_mb(), preventing correctly
1204	  written polling loops from denying visibility of updates to memory.
1205
1206config ARM_ERRATA_364296
1207	bool "ARM errata: Possible cache data corruption with hit-under-miss enabled"
1208	depends on CPU_V6
1209	help
1210	  This options enables the workaround for the 364296 ARM1136
1211	  r0p2 erratum (possible cache data corruption with
1212	  hit-under-miss enabled). It sets the undocumented bit 31 in
1213	  the auxiliary control register and the FI bit in the control
1214	  register, thus disabling hit-under-miss without putting the
1215	  processor into full low interrupt latency mode. ARM11MPCore
1216	  is not affected.
1217
1218config ARM_ERRATA_764369
1219	bool "ARM errata: Data cache line maintenance operation by MVA may not succeed"
1220	depends on CPU_V7 && SMP
1221	help
1222	  This option enables the workaround for erratum 764369
1223	  affecting Cortex-A9 MPCore with two or more processors (all
1224	  current revisions). Under certain timing circumstances, a data
1225	  cache line maintenance operation by MVA targeting an Inner
1226	  Shareable memory region may fail to proceed up to either the
1227	  Point of Coherency or to the Point of Unification of the
1228	  system. This workaround adds a DSB instruction before the
1229	  relevant cache maintenance functions and sets a specific bit
1230	  in the diagnostic control register of the SCU.
1231
1232config ARM_ERRATA_775420
1233       bool "ARM errata: A data cache maintenance operation which aborts, might lead to deadlock"
1234       depends on CPU_V7
1235       help
1236	 This option enables the workaround for the 775420 Cortex-A9 (r2p2,
1237	 r2p6,r2p8,r2p10,r3p0) erratum. In case a date cache maintenance
1238	 operation aborts with MMU exception, it might cause the processor
1239	 to deadlock. This workaround puts DSB before executing ISB if
1240	 an abort may occur on cache maintenance.
1241
1242config ARM_ERRATA_798181
1243	bool "ARM errata: TLBI/DSB failure on Cortex-A15"
1244	depends on CPU_V7 && SMP
1245	help
1246	  On Cortex-A15 (r0p0..r3p2) the TLBI*IS/DSB operations are not
1247	  adequately shooting down all use of the old entries. This
1248	  option enables the Linux kernel workaround for this erratum
1249	  which sends an IPI to the CPUs that are running the same ASID
1250	  as the one being invalidated.
1251
1252config ARM_ERRATA_773022
1253	bool "ARM errata: incorrect instructions may be executed from loop buffer"
1254	depends on CPU_V7
1255	help
1256	  This option enables the workaround for the 773022 Cortex-A15
1257	  (up to r0p4) erratum. In certain rare sequences of code, the
1258	  loop buffer may deliver incorrect instructions. This
1259	  workaround disables the loop buffer to avoid the erratum.
1260
1261endmenu
1262
1263source "arch/arm/common/Kconfig"
1264
1265menu "Bus support"
1266
1267config ISA
1268	bool
1269	help
1270	  Find out whether you have ISA slots on your motherboard.  ISA is the
1271	  name of a bus system, i.e. the way the CPU talks to the other stuff
1272	  inside your box.  Other bus systems are PCI, EISA, MicroChannel
1273	  (MCA) or VESA.  ISA is an older system, now being displaced by PCI;
1274	  newer boards don't support it.  If you have ISA, say Y, otherwise N.
1275
1276# Select ISA DMA controller support
1277config ISA_DMA
1278	bool
1279	select ISA_DMA_API
1280
1281# Select ISA DMA interface
1282config ISA_DMA_API
1283	bool
1284
1285config PCI
1286	bool "PCI support" if MIGHT_HAVE_PCI
1287	help
1288	  Find out whether you have a PCI motherboard. PCI is the name of a
1289	  bus system, i.e. the way the CPU talks to the other stuff inside
1290	  your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
1291	  VESA. If you have PCI, say Y, otherwise N.
1292
1293config PCI_DOMAINS
1294	bool
1295	depends on PCI
1296
1297config PCI_DOMAINS_GENERIC
1298	def_bool PCI_DOMAINS
1299
1300config PCI_NANOENGINE
1301	bool "BSE nanoEngine PCI support"
1302	depends on SA1100_NANOENGINE
1303	help
1304	  Enable PCI on the BSE nanoEngine board.
1305
1306config PCI_SYSCALL
1307	def_bool PCI
1308
1309config PCI_HOST_ITE8152
1310	bool
1311	depends on PCI && MACH_ARMCORE
1312	default y
1313	select DMABOUNCE
1314
1315source "drivers/pci/Kconfig"
1316source "drivers/pci/pcie/Kconfig"
1317
1318source "drivers/pcmcia/Kconfig"
1319
1320endmenu
1321
1322menu "Kernel Features"
1323
1324config HAVE_SMP
1325	bool
1326	help
1327	  This option should be selected by machines which have an SMP-
1328	  capable CPU.
1329
1330	  The only effect of this option is to make the SMP-related
1331	  options available to the user for configuration.
1332
1333config SMP
1334	bool "Symmetric Multi-Processing"
1335	depends on CPU_V6K || CPU_V7
1336	depends on GENERIC_CLOCKEVENTS
1337	depends on HAVE_SMP
1338	depends on MMU || ARM_MPU
1339	select IRQ_WORK
1340	help
1341	  This enables support for systems with more than one CPU. If you have
1342	  a system with only one CPU, say N. If you have a system with more
1343	  than one CPU, say Y.
1344
1345	  If you say N here, the kernel will run on uni- and multiprocessor
1346	  machines, but will use only one CPU of a multiprocessor machine. If
1347	  you say Y here, the kernel will run on many, but not all,
1348	  uniprocessor machines. On a uniprocessor machine, the kernel
1349	  will run faster if you say N here.
1350
1351	  See also <file:Documentation/x86/i386/IO-APIC.txt>,
1352	  <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
1353	  <http://tldp.org/HOWTO/SMP-HOWTO.html>.
1354
1355	  If you don't know what to do here, say N.
1356
1357config SMP_ON_UP
1358	bool "Allow booting SMP kernel on uniprocessor systems"
1359	depends on SMP && !XIP_KERNEL && MMU
1360	default y
1361	help
1362	  SMP kernels contain instructions which fail on non-SMP processors.
1363	  Enabling this option allows the kernel to modify itself to make
1364	  these instructions safe.  Disabling it allows about 1K of space
1365	  savings.
1366
1367	  If you don't know what to do here, say Y.
1368
1369config ARM_CPU_TOPOLOGY
1370	bool "Support cpu topology definition"
1371	depends on SMP && CPU_V7
1372	default y
1373	help
1374	  Support ARM cpu topology definition. The MPIDR register defines
1375	  affinity between processors which is then used to describe the cpu
1376	  topology of an ARM System.
1377
1378config SCHED_MC
1379	bool "Multi-core scheduler support"
1380	depends on ARM_CPU_TOPOLOGY
1381	help
1382	  Multi-core scheduler support improves the CPU scheduler's decision
1383	  making when dealing with multi-core CPU chips at a cost of slightly
1384	  increased overhead in some places. If unsure say N here.
1385
1386config SCHED_SMT
1387	bool "SMT scheduler support"
1388	depends on ARM_CPU_TOPOLOGY
1389	help
1390	  Improves the CPU scheduler's decision making when dealing with
1391	  MultiThreading at a cost of slightly increased overhead in some
1392	  places. If unsure say N here.
1393
1394config HAVE_ARM_SCU
1395	bool
1396	help
1397	  This option enables support for the ARM system coherency unit
1398
1399config HAVE_ARM_ARCH_TIMER
1400	bool "Architected timer support"
1401	depends on CPU_V7
1402	select ARM_ARCH_TIMER
1403	select GENERIC_CLOCKEVENTS
1404	help
1405	  This option enables support for the ARM architected timer
1406
1407config HAVE_ARM_TWD
1408	bool
1409	depends on SMP
1410	select CLKSRC_OF if OF
1411	help
1412	  This options enables support for the ARM timer and watchdog unit
1413
1414config MCPM
1415	bool "Multi-Cluster Power Management"
1416	depends on CPU_V7 && SMP
1417	help
1418	  This option provides the common power management infrastructure
1419	  for (multi-)cluster based systems, such as big.LITTLE based
1420	  systems.
1421
1422config MCPM_QUAD_CLUSTER
1423	bool
1424	depends on MCPM
1425	help
1426	  To avoid wasting resources unnecessarily, MCPM only supports up
1427	  to 2 clusters by default.
1428	  Platforms with 3 or 4 clusters that use MCPM must select this
1429	  option to allow the additional clusters to be managed.
1430
1431config BIG_LITTLE
1432	bool "big.LITTLE support (Experimental)"
1433	depends on CPU_V7 && SMP
1434	select MCPM
1435	help
1436	  This option enables support selections for the big.LITTLE
1437	  system architecture.
1438
1439config BL_SWITCHER
1440	bool "big.LITTLE switcher support"
1441	depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
1442	select ARM_CPU_SUSPEND
1443	select CPU_PM
1444	help
1445	  The big.LITTLE "switcher" provides the core functionality to
1446	  transparently handle transition between a cluster of A15's
1447	  and a cluster of A7's in a big.LITTLE system.
1448
1449config BL_SWITCHER_DUMMY_IF
1450	tristate "Simple big.LITTLE switcher user interface"
1451	depends on BL_SWITCHER && DEBUG_KERNEL
1452	help
1453	  This is a simple and dummy char dev interface to control
1454	  the big.LITTLE switcher core code.  It is meant for
1455	  debugging purposes only.
1456
1457choice
1458	prompt "Memory split"
1459	depends on MMU
1460	default VMSPLIT_3G
1461	help
1462	  Select the desired split between kernel and user memory.
1463
1464	  If you are not absolutely sure what you are doing, leave this
1465	  option alone!
1466
1467	config VMSPLIT_3G
1468		bool "3G/1G user/kernel split"
1469	config VMSPLIT_2G
1470		bool "2G/2G user/kernel split"
1471	config VMSPLIT_1G
1472		bool "1G/3G user/kernel split"
1473endchoice
1474
1475config PAGE_OFFSET
1476	hex
1477	default PHYS_OFFSET if !MMU
1478	default 0x40000000 if VMSPLIT_1G
1479	default 0x80000000 if VMSPLIT_2G
1480	default 0xC0000000
1481
1482config NR_CPUS
1483	int "Maximum number of CPUs (2-32)"
1484	range 2 32
1485	depends on SMP
1486	default "4"
1487
1488config HOTPLUG_CPU
1489	bool "Support for hot-pluggable CPUs"
1490	depends on SMP
1491	help
1492	  Say Y here to experiment with turning CPUs off and on.  CPUs
1493	  can be controlled through /sys/devices/system/cpu.
1494
1495config ARM_PSCI
1496	bool "Support for the ARM Power State Coordination Interface (PSCI)"
1497	depends on CPU_V7
1498	help
1499	  Say Y here if you want Linux to communicate with system firmware
1500	  implementing the PSCI specification for CPU-centric power
1501	  management operations described in ARM document number ARM DEN
1502	  0022A ("Power State Coordination Interface System Software on
1503	  ARM processors").
1504
1505# The GPIO number here must be sorted by descending number. In case of
1506# a multiplatform kernel, we just want the highest value required by the
1507# selected platforms.
1508config ARCH_NR_GPIO
1509	int
1510	default 1024 if ARCH_BRCMSTB || ARCH_SHMOBILE || ARCH_TEGRA || \
1511		ARCH_ZYNQ
1512	default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5 || \
1513		SOC_DRA7XX || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
1514	default 416 if ARCH_SUNXI
1515	default 392 if ARCH_U8500
1516	default 352 if ARCH_VT8500
1517	default 288 if ARCH_ROCKCHIP
1518	default 264 if MACH_H4700
1519	default 0
1520	help
1521	  Maximum number of GPIOs in the system.
1522
1523	  If unsure, leave the default value.
1524
1525source kernel/Kconfig.preempt
1526
1527config HZ_FIXED
1528	int
1529	default 200 if ARCH_EBSA110 || ARCH_S3C24XX || \
1530		ARCH_S5PV210 || ARCH_EXYNOS4
1531	default 128 if SOC_AT91RM9200
1532	default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE_LEGACY
1533	default 0
1534
1535choice
1536	depends on HZ_FIXED = 0
1537	prompt "Timer frequency"
1538
1539config HZ_100
1540	bool "100 Hz"
1541
1542config HZ_200
1543	bool "200 Hz"
1544
1545config HZ_250
1546	bool "250 Hz"
1547
1548config HZ_300
1549	bool "300 Hz"
1550
1551config HZ_500
1552	bool "500 Hz"
1553
1554config HZ_1000
1555	bool "1000 Hz"
1556
1557endchoice
1558
1559config HZ
1560	int
1561	default HZ_FIXED if HZ_FIXED != 0
1562	default 100 if HZ_100
1563	default 200 if HZ_200
1564	default 250 if HZ_250
1565	default 300 if HZ_300
1566	default 500 if HZ_500
1567	default 1000
1568
1569config SCHED_HRTICK
1570	def_bool HIGH_RES_TIMERS
1571
1572config THUMB2_KERNEL
1573	bool "Compile the kernel in Thumb-2 mode" if !CPU_THUMBONLY
1574	depends on (CPU_V7 || CPU_V7M) && !CPU_V6 && !CPU_V6K
1575	default y if CPU_THUMBONLY
1576	select AEABI
1577	select ARM_ASM_UNIFIED
1578	select ARM_UNWIND
1579	help
1580	  By enabling this option, the kernel will be compiled in
1581	  Thumb-2 mode. A compiler/assembler that understand the unified
1582	  ARM-Thumb syntax is needed.
1583
1584	  If unsure, say N.
1585
1586config THUMB2_AVOID_R_ARM_THM_JUMP11
1587	bool "Work around buggy Thumb-2 short branch relocations in gas"
1588	depends on THUMB2_KERNEL && MODULES
1589	default y
1590	help
1591	  Various binutils versions can resolve Thumb-2 branches to
1592	  locally-defined, preemptible global symbols as short-range "b.n"
1593	  branch instructions.
1594
1595	  This is a problem, because there's no guarantee the final
1596	  destination of the symbol, or any candidate locations for a
1597	  trampoline, are within range of the branch.  For this reason, the
1598	  kernel does not support fixing up the R_ARM_THM_JUMP11 (102)
1599	  relocation in modules at all, and it makes little sense to add
1600	  support.
1601
1602	  The symptom is that the kernel fails with an "unsupported
1603	  relocation" error when loading some modules.
1604
1605	  Until fixed tools are available, passing
1606	  -fno-optimize-sibling-calls to gcc should prevent gcc generating
1607	  code which hits this problem, at the cost of a bit of extra runtime
1608	  stack usage in some cases.
1609
1610	  The problem is described in more detail at:
1611	      https://bugs.launchpad.net/binutils-linaro/+bug/725126
1612
1613	  Only Thumb-2 kernels are affected.
1614
1615	  Unless you are sure your tools don't have this problem, say Y.
1616
1617config ARM_ASM_UNIFIED
1618	bool
1619
1620config AEABI
1621	bool "Use the ARM EABI to compile the kernel"
1622	help
1623	  This option allows for the kernel to be compiled using the latest
1624	  ARM ABI (aka EABI).  This is only useful if you are using a user
1625	  space environment that is also compiled with EABI.
1626
1627	  Since there are major incompatibilities between the legacy ABI and
1628	  EABI, especially with regard to structure member alignment, this
1629	  option also changes the kernel syscall calling convention to
1630	  disambiguate both ABIs and allow for backward compatibility support
1631	  (selected with CONFIG_OABI_COMPAT).
1632
1633	  To use this you need GCC version 4.0.0 or later.
1634
1635config OABI_COMPAT
1636	bool "Allow old ABI binaries to run with this kernel (EXPERIMENTAL)"
1637	depends on AEABI && !THUMB2_KERNEL
1638	help
1639	  This option preserves the old syscall interface along with the
1640	  new (ARM EABI) one. It also provides a compatibility layer to
1641	  intercept syscalls that have structure arguments which layout
1642	  in memory differs between the legacy ABI and the new ARM EABI
1643	  (only for non "thumb" binaries). This option adds a tiny
1644	  overhead to all syscalls and produces a slightly larger kernel.
1645
1646	  The seccomp filter system will not be available when this is
1647	  selected, since there is no way yet to sensibly distinguish
1648	  between calling conventions during filtering.
1649
1650	  If you know you'll be using only pure EABI user space then you
1651	  can say N here. If this option is not selected and you attempt
1652	  to execute a legacy ABI binary then the result will be
1653	  UNPREDICTABLE (in fact it can be predicted that it won't work
1654	  at all). If in doubt say N.
1655
1656config ARCH_HAS_HOLES_MEMORYMODEL
1657	bool
1658
1659config ARCH_SPARSEMEM_ENABLE
1660	bool
1661
1662config ARCH_SPARSEMEM_DEFAULT
1663	def_bool ARCH_SPARSEMEM_ENABLE
1664
1665config ARCH_SELECT_MEMORY_MODEL
1666	def_bool ARCH_SPARSEMEM_ENABLE
1667
1668config HAVE_ARCH_PFN_VALID
1669	def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
1670
1671config HAVE_GENERIC_RCU_GUP
1672	def_bool y
1673	depends on ARM_LPAE
1674
1675config HIGHMEM
1676	bool "High Memory Support"
1677	depends on MMU
1678	help
1679	  The address space of ARM processors is only 4 Gigabytes large
1680	  and it has to accommodate user address space, kernel address
1681	  space as well as some memory mapped IO. That means that, if you
1682	  have a large amount of physical memory and/or IO, not all of the
1683	  memory can be "permanently mapped" by the kernel. The physical
1684	  memory that is not permanently mapped is called "high memory".
1685
1686	  Depending on the selected kernel/user memory split, minimum
1687	  vmalloc space and actual amount of RAM, you may not need this
1688	  option which should result in a slightly faster kernel.
1689
1690	  If unsure, say n.
1691
1692config HIGHPTE
1693	bool "Allocate 2nd-level pagetables from highmem"
1694	depends on HIGHMEM
1695	help
1696	  The VM uses one page of physical memory for each page table.
1697	  For systems with a lot of processes, this can use a lot of
1698	  precious low memory, eventually leading to low memory being
1699	  consumed by page tables.  Setting this option will allow
1700	  user-space 2nd level page tables to reside in high memory.
1701
1702config HW_PERF_EVENTS
1703	bool "Enable hardware performance counter support for perf events"
1704	depends on PERF_EVENTS
1705	default y
1706	help
1707	  Enable hardware performance counter support for perf events. If
1708	  disabled, perf events will use software events only.
1709
1710config SYS_SUPPORTS_HUGETLBFS
1711       def_bool y
1712       depends on ARM_LPAE
1713
1714config HAVE_ARCH_TRANSPARENT_HUGEPAGE
1715       def_bool y
1716       depends on ARM_LPAE
1717
1718config ARCH_WANT_GENERAL_HUGETLB
1719	def_bool y
1720
1721config ARM_MODULE_PLTS
1722	bool "Use PLTs to allow module memory to spill over into vmalloc area"
1723	depends on MODULES
1724	help
1725	  Allocate PLTs when loading modules so that jumps and calls whose
1726	  targets are too far away for their relative offsets to be encoded
1727	  in the instructions themselves can be bounced via veneers in the
1728	  module's PLT. This allows modules to be allocated in the generic
1729	  vmalloc area after the dedicated module memory area has been
1730	  exhausted. The modules will use slightly more memory, but after
1731	  rounding up to page size, the actual memory footprint is usually
1732	  the same.
1733
1734	  Say y if you are getting out of memory errors while loading modules
1735
1736source "mm/Kconfig"
1737
1738config FORCE_MAX_ZONEORDER
1739	int "Maximum zone order" if ARCH_SHMOBILE_LEGACY
1740	range 11 64 if ARCH_SHMOBILE_LEGACY
1741	default "12" if SOC_AM33XX
1742	default "9" if SA1111 || ARCH_EFM32
1743	default "11"
1744	help
1745	  The kernel memory allocator divides physically contiguous memory
1746	  blocks into "zones", where each zone is a power of two number of
1747	  pages.  This option selects the largest power of two that the kernel
1748	  keeps in the memory allocator.  If you need to allocate very large
1749	  blocks of physically contiguous memory, then you may need to
1750	  increase this value.
1751
1752	  This config option is actually maximum order plus one. For example,
1753	  a value of 11 means that the largest free memory block is 2^10 pages.
1754
1755config ALIGNMENT_TRAP
1756	bool
1757	depends on CPU_CP15_MMU
1758	default y if !ARCH_EBSA110
1759	select HAVE_PROC_CPU if PROC_FS
1760	help
1761	  ARM processors cannot fetch/store information which is not
1762	  naturally aligned on the bus, i.e., a 4 byte fetch must start at an
1763	  address divisible by 4. On 32-bit ARM processors, these non-aligned
1764	  fetch/store instructions will be emulated in software if you say
1765	  here, which has a severe performance impact. This is necessary for
1766	  correct operation of some network protocols. With an IP-only
1767	  configuration it is safe to say N, otherwise say Y.
1768
1769config UACCESS_WITH_MEMCPY
1770	bool "Use kernel mem{cpy,set}() for {copy_to,clear}_user()"
1771	depends on MMU
1772	default y if CPU_FEROCEON
1773	help
1774	  Implement faster copy_to_user and clear_user methods for CPU
1775	  cores where a 8-word STM instruction give significantly higher
1776	  memory write throughput than a sequence of individual 32bit stores.
1777
1778	  A possible side effect is a slight increase in scheduling latency
1779	  between threads sharing the same address space if they invoke
1780	  such copy operations with large buffers.
1781
1782	  However, if the CPU data cache is using a write-allocate mode,
1783	  this option is unlikely to provide any performance gain.
1784
1785config SECCOMP
1786	bool
1787	prompt "Enable seccomp to safely compute untrusted bytecode"
1788	---help---
1789	  This kernel feature is useful for number crunching applications
1790	  that may need to compute untrusted bytecode during their
1791	  execution. By using pipes or other transports made available to
1792	  the process as file descriptors supporting the read/write
1793	  syscalls, it's possible to isolate those applications in
1794	  their own address space using seccomp. Once seccomp is
1795	  enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
1796	  and the task is only allowed to execute a few safe syscalls
1797	  defined by each seccomp mode.
1798
1799config SWIOTLB
1800	def_bool y
1801
1802config IOMMU_HELPER
1803	def_bool SWIOTLB
1804
1805config XEN_DOM0
1806	def_bool y
1807	depends on XEN
1808
1809config XEN
1810	bool "Xen guest support on ARM"
1811	depends on ARM && AEABI && OF
1812	depends on CPU_V7 && !CPU_V6
1813	depends on !GENERIC_ATOMIC64
1814	depends on MMU
1815	select ARCH_DMA_ADDR_T_64BIT
1816	select ARM_PSCI
1817	select SWIOTLB_XEN
1818	help
1819	  Say Y if you want to run Linux in a Virtual Machine on Xen on ARM.
1820
1821endmenu
1822
1823menu "Boot options"
1824
1825config USE_OF
1826	bool "Flattened Device Tree support"
1827	select IRQ_DOMAIN
1828	select OF
1829	select OF_EARLY_FLATTREE
1830	select OF_RESERVED_MEM
1831	help
1832	  Include support for flattened device tree machine descriptions.
1833
1834config ATAGS
1835	bool "Support for the traditional ATAGS boot data passing" if USE_OF
1836	default y
1837	help
1838	  This is the traditional way of passing data to the kernel at boot
1839	  time. If you are solely relying on the flattened device tree (or
1840	  the ARM_ATAG_DTB_COMPAT option) then you may unselect this option
1841	  to remove ATAGS support from your kernel binary.  If unsure,
1842	  leave this to y.
1843
1844config DEPRECATED_PARAM_STRUCT
1845	bool "Provide old way to pass kernel parameters"
1846	depends on ATAGS
1847	help
1848	  This was deprecated in 2001 and announced to live on for 5 years.
1849	  Some old boot loaders still use this way.
1850
1851# Compressed boot loader in ROM.  Yes, we really want to ask about
1852# TEXT and BSS so we preserve their values in the config files.
1853config ZBOOT_ROM_TEXT
1854	hex "Compressed ROM boot loader base address"
1855	default "0"
1856	help
1857	  The physical address at which the ROM-able zImage is to be
1858	  placed in the target.  Platforms which normally make use of
1859	  ROM-able zImage formats normally set this to a suitable
1860	  value in their defconfig file.
1861
1862	  If ZBOOT_ROM is not enabled, this has no effect.
1863
1864config ZBOOT_ROM_BSS
1865	hex "Compressed ROM boot loader BSS address"
1866	default "0"
1867	help
1868	  The base address of an area of read/write memory in the target
1869	  for the ROM-able zImage which must be available while the
1870	  decompressor is running. It must be large enough to hold the
1871	  entire decompressed kernel plus an additional 128 KiB.
1872	  Platforms which normally make use of ROM-able zImage formats
1873	  normally set this to a suitable value in their defconfig file.
1874
1875	  If ZBOOT_ROM is not enabled, this has no effect.
1876
1877config ZBOOT_ROM
1878	bool "Compressed boot loader in ROM/flash"
1879	depends on ZBOOT_ROM_TEXT != ZBOOT_ROM_BSS
1880	depends on !ARM_APPENDED_DTB && !XIP_KERNEL && !AUTO_ZRELADDR
1881	help
1882	  Say Y here if you intend to execute your compressed kernel image
1883	  (zImage) directly from ROM or flash.  If unsure, say N.
1884
1885config ARM_APPENDED_DTB
1886	bool "Use appended device tree blob to zImage (EXPERIMENTAL)"
1887	depends on OF
1888	help
1889	  With this option, the boot code will look for a device tree binary
1890	  (DTB) appended to zImage
1891	  (e.g. cat zImage <filename>.dtb > zImage_w_dtb).
1892
1893	  This is meant as a backward compatibility convenience for those
1894	  systems with a bootloader that can't be upgraded to accommodate
1895	  the documented boot protocol using a device tree.
1896
1897	  Beware that there is very little in terms of protection against
1898	  this option being confused by leftover garbage in memory that might
1899	  look like a DTB header after a reboot if no actual DTB is appended
1900	  to zImage.  Do not leave this option active in a production kernel
1901	  if you don't intend to always append a DTB.  Proper passing of the
1902	  location into r2 of a bootloader provided DTB is always preferable
1903	  to this option.
1904
1905config ARM_ATAG_DTB_COMPAT
1906	bool "Supplement the appended DTB with traditional ATAG information"
1907	depends on ARM_APPENDED_DTB
1908	help
1909	  Some old bootloaders can't be updated to a DTB capable one, yet
1910	  they provide ATAGs with memory configuration, the ramdisk address,
1911	  the kernel cmdline string, etc.  Such information is dynamically
1912	  provided by the bootloader and can't always be stored in a static
1913	  DTB.  To allow a device tree enabled kernel to be used with such
1914	  bootloaders, this option allows zImage to extract the information
1915	  from the ATAG list and store it at run time into the appended DTB.
1916
1917choice
1918	prompt "Kernel command line type" if ARM_ATAG_DTB_COMPAT
1919	default ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
1920
1921config ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
1922	bool "Use bootloader kernel arguments if available"
1923	help
1924	  Uses the command-line options passed by the boot loader instead of
1925	  the device tree bootargs property. If the boot loader doesn't provide
1926	  any, the device tree bootargs property will be used.
1927
1928config ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND
1929	bool "Extend with bootloader kernel arguments"
1930	help
1931	  The command-line arguments provided by the boot loader will be
1932	  appended to the the device tree bootargs property.
1933
1934endchoice
1935
1936config CMDLINE
1937	string "Default kernel command string"
1938	default ""
1939	help
1940	  On some architectures (EBSA110 and CATS), there is currently no way
1941	  for the boot loader to pass arguments to the kernel. For these
1942	  architectures, you should supply some command-line options at build
1943	  time by entering them here. As a minimum, you should specify the
1944	  memory size and the root device (e.g., mem=64M root=/dev/nfs).
1945
1946choice
1947	prompt "Kernel command line type" if CMDLINE != ""
1948	default CMDLINE_FROM_BOOTLOADER
1949	depends on ATAGS
1950
1951config CMDLINE_FROM_BOOTLOADER
1952	bool "Use bootloader kernel arguments if available"
1953	help
1954	  Uses the command-line options passed by the boot loader. If
1955	  the boot loader doesn't provide any, the default kernel command
1956	  string provided in CMDLINE will be used.
1957
1958config CMDLINE_EXTEND
1959	bool "Extend bootloader kernel arguments"
1960	help
1961	  The command-line arguments provided by the boot loader will be
1962	  appended to the default kernel command string.
1963
1964config CMDLINE_FORCE
1965	bool "Always use the default kernel command string"
1966	help
1967	  Always use the default kernel command string, even if the boot
1968	  loader passes other arguments to the kernel.
1969	  This is useful if you cannot or don't want to change the
1970	  command-line options your boot loader passes to the kernel.
1971endchoice
1972
1973config XIP_KERNEL
1974	bool "Kernel Execute-In-Place from ROM"
1975	depends on !ARM_LPAE && !ARCH_MULTIPLATFORM
1976	help
1977	  Execute-In-Place allows the kernel to run from non-volatile storage
1978	  directly addressable by the CPU, such as NOR flash. This saves RAM
1979	  space since the text section of the kernel is not loaded from flash
1980	  to RAM.  Read-write sections, such as the data section and stack,
1981	  are still copied to RAM.  The XIP kernel is not compressed since
1982	  it has to run directly from flash, so it will take more space to
1983	  store it.  The flash address used to link the kernel object files,
1984	  and for storing it, is configuration dependent. Therefore, if you
1985	  say Y here, you must know the proper physical address where to
1986	  store the kernel image depending on your own flash memory usage.
1987
1988	  Also note that the make target becomes "make xipImage" rather than
1989	  "make zImage" or "make Image".  The final kernel binary to put in
1990	  ROM memory will be arch/arm/boot/xipImage.
1991
1992	  If unsure, say N.
1993
1994config XIP_PHYS_ADDR
1995	hex "XIP Kernel Physical Location"
1996	depends on XIP_KERNEL
1997	default "0x00080000"
1998	help
1999	  This is the physical address in your flash memory the kernel will
2000	  be linked for and stored to.  This address is dependent on your
2001	  own flash usage.
2002
2003config KEXEC
2004	bool "Kexec system call (EXPERIMENTAL)"
2005	depends on (!SMP || PM_SLEEP_SMP)
2006	depends on !CPU_V7M
2007	help
2008	  kexec is a system call that implements the ability to shutdown your
2009	  current kernel, and to start another kernel.  It is like a reboot
2010	  but it is independent of the system firmware.   And like a reboot
2011	  you can start any kernel with it, not just Linux.
2012
2013	  It is an ongoing process to be certain the hardware in a machine
2014	  is properly shutdown, so do not be surprised if this code does not
2015	  initially work for you.
2016
2017config ATAGS_PROC
2018	bool "Export atags in procfs"
2019	depends on ATAGS && KEXEC
2020	default y
2021	help
2022	  Should the atags used to boot the kernel be exported in an "atags"
2023	  file in procfs. Useful with kexec.
2024
2025config CRASH_DUMP
2026	bool "Build kdump crash kernel (EXPERIMENTAL)"
2027	help
2028	  Generate crash dump after being started by kexec. This should
2029	  be normally only set in special crash dump kernels which are
2030	  loaded in the main kernel with kexec-tools into a specially
2031	  reserved region and then later executed after a crash by
2032	  kdump/kexec. The crash dump kernel must be compiled to a
2033	  memory address not used by the main kernel
2034
2035	  For more details see Documentation/kdump/kdump.txt
2036
2037config AUTO_ZRELADDR
2038	bool "Auto calculation of the decompressed kernel image address"
2039	help
2040	  ZRELADDR is the physical address where the decompressed kernel
2041	  image will be placed. If AUTO_ZRELADDR is selected, the address
2042	  will be determined at run-time by masking the current IP with
2043	  0xf8000000. This assumes the zImage being placed in the first 128MB
2044	  from start of memory.
2045
2046endmenu
2047
2048menu "CPU Power Management"
2049
2050source "drivers/cpufreq/Kconfig"
2051
2052source "drivers/cpuidle/Kconfig"
2053
2054endmenu
2055
2056menu "Floating point emulation"
2057
2058comment "At least one emulation must be selected"
2059
2060config FPE_NWFPE
2061	bool "NWFPE math emulation"
2062	depends on (!AEABI || OABI_COMPAT) && !THUMB2_KERNEL
2063	---help---
2064	  Say Y to include the NWFPE floating point emulator in the kernel.
2065	  This is necessary to run most binaries. Linux does not currently
2066	  support floating point hardware so you need to say Y here even if
2067	  your machine has an FPA or floating point co-processor podule.
2068
2069	  You may say N here if you are going to load the Acorn FPEmulator
2070	  early in the bootup.
2071
2072config FPE_NWFPE_XP
2073	bool "Support extended precision"
2074	depends on FPE_NWFPE
2075	help
2076	  Say Y to include 80-bit support in the kernel floating-point
2077	  emulator.  Otherwise, only 32 and 64-bit support is compiled in.
2078	  Note that gcc does not generate 80-bit operations by default,
2079	  so in most cases this option only enlarges the size of the
2080	  floating point emulator without any good reason.
2081
2082	  You almost surely want to say N here.
2083
2084config FPE_FASTFPE
2085	bool "FastFPE math emulation (EXPERIMENTAL)"
2086	depends on (!AEABI || OABI_COMPAT) && !CPU_32v3
2087	---help---
2088	  Say Y here to include the FAST floating point emulator in the kernel.
2089	  This is an experimental much faster emulator which now also has full
2090	  precision for the mantissa.  It does not support any exceptions.
2091	  It is very simple, and approximately 3-6 times faster than NWFPE.
2092
2093	  It should be sufficient for most programs.  It may be not suitable
2094	  for scientific calculations, but you have to check this for yourself.
2095	  If you do not feel you need a faster FP emulation you should better
2096	  choose NWFPE.
2097
2098config VFP
2099	bool "VFP-format floating point maths"
2100	depends on CPU_V6 || CPU_V6K || CPU_ARM926T || CPU_V7 || CPU_FEROCEON
2101	help
2102	  Say Y to include VFP support code in the kernel. This is needed
2103	  if your hardware includes a VFP unit.
2104
2105	  Please see <file:Documentation/arm/VFP/release-notes.txt> for
2106	  release notes and additional status information.
2107
2108	  Say N if your target does not have VFP hardware.
2109
2110config VFPv3
2111	bool
2112	depends on VFP
2113	default y if CPU_V7
2114
2115config NEON
2116	bool "Advanced SIMD (NEON) Extension support"
2117	depends on VFPv3 && CPU_V7
2118	help
2119	  Say Y to include support code for NEON, the ARMv7 Advanced SIMD
2120	  Extension.
2121
2122config KERNEL_MODE_NEON
2123	bool "Support for NEON in kernel mode"
2124	depends on NEON && AEABI
2125	help
2126	  Say Y to include support for NEON in kernel mode.
2127
2128endmenu
2129
2130menu "Userspace binary formats"
2131
2132source "fs/Kconfig.binfmt"
2133
2134endmenu
2135
2136menu "Power management options"
2137
2138source "kernel/power/Kconfig"
2139
2140config ARCH_SUSPEND_POSSIBLE
2141	depends on CPU_ARM920T || CPU_ARM926T || CPU_FEROCEON || CPU_SA1100 || \
2142		CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M || CPU_XSC3 || CPU_XSCALE || CPU_MOHAWK
2143	def_bool y
2144
2145config ARM_CPU_SUSPEND
2146	def_bool PM_SLEEP
2147
2148config ARCH_HIBERNATION_POSSIBLE
2149	bool
2150	depends on MMU
2151	default y if ARCH_SUSPEND_POSSIBLE
2152
2153endmenu
2154
2155source "net/Kconfig"
2156
2157source "drivers/Kconfig"
2158
2159source "drivers/firmware/Kconfig"
2160
2161source "fs/Kconfig"
2162
2163source "arch/arm/Kconfig.debug"
2164
2165source "security/Kconfig"
2166
2167source "crypto/Kconfig"
2168if CRYPTO
2169source "arch/arm/crypto/Kconfig"
2170endif
2171
2172source "lib/Kconfig"
2173
2174source "arch/arm/kvm/Kconfig"
2175