Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
[linux-2.6-block.git] / arch / microblaze / Kconfig
1 config MICROBLAZE
2         def_bool y
3         select HAVE_MEMBLOCK
4         select HAVE_FUNCTION_TRACER
5         select HAVE_FUNCTION_TRACE_MCOUNT_TEST
6         select HAVE_FUNCTION_GRAPH_TRACER
7         select HAVE_DYNAMIC_FTRACE
8         select HAVE_FTRACE_MCOUNT_RECORD
9         select ARCH_WANT_OPTIONAL_GPIOLIB
10         select HAVE_OPROFILE
11         select HAVE_ARCH_KGDB
12         select HAVE_DMA_ATTRS
13         select HAVE_DMA_API_DEBUG
14         select TRACING_SUPPORT
15         select OF
16         select OF_EARLY_FLATTREE
17         select HAVE_GENERIC_HARDIRQS
18         select GENERIC_IRQ_PROBE
19         select GENERIC_IRQ_SHOW
20         select GENERIC_PCI_IOMAP
21         select GENERIC_CPU_DEVICES
22
23 config SWAP
24         def_bool n
25
26 config RWSEM_GENERIC_SPINLOCK
27         def_bool y
28
29 config RWSEM_XCHGADD_ALGORITHM
30         bool
31
32 config ARCH_HAS_ILOG2_U32
33         def_bool n
34
35 config ARCH_HAS_ILOG2_U64
36         def_bool n
37
38 config GENERIC_HWEIGHT
39         def_bool y
40
41 config GENERIC_CALIBRATE_DELAY
42         def_bool y
43
44 config GENERIC_TIME_VSYSCALL
45         def_bool n
46
47 config GENERIC_CLOCKEVENTS
48         def_bool y
49
50 config GENERIC_GPIO
51         def_bool y
52
53 config GENERIC_CSUM
54         def_bool y
55
56 config STACKTRACE_SUPPORT
57         def_bool y
58
59 config LOCKDEP_SUPPORT
60         def_bool y
61
62 config HAVE_LATENCYTOP_SUPPORT
63         def_bool y
64
65 source "init/Kconfig"
66
67 source "kernel/Kconfig.freezer"
68
69 source "arch/microblaze/platform/Kconfig.platform"
70
71 menu "Processor type and features"
72
73 source "kernel/time/Kconfig"
74
75 source "kernel/Kconfig.preempt"
76
77 source "kernel/Kconfig.hz"
78
79 config MMU
80         bool "MMU support"
81         default n
82
83 config NO_MMU
84         bool
85         depends on !MMU
86         default y
87
88 comment "Boot options"
89
90 config CMDLINE_BOOL
91         bool "Default bootloader kernel arguments"
92
93 config CMDLINE
94         string "Default kernel command string"
95         depends on CMDLINE_BOOL
96         default "console=ttyUL0,115200"
97         help
98           On some architectures there is currently no way for the boot loader
99           to pass arguments to the kernel. For these architectures, you should
100           supply some command-line options at build time by entering them
101           here.
102
103 config CMDLINE_FORCE
104         bool "Force default kernel command string"
105         depends on CMDLINE_BOOL
106         default n
107         help
108           Set this to have arguments from the default kernel command string
109           override those passed by the boot loader.
110
111 config SECCOMP
112         bool "Enable seccomp to safely compute untrusted bytecode"
113         depends on PROC_FS
114         default y
115         help
116           This kernel feature is useful for number crunching applications
117           that may need to compute untrusted bytecode during their
118           execution. By using pipes or other transports made available to
119           the process as file descriptors supporting the read/write
120           syscalls, it's possible to isolate those applications in
121           their own address space using seccomp. Once seccomp is
122           enabled via /proc/<pid>/seccomp, it cannot be disabled
123           and the task is only allowed to execute a few safe syscalls
124           defined by each seccomp mode.
125
126           If unsure, say Y. Only embedded should say N here.
127
128 endmenu
129
130 menu "Advanced setup"
131
132 config ADVANCED_OPTIONS
133         bool "Prompt for advanced kernel configuration options"
134         help
135           This option will enable prompting for a variety of advanced kernel
136           configuration options.  These options can cause the kernel to not
137           work if they are set incorrectly, but can be used to optimize certain
138           aspects of kernel memory management.
139
140           Unless you know what you are doing, say N here.
141
142 comment "Default settings for advanced configuration options are used"
143         depends on !ADVANCED_OPTIONS
144
145 config XILINX_UNCACHED_SHADOW
146         bool "Are you using uncached shadow for RAM ?"
147         depends on ADVANCED_OPTIONS && !MMU
148         default n
149         help
150           This is needed to be able to allocate uncachable memory regions.
151           The feature requires the design to define the RAM memory controller
152           window to be twice as large as the actual physical memory.
153
154 config HIGHMEM_START_BOOL
155         bool "Set high memory pool address"
156         depends on ADVANCED_OPTIONS && HIGHMEM
157         help
158           This option allows you to set the base address of the kernel virtual
159           area used to map high memory pages.  This can be useful in
160           optimizing the layout of kernel virtual memory.
161
162           Say N here unless you know what you are doing.
163
164 config HIGHMEM_START
165         hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
166         depends on MMU
167         default "0xfe000000"
168
169 config LOWMEM_SIZE_BOOL
170         bool "Set maximum low memory"
171         depends on ADVANCED_OPTIONS && MMU
172         help
173           This option allows you to set the maximum amount of memory which
174           will be used as "low memory", that is, memory which the kernel can
175           access directly, without having to set up a kernel virtual mapping.
176           This can be useful in optimizing the layout of kernel virtual
177           memory.
178
179           Say N here unless you know what you are doing.
180
181 config LOWMEM_SIZE
182         hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
183         default "0x30000000"
184
185 config MANUAL_RESET_VECTOR
186         hex "Microblaze reset vector address setup"
187         default "0x0"
188         help
189           Set this option to have the kernel override the CPU Reset vector.
190           If zero, no change will be made to the MicroBlaze reset vector at
191           address 0x0.
192           If non-zero, a jump instruction to this address, will be written
193           to the reset vector at address 0x0.
194           If you are unsure, set it to default value 0x0.
195
196 config KERNEL_START_BOOL
197         bool "Set custom kernel base address"
198         depends on ADVANCED_OPTIONS
199         help
200           This option allows you to set the kernel virtual address at which
201           the kernel will map low memory (the kernel image will be linked at
202           this address).  This can be useful in optimizing the virtual memory
203           layout of the system.
204
205           Say N here unless you know what you are doing.
206
207 config KERNEL_START
208         hex "Virtual address of kernel base" if KERNEL_START_BOOL
209         default "0xc0000000" if MMU
210         default KERNEL_BASE_ADDR if !MMU
211
212 config TASK_SIZE_BOOL
213         bool "Set custom user task size"
214         depends on ADVANCED_OPTIONS && MMU
215         help
216           This option allows you to set the amount of virtual address space
217           allocated to user tasks.  This can be useful in optimizing the
218           virtual memory layout of the system.
219
220           Say N here unless you know what you are doing.
221
222 config TASK_SIZE
223         hex "Size of user task space" if TASK_SIZE_BOOL
224         default "0x80000000"
225
226 choice
227         prompt "Page size"
228         default MICROBLAZE_4K_PAGES
229         depends on ADVANCED_OPTIONS && !MMU
230         help
231           Select the kernel logical page size. Increasing the page size
232           will reduce software overhead at each page boundary, allow
233           hardware prefetch mechanisms to be more effective, and allow
234           larger dma transfers increasing IO efficiency and reducing
235           overhead. However the utilization of memory will increase.
236           For example, each cached file will using a multiple of the
237           page size to hold its contents and the difference between the
238           end of file and the end of page is wasted.
239
240           If unsure, choose 4K_PAGES.
241
242 config MICROBLAZE_4K_PAGES
243         bool "4k page size"
244
245 config MICROBLAZE_8K_PAGES
246         bool "8k page size"
247
248 config MICROBLAZE_16K_PAGES
249         bool "16k page size"
250
251 config MICROBLAZE_32K_PAGES
252         bool "32k page size"
253
254 endchoice
255
256 endmenu
257
258 source "mm/Kconfig"
259
260 menu "Executable file formats"
261
262 source "fs/Kconfig.binfmt"
263
264 endmenu
265
266 menu "Bus Options"
267
268 config PCI
269         bool "PCI support"
270
271 config PCI_DOMAINS
272         def_bool PCI
273
274 config PCI_SYSCALL
275         def_bool PCI
276
277 config PCI_XILINX
278         bool "Xilinx PCI host bridge support"
279         depends on PCI
280
281 source "drivers/pci/Kconfig"
282
283 endmenu
284
285 source "net/Kconfig"
286
287 source "drivers/Kconfig"
288
289 source "fs/Kconfig"
290
291 source "arch/microblaze/Kconfig.debug"
292
293 source "security/Kconfig"
294
295 source "crypto/Kconfig"
296
297 source "lib/Kconfig"