blob: 848e31a86ba5e254c80168f1043c703e60601cd4 [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
Christoph Hellwig5411ad22018-07-19 05:54:39 -07004 select ARCH_HAS_SYNC_DMA_FOR_CPU
5 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
Mark Salter355f65a2013-10-07 22:12:28 -04006 select ARCH_MIGHT_HAVE_PC_PARPORT
Vladimir Murzin07c75d72017-06-28 10:16:57 +01007 select ARCH_NO_COHERENT_DMA_MMAP if !MMU
Will Deaconc1d7e012012-07-30 14:42:46 -07008 select ARCH_WANT_IPC_PARSE_VERSION
Michal Simek25213382014-04-07 12:51:44 +02009 select BUILDTIME_EXTABLE_SORT
Daniel Lezcanobb0eb052017-05-26 19:34:11 +020010 select TIMER_OF
Michal Simek25213382014-04-07 12:51:44 +020011 select CLONE_BACKWARDS3
12 select COMMON_CLK
Christoph Hellwig5411ad22018-07-19 05:54:39 -070013 select DMA_NONCOHERENT_OPS
14 select DMA_NONCOHERENT_MMAP
Michal Simek25213382014-04-07 12:51:44 +020015 select GENERIC_ATOMIC64
16 select GENERIC_CLOCKEVENTS
17 select GENERIC_CPU_DEVICES
18 select GENERIC_IDLE_POLL_SETUP
Thomas Gleixnerb6e31622011-01-19 20:35:05 +010019 select GENERIC_IRQ_PROBE
Thomas Gleixner9d61c182011-03-24 14:55:52 +010020 select GENERIC_IRQ_SHOW
Michael S. Tsirkin1b34d162011-11-24 21:06:41 +020021 select GENERIC_PCI_IOMAP
Michal Simek839396a2013-12-20 10:16:40 +010022 select GENERIC_SCHED_CLOCK
George Spelvin7b132772016-05-25 11:06:09 -040023 select HAVE_ARCH_HASH
Michal Simek25213382014-04-07 12:51:44 +020024 select HAVE_ARCH_KGDB
25 select HAVE_DEBUG_KMEMLEAK
Michal Simek25213382014-04-07 12:51:44 +020026 select HAVE_DYNAMIC_FTRACE
27 select HAVE_FTRACE_MCOUNT_RECORD
28 select HAVE_FUNCTION_GRAPH_TRACER
Michal Simek25213382014-04-07 12:51:44 +020029 select HAVE_FUNCTION_TRACER
Rob Herring101646a2018-03-09 09:54:07 -060030 select NO_BOOTMEM
Michal Simek25213382014-04-07 12:51:44 +020031 select HAVE_MEMBLOCK
32 select HAVE_MEMBLOCK_NODE_MAP
33 select HAVE_OPROFILE
34 select IRQ_DOMAIN
Zubair Lutfullah Kakakhel0547dc72016-11-14 12:13:45 +000035 select XILINX_INTC
David Howells786d35d2012-09-28 14:31:03 +093036 select MODULES_USE_ELF_RELA
Michal Simek25213382014-04-07 12:51:44 +020037 select OF
38 select OF_EARLY_FLATTREE
39 select TRACING_SUPPORT
40 select VIRT_TO_BUS
Zhaoxiu Zengfff7fb02016-05-20 17:03:57 -070041 select CPU_NO_EFFICIENT_FFS
Michal Simek575ca282009-03-27 14:25:50 +010042
Babu Moger206d3642017-09-08 16:14:25 -070043# Endianness selection
44choice
45 prompt "Endianness selection"
Babu Moger428dbf12017-09-18 10:53:29 -060046 default CPU_LITTLE_ENDIAN
Babu Moger206d3642017-09-08 16:14:25 -070047 help
48 microblaze architectures can be configured for either little or
49 big endian formats. Be sure to select the appropriate mode.
50
51config CPU_BIG_ENDIAN
52 bool "Big endian"
53
54config CPU_LITTLE_ENDIAN
55 bool "Little endian"
56
57endchoice
58
Michal Simek575ca282009-03-27 14:25:50 +010059config SWAP
60 def_bool n
61
62config RWSEM_GENERIC_SPINLOCK
63 def_bool y
64
Michal Simek4e2e4122011-12-15 09:24:06 +010065config ZONE_DMA
66 def_bool y
67
Michal Simek575ca282009-03-27 14:25:50 +010068config RWSEM_XCHGADD_ALGORITHM
69 bool
70
71config ARCH_HAS_ILOG2_U32
72 def_bool n
73
74config ARCH_HAS_ILOG2_U64
75 def_bool n
76
Michal Simek575ca282009-03-27 14:25:50 +010077config GENERIC_HWEIGHT
78 def_bool y
79
Michal Simek575ca282009-03-27 14:25:50 +010080config GENERIC_CALIBRATE_DELAY
81 def_bool y
82
Remis Lima Baima14f87382009-06-18 19:55:32 +020083config GENERIC_CSUM
84 def_bool y
85
Michal Simek24b45a12009-11-10 15:57:01 +010086config STACKTRACE_SUPPORT
87 def_bool y
88
Michal Simekbf2d8092009-12-10 12:07:02 +010089config LOCKDEP_SUPPORT
90 def_bool y
91
Michal Simek575ca282009-03-27 14:25:50 +010092source "init/Kconfig"
93
94source "kernel/Kconfig.freezer"
95
Michal Simekc24cf712014-04-07 13:05:00 +020096source "arch/microblaze/Kconfig.platform"
Michal Simek575ca282009-03-27 14:25:50 +010097
98menu "Processor type and features"
99
Michal Simek575ca282009-03-27 14:25:50 +0100100source "kernel/Kconfig.preempt"
101
102source "kernel/Kconfig.hz"
103
104config MMU
Michal Simeka116f6d2009-05-26 16:30:31 +0200105 bool "MMU support"
106 default n
Michal Simek575ca282009-03-27 14:25:50 +0100107
Michal Simek575ca282009-03-27 14:25:50 +0100108comment "Boot options"
109
110config CMDLINE_BOOL
111 bool "Default bootloader kernel arguments"
112
113config CMDLINE
114 string "Default kernel command string"
115 depends on CMDLINE_BOOL
116 default "console=ttyUL0,115200"
117 help
118 On some architectures there is currently no way for the boot loader
119 to pass arguments to the kernel. For these architectures, you should
120 supply some command-line options at build time by entering them
121 here.
122
123config CMDLINE_FORCE
124 bool "Force default kernel command string"
125 depends on CMDLINE_BOOL
126 default n
127 help
128 Set this to have arguments from the default kernel command string
129 override those passed by the boot loader.
130
Michal Simek68c6ac32010-08-06 08:50:35 +0200131config SECCOMP
132 bool "Enable seccomp to safely compute untrusted bytecode"
133 depends on PROC_FS
134 default y
135 help
136 This kernel feature is useful for number crunching applications
137 that may need to compute untrusted bytecode during their
138 execution. By using pipes or other transports made available to
139 the process as file descriptors supporting the read/write
140 syscalls, it's possible to isolate those applications in
141 their own address space using seccomp. Once seccomp is
142 enabled via /proc/<pid>/seccomp, it cannot be disabled
143 and the task is only allowed to execute a few safe syscalls
144 defined by each seccomp mode.
145
146 If unsure, say Y. Only embedded should say N here.
147
Michal Simek575ca282009-03-27 14:25:50 +0100148endmenu
149
Michal Simekb408e2c2014-09-01 16:23:54 +0200150menu "Kernel features"
Michal Simeka116f6d2009-05-26 16:30:31 +0200151
Michal Simek4cbbbb42014-10-27 08:28:16 +0100152config NR_CPUS
153 int
154 default "1"
155
Michal Simeka116f6d2009-05-26 16:30:31 +0200156config ADVANCED_OPTIONS
157 bool "Prompt for advanced kernel configuration options"
Michal Simeka116f6d2009-05-26 16:30:31 +0200158 help
159 This option will enable prompting for a variety of advanced kernel
160 configuration options. These options can cause the kernel to not
161 work if they are set incorrectly, but can be used to optimize certain
162 aspects of kernel memory management.
163
164 Unless you know what you are doing, say N here.
165
166comment "Default settings for advanced configuration options are used"
167 depends on !ADVANCED_OPTIONS
168
Michal Simek3a0d7a42010-02-22 12:16:08 +0100169config XILINX_UNCACHED_SHADOW
170 bool "Are you using uncached shadow for RAM ?"
171 depends on ADVANCED_OPTIONS && !MMU
172 default n
173 help
174 This is needed to be able to allocate uncachable memory regions.
175 The feature requires the design to define the RAM memory controller
176 window to be twice as large as the actual physical memory.
177
Michal Simek2f2f3712011-12-15 15:02:37 +0100178config HIGHMEM
179 bool "High memory support"
Michal Simeka116f6d2009-05-26 16:30:31 +0200180 depends on MMU
Michal Simek2f2f3712011-12-15 15:02:37 +0100181 help
182 The address space of Microblaze processors is only 4 Gigabytes large
183 and it has to accommodate user address space, kernel address
184 space as well as some memory mapped IO. That means that, if you
185 have a large amount of physical memory and/or IO, not all of the
186 memory can be "permanently mapped" by the kernel. The physical
187 memory that is not permanently mapped is called "high memory".
188
189 If unsure, say n.
Michal Simeka116f6d2009-05-26 16:30:31 +0200190
191config LOWMEM_SIZE_BOOL
192 bool "Set maximum low memory"
Michal Simekb8a84052010-02-22 11:33:07 +0100193 depends on ADVANCED_OPTIONS && MMU
Michal Simeka116f6d2009-05-26 16:30:31 +0200194 help
195 This option allows you to set the maximum amount of memory which
196 will be used as "low memory", that is, memory which the kernel can
197 access directly, without having to set up a kernel virtual mapping.
198 This can be useful in optimizing the layout of kernel virtual
199 memory.
200
201 Say N here unless you know what you are doing.
202
203config LOWMEM_SIZE
204 hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
Michal Simeka116f6d2009-05-26 16:30:31 +0200205 default "0x30000000"
206
Michal Simek0b9b0202010-11-08 12:37:40 +0100207config MANUAL_RESET_VECTOR
208 hex "Microblaze reset vector address setup"
209 default "0x0"
210 help
211 Set this option to have the kernel override the CPU Reset vector.
212 If zero, no change will be made to the MicroBlaze reset vector at
213 address 0x0.
214 If non-zero, a jump instruction to this address, will be written
215 to the reset vector at address 0x0.
216 If you are unsure, set it to default value 0x0.
217
Michal Simeka116f6d2009-05-26 16:30:31 +0200218config KERNEL_START_BOOL
219 bool "Set custom kernel base address"
220 depends on ADVANCED_OPTIONS
221 help
222 This option allows you to set the kernel virtual address at which
223 the kernel will map low memory (the kernel image will be linked at
224 this address). This can be useful in optimizing the virtual memory
225 layout of the system.
226
227 Say N here unless you know what you are doing.
228
229config KERNEL_START
230 hex "Virtual address of kernel base" if KERNEL_START_BOOL
231 default "0xc0000000" if MMU
232 default KERNEL_BASE_ADDR if !MMU
233
234config TASK_SIZE_BOOL
235 bool "Set custom user task size"
Michal Simekb8a84052010-02-22 11:33:07 +0100236 depends on ADVANCED_OPTIONS && MMU
Michal Simeka116f6d2009-05-26 16:30:31 +0200237 help
238 This option allows you to set the amount of virtual address space
239 allocated to user tasks. This can be useful in optimizing the
240 virtual memory layout of the system.
241
242 Say N here unless you know what you are doing.
243
244config TASK_SIZE
245 hex "Size of user task space" if TASK_SIZE_BOOL
Michal Simeka116f6d2009-05-26 16:30:31 +0200246 default "0x80000000"
247
Steven J. Magnaniba9c4f82010-05-13 10:48:27 -0500248choice
249 prompt "Page size"
250 default MICROBLAZE_4K_PAGES
251 depends on ADVANCED_OPTIONS && !MMU
252 help
253 Select the kernel logical page size. Increasing the page size
254 will reduce software overhead at each page boundary, allow
255 hardware prefetch mechanisms to be more effective, and allow
256 larger dma transfers increasing IO efficiency and reducing
257 overhead. However the utilization of memory will increase.
258 For example, each cached file will using a multiple of the
259 page size to hold its contents and the difference between the
260 end of file and the end of page is wasted.
261
262 If unsure, choose 4K_PAGES.
263
264config MICROBLAZE_4K_PAGES
265 bool "4k page size"
266
Steven J. Magnaniba9c4f82010-05-13 10:48:27 -0500267config MICROBLAZE_16K_PAGES
268 bool "16k page size"
269
Michal Simek6e80cff2012-08-01 10:29:28 +0200270config MICROBLAZE_64K_PAGES
271 bool "64k page size"
Steven J. Magnaniba9c4f82010-05-13 10:48:27 -0500272
273endchoice
274
Michal Simek575ca282009-03-27 14:25:50 +0100275source "mm/Kconfig"
276
Michal Simek7acdc1c2014-09-01 16:23:14 +0200277endmenu
278
Tobias Klauser910672d2011-03-02 18:38:35 +0100279menu "Executable file formats"
Michal Simek575ca282009-03-27 14:25:50 +0100280
281source "fs/Kconfig.binfmt"
282
283endmenu
284
Michal Simeka6475c12010-01-18 15:27:10 +0100285menu "Bus Options"
286
287config PCI
288 bool "PCI support"
289
290config PCI_DOMAINS
291 def_bool PCI
292
Bharat Kumar Gogada01cf9d52016-02-11 21:58:11 +0530293config PCI_DOMAINS_GENERIC
294 def_bool PCI_DOMAINS
295
Michal Simeka6475c12010-01-18 15:27:10 +0100296config PCI_SYSCALL
297 def_bool PCI
298
Michal Simek733cc212010-01-18 15:27:11 +0100299config PCI_XILINX
300 bool "Xilinx PCI host bridge support"
301 depends on PCI
302
Michal Simeka6475c12010-01-18 15:27:10 +0100303source "drivers/pci/Kconfig"
304
305endmenu
306
Michal Simek575ca282009-03-27 14:25:50 +0100307source "net/Kconfig"
308
309source "drivers/Kconfig"
310
311source "fs/Kconfig"
312
313source "arch/microblaze/Kconfig.debug"
314
315source "security/Kconfig"
316
317source "crypto/Kconfig"
318
319source "lib/Kconfig"