blob: 4f798aa671ddd2f481c35689f03be1ea73318ae8 [file] [log] [blame]
Michal Simek575ca282009-03-27 14:25:50 +01001config MICROBLAZE
2 def_bool y
Riku Voipio957e3fa2014-12-12 16:57:44 -08003 select ARCH_HAS_GCOV_PROFILE_ALL
Mark Salter355f65a2013-10-07 22:12:28 -04004 select ARCH_MIGHT_HAVE_PC_PARPORT
Vladimir Murzin07c75d72017-06-28 10:16:57 +01005 select ARCH_NO_COHERENT_DMA_MMAP if !MMU
Will Deaconc1d7e012012-07-30 14:42:46 -07006 select ARCH_WANT_IPC_PARSE_VERSION
Michal Simek25213382014-04-07 12:51:44 +02007 select BUILDTIME_EXTABLE_SORT
Daniel Lezcanobb0eb052017-05-26 19:34:11 +02008 select TIMER_OF
Michal Simek25213382014-04-07 12:51:44 +02009 select CLONE_BACKWARDS3
10 select COMMON_CLK
11 select GENERIC_ATOMIC64
12 select GENERIC_CLOCKEVENTS
13 select GENERIC_CPU_DEVICES
14 select GENERIC_IDLE_POLL_SETUP
Thomas Gleixnerb6e31622011-01-19 20:35:05 +010015 select GENERIC_IRQ_PROBE
Thomas Gleixner9d61c182011-03-24 14:55:52 +010016 select GENERIC_IRQ_SHOW
Michael S. Tsirkin1b34d162011-11-24 21:06:41 +020017 select GENERIC_PCI_IOMAP
Michal Simek839396a2013-12-20 10:16:40 +010018 select GENERIC_SCHED_CLOCK
George Spelvin7b132772016-05-25 11:06:09 -040019 select HAVE_ARCH_HASH
Michal Simek25213382014-04-07 12:51:44 +020020 select HAVE_ARCH_KGDB
21 select HAVE_DEBUG_KMEMLEAK
22 select HAVE_DMA_API_DEBUG
Michal Simek25213382014-04-07 12:51:44 +020023 select HAVE_DYNAMIC_FTRACE
24 select HAVE_FTRACE_MCOUNT_RECORD
25 select HAVE_FUNCTION_GRAPH_TRACER
Michal Simek25213382014-04-07 12:51:44 +020026 select HAVE_FUNCTION_TRACER
27 select HAVE_MEMBLOCK
28 select HAVE_MEMBLOCK_NODE_MAP
29 select HAVE_OPROFILE
30 select IRQ_DOMAIN
Zubair Lutfullah Kakakhel0547dc72016-11-14 12:13:45 +000031 select XILINX_INTC
David Howells786d35d2012-09-28 14:31:03 +093032 select MODULES_USE_ELF_RELA
Michal Simek25213382014-04-07 12:51:44 +020033 select OF
34 select OF_EARLY_FLATTREE
35 select TRACING_SUPPORT
36 select VIRT_TO_BUS
Zhaoxiu Zengfff7fb02016-05-20 17:03:57 -070037 select CPU_NO_EFFICIENT_FFS
Michal Simek575ca282009-03-27 14:25:50 +010038
Babu Moger206d3642017-09-08 16:14:25 -070039# Endianness selection
40choice
41 prompt "Endianness selection"
Babu Moger428dbf12017-09-18 10:53:29 -060042 default CPU_LITTLE_ENDIAN
Babu Moger206d3642017-09-08 16:14:25 -070043 help
44 microblaze architectures can be configured for either little or
45 big endian formats. Be sure to select the appropriate mode.
46
47config CPU_BIG_ENDIAN
48 bool "Big endian"
49
50config CPU_LITTLE_ENDIAN
51 bool "Little endian"
52
53endchoice
54
Michal Simek575ca282009-03-27 14:25:50 +010055config SWAP
56 def_bool n
57
58config RWSEM_GENERIC_SPINLOCK
59 def_bool y
60
Michal Simek4e2e4122011-12-15 09:24:06 +010061config ZONE_DMA
62 def_bool y
63
Michal Simek575ca282009-03-27 14:25:50 +010064config RWSEM_XCHGADD_ALGORITHM
65 bool
66
67config ARCH_HAS_ILOG2_U32
68 def_bool n
69
70config ARCH_HAS_ILOG2_U64
71 def_bool n
72
Michal Simek575ca282009-03-27 14:25:50 +010073config GENERIC_HWEIGHT
74 def_bool y
75
Michal Simek575ca282009-03-27 14:25:50 +010076config GENERIC_CALIBRATE_DELAY
77 def_bool y
78
Remis Lima Baima14f87382009-06-18 19:55:32 +020079config GENERIC_CSUM
80 def_bool y
81
Michal Simek24b45a12009-11-10 15:57:01 +010082config STACKTRACE_SUPPORT
83 def_bool y
84
Michal Simekbf2d8092009-12-10 12:07:02 +010085config LOCKDEP_SUPPORT
86 def_bool y
87
Michal Simek575ca282009-03-27 14:25:50 +010088source "init/Kconfig"
89
90source "kernel/Kconfig.freezer"
91
Michal Simekc24cf712014-04-07 13:05:00 +020092source "arch/microblaze/Kconfig.platform"
Michal Simek575ca282009-03-27 14:25:50 +010093
94menu "Processor type and features"
95
Michal Simek575ca282009-03-27 14:25:50 +010096source "kernel/Kconfig.preempt"
97
98source "kernel/Kconfig.hz"
99
100config MMU
Michal Simeka116f6d2009-05-26 16:30:31 +0200101 bool "MMU support"
102 default n
Michal Simek575ca282009-03-27 14:25:50 +0100103
Michal Simek575ca282009-03-27 14:25:50 +0100104comment "Boot options"
105
106config CMDLINE_BOOL
107 bool "Default bootloader kernel arguments"
108
109config CMDLINE
110 string "Default kernel command string"
111 depends on CMDLINE_BOOL
112 default "console=ttyUL0,115200"
113 help
114 On some architectures there is currently no way for the boot loader
115 to pass arguments to the kernel. For these architectures, you should
116 supply some command-line options at build time by entering them
117 here.
118
119config CMDLINE_FORCE
120 bool "Force default kernel command string"
121 depends on CMDLINE_BOOL
122 default n
123 help
124 Set this to have arguments from the default kernel command string
125 override those passed by the boot loader.
126
Michal Simek68c6ac32010-08-06 08:50:35 +0200127config SECCOMP
128 bool "Enable seccomp to safely compute untrusted bytecode"
129 depends on PROC_FS
130 default y
131 help
132 This kernel feature is useful for number crunching applications
133 that may need to compute untrusted bytecode during their
134 execution. By using pipes or other transports made available to
135 the process as file descriptors supporting the read/write
136 syscalls, it's possible to isolate those applications in
137 their own address space using seccomp. Once seccomp is
138 enabled via /proc/<pid>/seccomp, it cannot be disabled
139 and the task is only allowed to execute a few safe syscalls
140 defined by each seccomp mode.
141
142 If unsure, say Y. Only embedded should say N here.
143
Michal Simek575ca282009-03-27 14:25:50 +0100144endmenu
145
Michal Simekb408e2c2014-09-01 16:23:54 +0200146menu "Kernel features"
Michal Simeka116f6d2009-05-26 16:30:31 +0200147
Michal Simek4cbbbb42014-10-27 08:28:16 +0100148config NR_CPUS
149 int
150 default "1"
151
Michal Simeka116f6d2009-05-26 16:30:31 +0200152config ADVANCED_OPTIONS
153 bool "Prompt for advanced kernel configuration options"
Michal Simeka116f6d2009-05-26 16:30:31 +0200154 help
155 This option will enable prompting for a variety of advanced kernel
156 configuration options. These options can cause the kernel to not
157 work if they are set incorrectly, but can be used to optimize certain
158 aspects of kernel memory management.
159
160 Unless you know what you are doing, say N here.
161
162comment "Default settings for advanced configuration options are used"
163 depends on !ADVANCED_OPTIONS
164
Michal Simek3a0d7a42010-02-22 12:16:08 +0100165config XILINX_UNCACHED_SHADOW
166 bool "Are you using uncached shadow for RAM ?"
167 depends on ADVANCED_OPTIONS && !MMU
168 default n
169 help
170 This is needed to be able to allocate uncachable memory regions.
171 The feature requires the design to define the RAM memory controller
172 window to be twice as large as the actual physical memory.
173
Michal Simek2f2f3712011-12-15 15:02:37 +0100174config HIGHMEM
175 bool "High memory support"
Michal Simeka116f6d2009-05-26 16:30:31 +0200176 depends on MMU
Michal Simek2f2f3712011-12-15 15:02:37 +0100177 help
178 The address space of Microblaze processors is only 4 Gigabytes large
179 and it has to accommodate user address space, kernel address
180 space as well as some memory mapped IO. That means that, if you
181 have a large amount of physical memory and/or IO, not all of the
182 memory can be "permanently mapped" by the kernel. The physical
183 memory that is not permanently mapped is called "high memory".
184
185 If unsure, say n.
Michal Simeka116f6d2009-05-26 16:30:31 +0200186
187config LOWMEM_SIZE_BOOL
188 bool "Set maximum low memory"
Michal Simekb8a84052010-02-22 11:33:07 +0100189 depends on ADVANCED_OPTIONS && MMU
Michal Simeka116f6d2009-05-26 16:30:31 +0200190 help
191 This option allows you to set the maximum amount of memory which
192 will be used as "low memory", that is, memory which the kernel can
193 access directly, without having to set up a kernel virtual mapping.
194 This can be useful in optimizing the layout of kernel virtual
195 memory.
196
197 Say N here unless you know what you are doing.
198
199config LOWMEM_SIZE
200 hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
Michal Simeka116f6d2009-05-26 16:30:31 +0200201 default "0x30000000"
202
Michal Simek0b9b0202010-11-08 12:37:40 +0100203config MANUAL_RESET_VECTOR
204 hex "Microblaze reset vector address setup"
205 default "0x0"
206 help
207 Set this option to have the kernel override the CPU Reset vector.
208 If zero, no change will be made to the MicroBlaze reset vector at
209 address 0x0.
210 If non-zero, a jump instruction to this address, will be written
211 to the reset vector at address 0x0.
212 If you are unsure, set it to default value 0x0.
213
Michal Simeka116f6d2009-05-26 16:30:31 +0200214config KERNEL_START_BOOL
215 bool "Set custom kernel base address"
216 depends on ADVANCED_OPTIONS
217 help
218 This option allows you to set the kernel virtual address at which
219 the kernel will map low memory (the kernel image will be linked at
220 this address). This can be useful in optimizing the virtual memory
221 layout of the system.
222
223 Say N here unless you know what you are doing.
224
225config KERNEL_START
226 hex "Virtual address of kernel base" if KERNEL_START_BOOL
227 default "0xc0000000" if MMU
228 default KERNEL_BASE_ADDR if !MMU
229
230config TASK_SIZE_BOOL
231 bool "Set custom user task size"
Michal Simekb8a84052010-02-22 11:33:07 +0100232 depends on ADVANCED_OPTIONS && MMU
Michal Simeka116f6d2009-05-26 16:30:31 +0200233 help
234 This option allows you to set the amount of virtual address space
235 allocated to user tasks. This can be useful in optimizing the
236 virtual memory layout of the system.
237
238 Say N here unless you know what you are doing.
239
240config TASK_SIZE
241 hex "Size of user task space" if TASK_SIZE_BOOL
Michal Simeka116f6d2009-05-26 16:30:31 +0200242 default "0x80000000"
243
Steven J. Magnaniba9c4f82010-05-13 10:48:27 -0500244choice
245 prompt "Page size"
246 default MICROBLAZE_4K_PAGES
247 depends on ADVANCED_OPTIONS && !MMU
248 help
249 Select the kernel logical page size. Increasing the page size
250 will reduce software overhead at each page boundary, allow
251 hardware prefetch mechanisms to be more effective, and allow
252 larger dma transfers increasing IO efficiency and reducing
253 overhead. However the utilization of memory will increase.
254 For example, each cached file will using a multiple of the
255 page size to hold its contents and the difference between the
256 end of file and the end of page is wasted.
257
258 If unsure, choose 4K_PAGES.
259
260config MICROBLAZE_4K_PAGES
261 bool "4k page size"
262
Steven J. Magnaniba9c4f82010-05-13 10:48:27 -0500263config MICROBLAZE_16K_PAGES
264 bool "16k page size"
265
Michal Simek6e80cff2012-08-01 10:29:28 +0200266config MICROBLAZE_64K_PAGES
267 bool "64k page size"
Steven J. Magnaniba9c4f82010-05-13 10:48:27 -0500268
269endchoice
270
Michal Simek575ca282009-03-27 14:25:50 +0100271source "mm/Kconfig"
272
Michal Simek7acdc1c2014-09-01 16:23:14 +0200273endmenu
274
Tobias Klauser910672d2011-03-02 18:38:35 +0100275menu "Executable file formats"
Michal Simek575ca282009-03-27 14:25:50 +0100276
277source "fs/Kconfig.binfmt"
278
279endmenu
280
Michal Simeka6475c12010-01-18 15:27:10 +0100281menu "Bus Options"
282
283config PCI
284 bool "PCI support"
285
286config PCI_DOMAINS
287 def_bool PCI
288
Bharat Kumar Gogada01cf9d52016-02-11 21:58:11 +0530289config PCI_DOMAINS_GENERIC
290 def_bool PCI_DOMAINS
291
Michal Simeka6475c12010-01-18 15:27:10 +0100292config PCI_SYSCALL
293 def_bool PCI
294
Michal Simek733cc212010-01-18 15:27:11 +0100295config PCI_XILINX
296 bool "Xilinx PCI host bridge support"
297 depends on PCI
298
Michal Simeka6475c12010-01-18 15:27:10 +0100299source "drivers/pci/Kconfig"
300
301endmenu
302
Michal Simek575ca282009-03-27 14:25:50 +0100303source "net/Kconfig"
304
305source "drivers/Kconfig"
306
307source "fs/Kconfig"
308
309source "arch/microblaze/Kconfig.debug"
310
311source "security/Kconfig"
312
313source "crypto/Kconfig"
314
315source "lib/Kconfig"