xref: /openbmc/linux/arch/microblaze/Kconfig (revision 9d61c18b)
1575ca288SMichal Simekconfig MICROBLAZE
2575ca288SMichal Simek	def_bool y
395f72d1eSYinghai Lu	select HAVE_MEMBLOCK
42fd7c761SMichal Simek	select HAVE_FUNCTION_TRACER
56d9e60ceSMichal Simek	select HAVE_FUNCTION_TRACE_MCOUNT_TEST
6a0d3e665SMichal Simek	select HAVE_FUNCTION_GRAPH_TRACER
77d241ff0SMichal Simek	select HAVE_DYNAMIC_FTRACE
87d241ff0SMichal Simek	select HAVE_FTRACE_MCOUNT_RECORD
9afc26cb3SJulie Zhu	select USB_ARCH_HAS_EHCI
106fa612b5SMichal Simek	select ARCH_WANT_OPTIONAL_GPIOLIB
113540ce82SJohn Williams	select HAVE_OPROFILE
122d5973cbSMichal Simek	select HAVE_ARCH_KGDB
13ccfe27d7SMichal Simek	select HAVE_DMA_ATTRS
14ccfe27d7SMichal Simek	select HAVE_DMA_API_DEBUG
153540ce82SJohn Williams	select TRACING_SUPPORT
16ae5bf63fSStephen Rothwell	select OF
17e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
18b6e31629SThomas Gleixner	select HAVE_GENERIC_HARDIRQS
19b6e31629SThomas Gleixner	select GENERIC_IRQ_PROBE
20208a34f5SThomas Gleixner	select GENERIC_HARDIRQS_NO_DEPRECATED
21*9d61c18bSThomas Gleixner	select GENERIC_IRQ_SHOW
22575ca288SMichal Simek
23575ca288SMichal Simekconfig SWAP
24575ca288SMichal Simek	def_bool n
25575ca288SMichal Simek
26575ca288SMichal Simekconfig RWSEM_GENERIC_SPINLOCK
27575ca288SMichal Simek	def_bool y
28575ca288SMichal Simek
29575ca288SMichal Simekconfig RWSEM_XCHGADD_ALGORITHM
30575ca288SMichal Simek	bool
31575ca288SMichal Simek
32575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U32
33575ca288SMichal Simek	def_bool n
34575ca288SMichal Simek
35575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U64
36575ca288SMichal Simek	def_bool n
37575ca288SMichal Simek
38575ca288SMichal Simekconfig GENERIC_FIND_NEXT_BIT
39575ca288SMichal Simek	def_bool y
40575ca288SMichal Simek
410664996bSAkinobu Mitaconfig GENERIC_FIND_BIT_LE
420664996bSAkinobu Mita	def_bool y
430664996bSAkinobu Mita
44575ca288SMichal Simekconfig GENERIC_HWEIGHT
45575ca288SMichal Simek	def_bool y
46575ca288SMichal Simek
47575ca288SMichal Simekconfig GENERIC_CALIBRATE_DELAY
48575ca288SMichal Simek	def_bool y
49575ca288SMichal Simek
50575ca288SMichal Simekconfig GENERIC_TIME_VSYSCALL
51575ca288SMichal Simek	def_bool n
52575ca288SMichal Simek
53575ca288SMichal Simekconfig GENERIC_CLOCKEVENTS
54575ca288SMichal Simek	def_bool y
55575ca288SMichal Simek
566fa612b5SMichal Simekconfig GENERIC_GPIO
576fa612b5SMichal Simek	def_bool y
586fa612b5SMichal Simek
5914f87389SRemis Lima Baimaconfig GENERIC_CSUM
6014f87389SRemis Lima Baima	def_bool y
6114f87389SRemis Lima Baima
6224b45a12SMichal Simekconfig STACKTRACE_SUPPORT
6324b45a12SMichal Simek	def_bool y
6424b45a12SMichal Simek
65bf2d8096SMichal Simekconfig LOCKDEP_SUPPORT
66bf2d8096SMichal Simek	def_bool y
67bf2d8096SMichal Simek
68fb5a32dcSMichal Simekconfig HAVE_LATENCYTOP_SUPPORT
69fb5a32dcSMichal Simek	def_bool y
70fb5a32dcSMichal Simek
71575ca288SMichal Simeksource "init/Kconfig"
72575ca288SMichal Simek
73575ca288SMichal Simeksource "kernel/Kconfig.freezer"
74575ca288SMichal Simek
75575ca288SMichal Simeksource "arch/microblaze/platform/Kconfig.platform"
76575ca288SMichal Simek
77575ca288SMichal Simekmenu "Processor type and features"
78575ca288SMichal Simek
79296e2603SMichal Simeksource "kernel/time/Kconfig"
80575ca288SMichal Simek
81575ca288SMichal Simeksource "kernel/Kconfig.preempt"
82575ca288SMichal Simek
83575ca288SMichal Simeksource "kernel/Kconfig.hz"
84575ca288SMichal Simek
85575ca288SMichal Simekconfig MMU
86a116f6d5SMichal Simek	bool "MMU support"
87a116f6d5SMichal Simek	default n
88575ca288SMichal Simek
89575ca288SMichal Simekconfig NO_MMU
90575ca288SMichal Simek	bool
91575ca288SMichal Simek	depends on !MMU
92575ca288SMichal Simek	default y
93575ca288SMichal Simek
94575ca288SMichal Simekcomment "Boot options"
95575ca288SMichal Simek
96575ca288SMichal Simekconfig CMDLINE_BOOL
97575ca288SMichal Simek	bool "Default bootloader kernel arguments"
98575ca288SMichal Simek
99575ca288SMichal Simekconfig CMDLINE
100575ca288SMichal Simek	string "Default kernel command string"
101575ca288SMichal Simek	depends on CMDLINE_BOOL
102575ca288SMichal Simek	default "console=ttyUL0,115200"
103575ca288SMichal Simek	help
104575ca288SMichal Simek	  On some architectures there is currently no way for the boot loader
105575ca288SMichal Simek	  to pass arguments to the kernel. For these architectures, you should
106575ca288SMichal Simek	  supply some command-line options at build time by entering them
107575ca288SMichal Simek	  here.
108575ca288SMichal Simek
109575ca288SMichal Simekconfig CMDLINE_FORCE
110575ca288SMichal Simek	bool "Force default kernel command string"
111575ca288SMichal Simek	depends on CMDLINE_BOOL
112575ca288SMichal Simek	default n
113575ca288SMichal Simek	help
114575ca288SMichal Simek	  Set this to have arguments from the default kernel command string
115575ca288SMichal Simek	  override those passed by the boot loader.
116575ca288SMichal Simek
11768c6ac33SMichal Simekconfig SECCOMP
11868c6ac33SMichal Simek	bool "Enable seccomp to safely compute untrusted bytecode"
11968c6ac33SMichal Simek	depends on PROC_FS
12068c6ac33SMichal Simek	default y
12168c6ac33SMichal Simek	help
12268c6ac33SMichal Simek	  This kernel feature is useful for number crunching applications
12368c6ac33SMichal Simek	  that may need to compute untrusted bytecode during their
12468c6ac33SMichal Simek	  execution. By using pipes or other transports made available to
12568c6ac33SMichal Simek	  the process as file descriptors supporting the read/write
12668c6ac33SMichal Simek	  syscalls, it's possible to isolate those applications in
12768c6ac33SMichal Simek	  their own address space using seccomp. Once seccomp is
12868c6ac33SMichal Simek	  enabled via /proc/<pid>/seccomp, it cannot be disabled
12968c6ac33SMichal Simek	  and the task is only allowed to execute a few safe syscalls
13068c6ac33SMichal Simek	  defined by each seccomp mode.
13168c6ac33SMichal Simek
13268c6ac33SMichal Simek	  If unsure, say Y. Only embedded should say N here.
13368c6ac33SMichal Simek
134575ca288SMichal Simekendmenu
135575ca288SMichal Simek
136a116f6d5SMichal Simekmenu "Advanced setup"
137a116f6d5SMichal Simek
138a116f6d5SMichal Simekconfig ADVANCED_OPTIONS
139a116f6d5SMichal Simek	bool "Prompt for advanced kernel configuration options"
140a116f6d5SMichal Simek	help
141a116f6d5SMichal Simek	  This option will enable prompting for a variety of advanced kernel
142a116f6d5SMichal Simek	  configuration options.  These options can cause the kernel to not
143a116f6d5SMichal Simek	  work if they are set incorrectly, but can be used to optimize certain
144a116f6d5SMichal Simek	  aspects of kernel memory management.
145a116f6d5SMichal Simek
146a116f6d5SMichal Simek	  Unless you know what you are doing, say N here.
147a116f6d5SMichal Simek
148a116f6d5SMichal Simekcomment "Default settings for advanced configuration options are used"
149a116f6d5SMichal Simek	depends on !ADVANCED_OPTIONS
150a116f6d5SMichal Simek
1513a0d7a4dSMichal Simekconfig XILINX_UNCACHED_SHADOW
1523a0d7a4dSMichal Simek	bool "Are you using uncached shadow for RAM ?"
1533a0d7a4dSMichal Simek	depends on ADVANCED_OPTIONS && !MMU
1543a0d7a4dSMichal Simek	default n
1553a0d7a4dSMichal Simek	help
1563a0d7a4dSMichal Simek	  This is needed to be able to allocate uncachable memory regions.
1573a0d7a4dSMichal Simek	  The feature requires the design to define the RAM memory controller
1583a0d7a4dSMichal Simek	  window to be twice as large as the actual physical memory.
1593a0d7a4dSMichal Simek
160a116f6d5SMichal Simekconfig HIGHMEM_START_BOOL
161a116f6d5SMichal Simek	bool "Set high memory pool address"
162a116f6d5SMichal Simek	depends on ADVANCED_OPTIONS && HIGHMEM
163a116f6d5SMichal Simek	help
164a116f6d5SMichal Simek	  This option allows you to set the base address of the kernel virtual
165a116f6d5SMichal Simek	  area used to map high memory pages.  This can be useful in
166a116f6d5SMichal Simek	  optimizing the layout of kernel virtual memory.
167a116f6d5SMichal Simek
168a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
169a116f6d5SMichal Simek
170a116f6d5SMichal Simekconfig HIGHMEM_START
171a116f6d5SMichal Simek	hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
172a116f6d5SMichal Simek	depends on MMU
173a116f6d5SMichal Simek	default "0xfe000000"
174a116f6d5SMichal Simek
175a116f6d5SMichal Simekconfig LOWMEM_SIZE_BOOL
176a116f6d5SMichal Simek	bool "Set maximum low memory"
177b8a84059SMichal Simek	depends on ADVANCED_OPTIONS && MMU
178a116f6d5SMichal Simek	help
179a116f6d5SMichal Simek	  This option allows you to set the maximum amount of memory which
180a116f6d5SMichal Simek	  will be used as "low memory", that is, memory which the kernel can
181a116f6d5SMichal Simek	  access directly, without having to set up a kernel virtual mapping.
182a116f6d5SMichal Simek	  This can be useful in optimizing the layout of kernel virtual
183a116f6d5SMichal Simek	  memory.
184a116f6d5SMichal Simek
185a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
186a116f6d5SMichal Simek
187a116f6d5SMichal Simekconfig LOWMEM_SIZE
188a116f6d5SMichal Simek	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
189a116f6d5SMichal Simek	default "0x30000000"
190a116f6d5SMichal Simek
1910b9b0200SMichal Simekconfig MANUAL_RESET_VECTOR
1920b9b0200SMichal Simek	hex "Microblaze reset vector address setup"
1930b9b0200SMichal Simek	default "0x0"
1940b9b0200SMichal Simek	help
1950b9b0200SMichal Simek	  Set this option to have the kernel override the CPU Reset vector.
1960b9b0200SMichal Simek	  If zero, no change will be made to the MicroBlaze reset vector at
1970b9b0200SMichal Simek	  address 0x0.
1980b9b0200SMichal Simek	  If non-zero, a jump instruction to this address, will be written
1990b9b0200SMichal Simek	  to the reset vector at address 0x0.
2000b9b0200SMichal Simek	  If you are unsure, set it to default value 0x0.
2010b9b0200SMichal Simek
202a116f6d5SMichal Simekconfig KERNEL_START_BOOL
203a116f6d5SMichal Simek	bool "Set custom kernel base address"
204a116f6d5SMichal Simek	depends on ADVANCED_OPTIONS
205a116f6d5SMichal Simek	help
206a116f6d5SMichal Simek	  This option allows you to set the kernel virtual address at which
207a116f6d5SMichal Simek	  the kernel will map low memory (the kernel image will be linked at
208a116f6d5SMichal Simek	  this address).  This can be useful in optimizing the virtual memory
209a116f6d5SMichal Simek	  layout of the system.
210a116f6d5SMichal Simek
211a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
212a116f6d5SMichal Simek
213a116f6d5SMichal Simekconfig KERNEL_START
214a116f6d5SMichal Simek	hex "Virtual address of kernel base" if KERNEL_START_BOOL
215a116f6d5SMichal Simek	default "0xc0000000" if MMU
216a116f6d5SMichal Simek	default KERNEL_BASE_ADDR if !MMU
217a116f6d5SMichal Simek
218a116f6d5SMichal Simekconfig TASK_SIZE_BOOL
219a116f6d5SMichal Simek	bool "Set custom user task size"
220b8a84059SMichal Simek	depends on ADVANCED_OPTIONS && MMU
221a116f6d5SMichal Simek	help
222a116f6d5SMichal Simek	  This option allows you to set the amount of virtual address space
223a116f6d5SMichal Simek	  allocated to user tasks.  This can be useful in optimizing the
224a116f6d5SMichal Simek	  virtual memory layout of the system.
225a116f6d5SMichal Simek
226a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
227a116f6d5SMichal Simek
228a116f6d5SMichal Simekconfig TASK_SIZE
229a116f6d5SMichal Simek	hex "Size of user task space" if TASK_SIZE_BOOL
230a116f6d5SMichal Simek	default "0x80000000"
231a116f6d5SMichal Simek
232ba9c4f88SSteven J. Magnanichoice
233ba9c4f88SSteven J. Magnani	prompt "Page size"
234ba9c4f88SSteven J. Magnani	default MICROBLAZE_4K_PAGES
235ba9c4f88SSteven J. Magnani	depends on ADVANCED_OPTIONS && !MMU
236ba9c4f88SSteven J. Magnani	help
237ba9c4f88SSteven J. Magnani	  Select the kernel logical page size. Increasing the page size
238ba9c4f88SSteven J. Magnani	  will reduce software overhead at each page boundary, allow
239ba9c4f88SSteven J. Magnani	  hardware prefetch mechanisms to be more effective, and allow
240ba9c4f88SSteven J. Magnani	  larger dma transfers increasing IO efficiency and reducing
241ba9c4f88SSteven J. Magnani	  overhead. However the utilization of memory will increase.
242ba9c4f88SSteven J. Magnani	  For example, each cached file will using a multiple of the
243ba9c4f88SSteven J. Magnani	  page size to hold its contents and the difference between the
244ba9c4f88SSteven J. Magnani	  end of file and the end of page is wasted.
245ba9c4f88SSteven J. Magnani
246ba9c4f88SSteven J. Magnani	  If unsure, choose 4K_PAGES.
247ba9c4f88SSteven J. Magnani
248ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_4K_PAGES
249ba9c4f88SSteven J. Magnani	bool "4k page size"
250ba9c4f88SSteven J. Magnani
251ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_8K_PAGES
252ba9c4f88SSteven J. Magnani	bool "8k page size"
253ba9c4f88SSteven J. Magnani
254ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_16K_PAGES
255ba9c4f88SSteven J. Magnani	bool "16k page size"
256ba9c4f88SSteven J. Magnani
257ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_32K_PAGES
258ba9c4f88SSteven J. Magnani	bool "32k page size"
259ba9c4f88SSteven J. Magnani
260ba9c4f88SSteven J. Magnaniendchoice
261ba9c4f88SSteven J. Magnani
262a116f6d5SMichal Simekendmenu
263a116f6d5SMichal Simek
264575ca288SMichal Simeksource "mm/Kconfig"
265575ca288SMichal Simek
266910672deSTobias Klausermenu "Executable file formats"
267575ca288SMichal Simek
268575ca288SMichal Simeksource "fs/Kconfig.binfmt"
269575ca288SMichal Simek
270575ca288SMichal Simekendmenu
271575ca288SMichal Simek
272a6475c13SMichal Simekmenu "Bus Options"
273a6475c13SMichal Simek
274a6475c13SMichal Simekconfig PCI
275a6475c13SMichal Simek	bool "PCI support"
276a6475c13SMichal Simek
277a6475c13SMichal Simekconfig PCI_DOMAINS
278a6475c13SMichal Simek	def_bool PCI
279a6475c13SMichal Simek
280a6475c13SMichal Simekconfig PCI_SYSCALL
281a6475c13SMichal Simek	def_bool PCI
282a6475c13SMichal Simek
283733cc218SMichal Simekconfig PCI_XILINX
284733cc218SMichal Simek	bool "Xilinx PCI host bridge support"
285733cc218SMichal Simek	depends on PCI
286733cc218SMichal Simek
287a6475c13SMichal Simeksource "drivers/pci/Kconfig"
288a6475c13SMichal Simek
289a6475c13SMichal Simekendmenu
290a6475c13SMichal Simek
291575ca288SMichal Simeksource "net/Kconfig"
292575ca288SMichal Simek
293575ca288SMichal Simeksource "drivers/Kconfig"
294575ca288SMichal Simek
295575ca288SMichal Simeksource "fs/Kconfig"
296575ca288SMichal Simek
297575ca288SMichal Simeksource "arch/microblaze/Kconfig.debug"
298575ca288SMichal Simek
299575ca288SMichal Simeksource "security/Kconfig"
300575ca288SMichal Simek
301575ca288SMichal Simeksource "crypto/Kconfig"
302575ca288SMichal Simek
303575ca288SMichal Simeksource "lib/Kconfig"
304