xref: /openbmc/linux/arch/microblaze/Kconfig (revision 206d3642)
1575ca288SMichal Simekconfig MICROBLAZE
2575ca288SMichal Simek	def_bool y
3957e3facSRiku Voipio	select ARCH_HAS_GCOV_PROFILE_ALL
4355f65a3SMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT
507c75d7aSVladimir Murzin	select ARCH_NO_COHERENT_DMA_MMAP if !MMU
6c1d7e01dSWill Deacon	select ARCH_WANT_IPC_PARSE_VERSION
725213388SMichal Simek	select BUILDTIME_EXTABLE_SORT
8bb0eb050SDaniel Lezcano	select TIMER_OF
925213388SMichal Simek	select CLONE_BACKWARDS3
1025213388SMichal Simek	select COMMON_CLK
1125213388SMichal Simek	select GENERIC_ATOMIC64
1225213388SMichal Simek	select GENERIC_CLOCKEVENTS
1325213388SMichal Simek	select GENERIC_CPU_DEVICES
1425213388SMichal Simek	select GENERIC_IDLE_POLL_SETUP
15b6e31629SThomas Gleixner	select GENERIC_IRQ_PROBE
169d61c18bSThomas Gleixner	select GENERIC_IRQ_SHOW
171b34d160SMichael S. Tsirkin	select GENERIC_PCI_IOMAP
18839396abSMichal Simek	select GENERIC_SCHED_CLOCK
197b13277bSGeorge Spelvin	select HAVE_ARCH_HASH
2025213388SMichal Simek	select HAVE_ARCH_KGDB
2125213388SMichal Simek	select HAVE_DEBUG_KMEMLEAK
2225213388SMichal Simek	select HAVE_DMA_API_DEBUG
2325213388SMichal Simek	select HAVE_DYNAMIC_FTRACE
2425213388SMichal Simek	select HAVE_FTRACE_MCOUNT_RECORD
2525213388SMichal Simek	select HAVE_FUNCTION_GRAPH_TRACER
2625213388SMichal Simek	select HAVE_FUNCTION_TRACER
2725213388SMichal Simek	select HAVE_MEMBLOCK
2825213388SMichal Simek	select HAVE_MEMBLOCK_NODE_MAP
2925213388SMichal Simek	select HAVE_OPROFILE
3025213388SMichal Simek	select IRQ_DOMAIN
310547dc78SZubair Lutfullah Kakakhel	select XILINX_INTC
32786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
3325213388SMichal Simek	select OF
3425213388SMichal Simek	select OF_EARLY_FLATTREE
3525213388SMichal Simek	select TRACING_SUPPORT
3625213388SMichal Simek	select VIRT_TO_BUS
37fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
38575ca288SMichal Simek
39*206d3642SBabu Moger# Endianness selection
40*206d3642SBabu Mogerchoice
41*206d3642SBabu Moger	prompt "Endianness selection"
42*206d3642SBabu Moger	default CPU_BIG_ENDIAN
43*206d3642SBabu Moger	help
44*206d3642SBabu Moger	  microblaze architectures can be configured for either little or
45*206d3642SBabu Moger	  big endian formats. Be sure to select the appropriate mode.
46*206d3642SBabu Moger
47*206d3642SBabu Mogerconfig CPU_BIG_ENDIAN
48*206d3642SBabu Moger	bool "Big endian"
49*206d3642SBabu Moger
50*206d3642SBabu Mogerconfig CPU_LITTLE_ENDIAN
51*206d3642SBabu Moger	bool "Little endian"
52*206d3642SBabu Moger
53*206d3642SBabu Mogerendchoice
54*206d3642SBabu Moger
55575ca288SMichal Simekconfig SWAP
56575ca288SMichal Simek	def_bool n
57575ca288SMichal Simek
58575ca288SMichal Simekconfig RWSEM_GENERIC_SPINLOCK
59575ca288SMichal Simek	def_bool y
60575ca288SMichal Simek
614e2e4124SMichal Simekconfig ZONE_DMA
624e2e4124SMichal Simek	def_bool y
634e2e4124SMichal Simek
64575ca288SMichal Simekconfig RWSEM_XCHGADD_ALGORITHM
65575ca288SMichal Simek	bool
66575ca288SMichal Simek
67575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U32
68575ca288SMichal Simek	def_bool n
69575ca288SMichal Simek
70575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U64
71575ca288SMichal Simek	def_bool n
72575ca288SMichal Simek
73575ca288SMichal Simekconfig GENERIC_HWEIGHT
74575ca288SMichal Simek	def_bool y
75575ca288SMichal Simek
76575ca288SMichal Simekconfig GENERIC_CALIBRATE_DELAY
77575ca288SMichal Simek	def_bool y
78575ca288SMichal Simek
7914f87389SRemis Lima Baimaconfig GENERIC_CSUM
8014f87389SRemis Lima Baima	def_bool y
8114f87389SRemis Lima Baima
8224b45a12SMichal Simekconfig STACKTRACE_SUPPORT
8324b45a12SMichal Simek	def_bool y
8424b45a12SMichal Simek
85bf2d8096SMichal Simekconfig LOCKDEP_SUPPORT
86bf2d8096SMichal Simek	def_bool y
87bf2d8096SMichal Simek
88575ca288SMichal Simeksource "init/Kconfig"
89575ca288SMichal Simek
90575ca288SMichal Simeksource "kernel/Kconfig.freezer"
91575ca288SMichal Simek
92c24cf712SMichal Simeksource "arch/microblaze/Kconfig.platform"
93575ca288SMichal Simek
94575ca288SMichal Simekmenu "Processor type and features"
95575ca288SMichal Simek
96575ca288SMichal Simeksource "kernel/Kconfig.preempt"
97575ca288SMichal Simek
98575ca288SMichal Simeksource "kernel/Kconfig.hz"
99575ca288SMichal Simek
100575ca288SMichal Simekconfig MMU
101a116f6d5SMichal Simek	bool "MMU support"
102a116f6d5SMichal Simek	default n
103575ca288SMichal Simek
104575ca288SMichal Simekcomment "Boot options"
105575ca288SMichal Simek
106575ca288SMichal Simekconfig CMDLINE_BOOL
107575ca288SMichal Simek	bool "Default bootloader kernel arguments"
108575ca288SMichal Simek
109575ca288SMichal Simekconfig CMDLINE
110575ca288SMichal Simek	string "Default kernel command string"
111575ca288SMichal Simek	depends on CMDLINE_BOOL
112575ca288SMichal Simek	default "console=ttyUL0,115200"
113575ca288SMichal Simek	help
114575ca288SMichal Simek	  On some architectures there is currently no way for the boot loader
115575ca288SMichal Simek	  to pass arguments to the kernel. For these architectures, you should
116575ca288SMichal Simek	  supply some command-line options at build time by entering them
117575ca288SMichal Simek	  here.
118575ca288SMichal Simek
119575ca288SMichal Simekconfig CMDLINE_FORCE
120575ca288SMichal Simek	bool "Force default kernel command string"
121575ca288SMichal Simek	depends on CMDLINE_BOOL
122575ca288SMichal Simek	default n
123575ca288SMichal Simek	help
124575ca288SMichal Simek	  Set this to have arguments from the default kernel command string
125575ca288SMichal Simek	  override those passed by the boot loader.
126575ca288SMichal Simek
12768c6ac33SMichal Simekconfig SECCOMP
12868c6ac33SMichal Simek	bool "Enable seccomp to safely compute untrusted bytecode"
12968c6ac33SMichal Simek	depends on PROC_FS
13068c6ac33SMichal Simek	default y
13168c6ac33SMichal Simek	help
13268c6ac33SMichal Simek	  This kernel feature is useful for number crunching applications
13368c6ac33SMichal Simek	  that may need to compute untrusted bytecode during their
13468c6ac33SMichal Simek	  execution. By using pipes or other transports made available to
13568c6ac33SMichal Simek	  the process as file descriptors supporting the read/write
13668c6ac33SMichal Simek	  syscalls, it's possible to isolate those applications in
13768c6ac33SMichal Simek	  their own address space using seccomp. Once seccomp is
13868c6ac33SMichal Simek	  enabled via /proc/<pid>/seccomp, it cannot be disabled
13968c6ac33SMichal Simek	  and the task is only allowed to execute a few safe syscalls
14068c6ac33SMichal Simek	  defined by each seccomp mode.
14168c6ac33SMichal Simek
14268c6ac33SMichal Simek	  If unsure, say Y. Only embedded should say N here.
14368c6ac33SMichal Simek
144575ca288SMichal Simekendmenu
145575ca288SMichal Simek
146b408e2c2SMichal Simekmenu "Kernel features"
147a116f6d5SMichal Simek
1484cbbbb43SMichal Simekconfig NR_CPUS
1494cbbbb43SMichal Simek	int
1504cbbbb43SMichal Simek	default "1"
1514cbbbb43SMichal Simek
152a116f6d5SMichal Simekconfig ADVANCED_OPTIONS
153a116f6d5SMichal Simek	bool "Prompt for advanced kernel configuration options"
154a116f6d5SMichal Simek	help
155a116f6d5SMichal Simek	  This option will enable prompting for a variety of advanced kernel
156a116f6d5SMichal Simek	  configuration options.  These options can cause the kernel to not
157a116f6d5SMichal Simek	  work if they are set incorrectly, but can be used to optimize certain
158a116f6d5SMichal Simek	  aspects of kernel memory management.
159a116f6d5SMichal Simek
160a116f6d5SMichal Simek	  Unless you know what you are doing, say N here.
161a116f6d5SMichal Simek
162a116f6d5SMichal Simekcomment "Default settings for advanced configuration options are used"
163a116f6d5SMichal Simek	depends on !ADVANCED_OPTIONS
164a116f6d5SMichal Simek
1653a0d7a4dSMichal Simekconfig XILINX_UNCACHED_SHADOW
1663a0d7a4dSMichal Simek	bool "Are you using uncached shadow for RAM ?"
1673a0d7a4dSMichal Simek	depends on ADVANCED_OPTIONS && !MMU
1683a0d7a4dSMichal Simek	default n
1693a0d7a4dSMichal Simek	help
1703a0d7a4dSMichal Simek	  This is needed to be able to allocate uncachable memory regions.
1713a0d7a4dSMichal Simek	  The feature requires the design to define the RAM memory controller
1723a0d7a4dSMichal Simek	  window to be twice as large as the actual physical memory.
1733a0d7a4dSMichal Simek
1742f2f371fSMichal Simekconfig HIGHMEM
1752f2f371fSMichal Simek	bool "High memory support"
176a116f6d5SMichal Simek	depends on MMU
1772f2f371fSMichal Simek	help
1782f2f371fSMichal Simek	  The address space of Microblaze processors is only 4 Gigabytes large
1792f2f371fSMichal Simek	  and it has to accommodate user address space, kernel address
1802f2f371fSMichal Simek	  space as well as some memory mapped IO. That means that, if you
1812f2f371fSMichal Simek	  have a large amount of physical memory and/or IO, not all of the
1822f2f371fSMichal Simek	  memory can be "permanently mapped" by the kernel. The physical
1832f2f371fSMichal Simek	  memory that is not permanently mapped is called "high memory".
1842f2f371fSMichal Simek
1852f2f371fSMichal Simek	  If unsure, say n.
186a116f6d5SMichal Simek
187a116f6d5SMichal Simekconfig LOWMEM_SIZE_BOOL
188a116f6d5SMichal Simek	bool "Set maximum low memory"
189b8a84059SMichal Simek	depends on ADVANCED_OPTIONS && MMU
190a116f6d5SMichal Simek	help
191a116f6d5SMichal Simek	  This option allows you to set the maximum amount of memory which
192a116f6d5SMichal Simek	  will be used as "low memory", that is, memory which the kernel can
193a116f6d5SMichal Simek	  access directly, without having to set up a kernel virtual mapping.
194a116f6d5SMichal Simek	  This can be useful in optimizing the layout of kernel virtual
195a116f6d5SMichal Simek	  memory.
196a116f6d5SMichal Simek
197a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
198a116f6d5SMichal Simek
199a116f6d5SMichal Simekconfig LOWMEM_SIZE
200a116f6d5SMichal Simek	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
201a116f6d5SMichal Simek	default "0x30000000"
202a116f6d5SMichal Simek
2030b9b0200SMichal Simekconfig MANUAL_RESET_VECTOR
2040b9b0200SMichal Simek	hex "Microblaze reset vector address setup"
2050b9b0200SMichal Simek	default "0x0"
2060b9b0200SMichal Simek	help
2070b9b0200SMichal Simek	  Set this option to have the kernel override the CPU Reset vector.
2080b9b0200SMichal Simek	  If zero, no change will be made to the MicroBlaze reset vector at
2090b9b0200SMichal Simek	  address 0x0.
2100b9b0200SMichal Simek	  If non-zero, a jump instruction to this address, will be written
2110b9b0200SMichal Simek	  to the reset vector at address 0x0.
2120b9b0200SMichal Simek	  If you are unsure, set it to default value 0x0.
2130b9b0200SMichal Simek
214a116f6d5SMichal Simekconfig KERNEL_START_BOOL
215a116f6d5SMichal Simek	bool "Set custom kernel base address"
216a116f6d5SMichal Simek	depends on ADVANCED_OPTIONS
217a116f6d5SMichal Simek	help
218a116f6d5SMichal Simek	  This option allows you to set the kernel virtual address at which
219a116f6d5SMichal Simek	  the kernel will map low memory (the kernel image will be linked at
220a116f6d5SMichal Simek	  this address).  This can be useful in optimizing the virtual memory
221a116f6d5SMichal Simek	  layout of the system.
222a116f6d5SMichal Simek
223a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
224a116f6d5SMichal Simek
225a116f6d5SMichal Simekconfig KERNEL_START
226a116f6d5SMichal Simek	hex "Virtual address of kernel base" if KERNEL_START_BOOL
227a116f6d5SMichal Simek	default "0xc0000000" if MMU
228a116f6d5SMichal Simek	default KERNEL_BASE_ADDR if !MMU
229a116f6d5SMichal Simek
230a116f6d5SMichal Simekconfig TASK_SIZE_BOOL
231a116f6d5SMichal Simek	bool "Set custom user task size"
232b8a84059SMichal Simek	depends on ADVANCED_OPTIONS && MMU
233a116f6d5SMichal Simek	help
234a116f6d5SMichal Simek	  This option allows you to set the amount of virtual address space
235a116f6d5SMichal Simek	  allocated to user tasks.  This can be useful in optimizing the
236a116f6d5SMichal Simek	  virtual memory layout of the system.
237a116f6d5SMichal Simek
238a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
239a116f6d5SMichal Simek
240a116f6d5SMichal Simekconfig TASK_SIZE
241a116f6d5SMichal Simek	hex "Size of user task space" if TASK_SIZE_BOOL
242a116f6d5SMichal Simek	default "0x80000000"
243a116f6d5SMichal Simek
244ba9c4f88SSteven J. Magnanichoice
245ba9c4f88SSteven J. Magnani	prompt "Page size"
246ba9c4f88SSteven J. Magnani	default MICROBLAZE_4K_PAGES
247ba9c4f88SSteven J. Magnani	depends on ADVANCED_OPTIONS && !MMU
248ba9c4f88SSteven J. Magnani	help
249ba9c4f88SSteven J. Magnani	  Select the kernel logical page size. Increasing the page size
250ba9c4f88SSteven J. Magnani	  will reduce software overhead at each page boundary, allow
251ba9c4f88SSteven J. Magnani	  hardware prefetch mechanisms to be more effective, and allow
252ba9c4f88SSteven J. Magnani	  larger dma transfers increasing IO efficiency and reducing
253ba9c4f88SSteven J. Magnani	  overhead. However the utilization of memory will increase.
254ba9c4f88SSteven J. Magnani	  For example, each cached file will using a multiple of the
255ba9c4f88SSteven J. Magnani	  page size to hold its contents and the difference between the
256ba9c4f88SSteven J. Magnani	  end of file and the end of page is wasted.
257ba9c4f88SSteven J. Magnani
258ba9c4f88SSteven J. Magnani	  If unsure, choose 4K_PAGES.
259ba9c4f88SSteven J. Magnani
260ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_4K_PAGES
261ba9c4f88SSteven J. Magnani	bool "4k page size"
262ba9c4f88SSteven J. Magnani
263ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_16K_PAGES
264ba9c4f88SSteven J. Magnani	bool "16k page size"
265ba9c4f88SSteven J. Magnani
2666e80cff5SMichal Simekconfig MICROBLAZE_64K_PAGES
2676e80cff5SMichal Simek	bool "64k page size"
268ba9c4f88SSteven J. Magnani
269ba9c4f88SSteven J. Magnaniendchoice
270ba9c4f88SSteven J. Magnani
271575ca288SMichal Simeksource "mm/Kconfig"
272575ca288SMichal Simek
2737acdc1cfSMichal Simekendmenu
2747acdc1cfSMichal Simek
275910672deSTobias Klausermenu "Executable file formats"
276575ca288SMichal Simek
277575ca288SMichal Simeksource "fs/Kconfig.binfmt"
278575ca288SMichal Simek
279575ca288SMichal Simekendmenu
280575ca288SMichal Simek
281a6475c13SMichal Simekmenu "Bus Options"
282a6475c13SMichal Simek
283a6475c13SMichal Simekconfig PCI
284a6475c13SMichal Simek	bool "PCI support"
285a6475c13SMichal Simek
286a6475c13SMichal Simekconfig PCI_DOMAINS
287a6475c13SMichal Simek	def_bool PCI
288a6475c13SMichal Simek
28901cf9d52SBharat Kumar Gogadaconfig PCI_DOMAINS_GENERIC
29001cf9d52SBharat Kumar Gogada	def_bool PCI_DOMAINS
29101cf9d52SBharat Kumar Gogada
292a6475c13SMichal Simekconfig PCI_SYSCALL
293a6475c13SMichal Simek	def_bool PCI
294a6475c13SMichal Simek
295733cc218SMichal Simekconfig PCI_XILINX
296733cc218SMichal Simek	bool "Xilinx PCI host bridge support"
297733cc218SMichal Simek	depends on PCI
298733cc218SMichal Simek
299a6475c13SMichal Simeksource "drivers/pci/Kconfig"
300a6475c13SMichal Simek
301a6475c13SMichal Simekendmenu
302a6475c13SMichal Simek
303575ca288SMichal Simeksource "net/Kconfig"
304575ca288SMichal Simek
305575ca288SMichal Simeksource "drivers/Kconfig"
306575ca288SMichal Simek
307575ca288SMichal Simeksource "fs/Kconfig"
308575ca288SMichal Simek
309575ca288SMichal Simeksource "arch/microblaze/Kconfig.debug"
310575ca288SMichal Simek
311575ca288SMichal Simeksource "security/Kconfig"
312575ca288SMichal Simek
313575ca288SMichal Simeksource "crypto/Kconfig"
314575ca288SMichal Simek
315575ca288SMichal Simeksource "lib/Kconfig"
316