xref: /openbmc/linux/arch/microblaze/Kconfig (revision 2d5973cb)
1575ca288SMichal Simek# For a description of the syntax of this configuration file,
2575ca288SMichal Simek# see Documentation/kbuild/kconfig-language.txt.
3575ca288SMichal Simek
4575ca288SMichal Simekmainmenu "Linux/Microblaze Kernel Configuration"
5575ca288SMichal Simek
6575ca288SMichal Simekconfig MICROBLAZE
7575ca288SMichal Simek	def_bool y
895f72d1eSYinghai Lu	select HAVE_MEMBLOCK
92fd7c761SMichal Simek	select HAVE_FUNCTION_TRACER
106d9e60ceSMichal Simek	select HAVE_FUNCTION_TRACE_MCOUNT_TEST
11a0d3e665SMichal Simek	select HAVE_FUNCTION_GRAPH_TRACER
127d241ff0SMichal Simek	select HAVE_DYNAMIC_FTRACE
137d241ff0SMichal Simek	select HAVE_FTRACE_MCOUNT_RECORD
14afc26cb3SJulie Zhu	select USB_ARCH_HAS_EHCI
156fa612b5SMichal Simek	select ARCH_WANT_OPTIONAL_GPIOLIB
163540ce82SJohn Williams	select HAVE_OPROFILE
172d5973cbSMichal Simek	select HAVE_ARCH_KGDB
18ccfe27d7SMichal Simek	select HAVE_DMA_ATTRS
19ccfe27d7SMichal Simek	select HAVE_DMA_API_DEBUG
203540ce82SJohn Williams	select TRACING_SUPPORT
21575ca288SMichal Simek
22575ca288SMichal Simekconfig SWAP
23575ca288SMichal Simek	def_bool n
24575ca288SMichal Simek
25575ca288SMichal Simekconfig RWSEM_GENERIC_SPINLOCK
26575ca288SMichal Simek	def_bool y
27575ca288SMichal Simek
28575ca288SMichal Simekconfig RWSEM_XCHGADD_ALGORITHM
29575ca288SMichal Simek	bool
30575ca288SMichal Simek
31575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U32
32575ca288SMichal Simek	def_bool n
33575ca288SMichal Simek
34575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U64
35575ca288SMichal Simek	def_bool n
36575ca288SMichal Simek
37575ca288SMichal Simekconfig GENERIC_FIND_NEXT_BIT
38575ca288SMichal Simek	def_bool y
39575ca288SMichal Simek
40575ca288SMichal Simekconfig GENERIC_HWEIGHT
41575ca288SMichal Simek	def_bool y
42575ca288SMichal Simek
43575ca288SMichal Simekconfig GENERIC_HARDIRQS
44575ca288SMichal Simek	def_bool y
45575ca288SMichal Simek
46575ca288SMichal Simekconfig GENERIC_IRQ_PROBE
47575ca288SMichal Simek	def_bool y
48575ca288SMichal Simek
49575ca288SMichal Simekconfig GENERIC_CALIBRATE_DELAY
50575ca288SMichal Simek	def_bool y
51575ca288SMichal Simek
52575ca288SMichal Simekconfig GENERIC_TIME
53575ca288SMichal Simek	def_bool y
54575ca288SMichal Simek
55575ca288SMichal Simekconfig GENERIC_TIME_VSYSCALL
56575ca288SMichal Simek	def_bool n
57575ca288SMichal Simek
58575ca288SMichal Simekconfig GENERIC_CLOCKEVENTS
59575ca288SMichal Simek	def_bool y
60575ca288SMichal Simek
61575ca288SMichal Simekconfig GENERIC_HARDIRQS_NO__DO_IRQ
62575ca288SMichal Simek	def_bool y
63575ca288SMichal Simek
646fa612b5SMichal Simekconfig GENERIC_GPIO
656fa612b5SMichal Simek	def_bool y
666fa612b5SMichal Simek
6714f87389SRemis Lima Baimaconfig GENERIC_CSUM
6814f87389SRemis Lima Baima	def_bool y
6914f87389SRemis Lima Baima
7024b45a12SMichal Simekconfig STACKTRACE_SUPPORT
7124b45a12SMichal Simek	def_bool y
7224b45a12SMichal Simek
73bf2d8096SMichal Simekconfig LOCKDEP_SUPPORT
74bf2d8096SMichal Simek	def_bool y
75bf2d8096SMichal Simek
76fb5a32dcSMichal Simekconfig HAVE_LATENCYTOP_SUPPORT
77fb5a32dcSMichal Simek	def_bool y
78fb5a32dcSMichal Simek
793c5e5672SMichal Simekconfig DTC
803c5e5672SMichal Simek	def_bool y
813c5e5672SMichal Simek
82575ca288SMichal Simeksource "init/Kconfig"
83575ca288SMichal Simek
84575ca288SMichal Simeksource "kernel/Kconfig.freezer"
85575ca288SMichal Simek
86575ca288SMichal Simeksource "arch/microblaze/platform/Kconfig.platform"
87575ca288SMichal Simek
88575ca288SMichal Simekmenu "Processor type and features"
89575ca288SMichal Simek
90296e2603SMichal Simeksource "kernel/time/Kconfig"
91575ca288SMichal Simek
92575ca288SMichal Simeksource "kernel/Kconfig.preempt"
93575ca288SMichal Simek
94575ca288SMichal Simeksource "kernel/Kconfig.hz"
95575ca288SMichal Simek
96575ca288SMichal Simekconfig MMU
97a116f6d5SMichal Simek	bool "MMU support"
98a116f6d5SMichal Simek	default n
99575ca288SMichal Simek
100575ca288SMichal Simekconfig NO_MMU
101575ca288SMichal Simek	bool
102575ca288SMichal Simek	depends on !MMU
103575ca288SMichal Simek	default y
104575ca288SMichal Simek
105575ca288SMichal Simekcomment "Boot options"
106575ca288SMichal Simek
107575ca288SMichal Simekconfig CMDLINE_BOOL
108575ca288SMichal Simek	bool "Default bootloader kernel arguments"
109575ca288SMichal Simek
110575ca288SMichal Simekconfig CMDLINE
111575ca288SMichal Simek	string "Default kernel command string"
112575ca288SMichal Simek	depends on CMDLINE_BOOL
113575ca288SMichal Simek	default "console=ttyUL0,115200"
114575ca288SMichal Simek	help
115575ca288SMichal Simek	  On some architectures there is currently no way for the boot loader
116575ca288SMichal Simek	  to pass arguments to the kernel. For these architectures, you should
117575ca288SMichal Simek	  supply some command-line options at build time by entering them
118575ca288SMichal Simek	  here.
119575ca288SMichal Simek
120575ca288SMichal Simekconfig CMDLINE_FORCE
121575ca288SMichal Simek	bool "Force default kernel command string"
122575ca288SMichal Simek	depends on CMDLINE_BOOL
123575ca288SMichal Simek	default n
124575ca288SMichal Simek	help
125575ca288SMichal Simek	  Set this to have arguments from the default kernel command string
126575ca288SMichal Simek	  override those passed by the boot loader.
127575ca288SMichal Simek
128575ca288SMichal Simekconfig OF
129575ca288SMichal Simek	def_bool y
130e169cfbeSGrant Likely	select OF_FLATTREE
131575ca288SMichal Simek
132575ca288SMichal Simekconfig PROC_DEVICETREE
133575ca288SMichal Simek	bool "Support for device tree in /proc"
134575ca288SMichal Simek	depends on PROC_FS
135575ca288SMichal Simek	help
136575ca288SMichal Simek	  This option adds a device-tree directory under /proc which contains
137575ca288SMichal Simek	  an image of the device tree that the kernel copies from Open
138575ca288SMichal Simek	  Firmware or other boot firmware. If unsure, say Y here.
139575ca288SMichal Simek
140575ca288SMichal Simekendmenu
141575ca288SMichal Simek
142a116f6d5SMichal Simekmenu "Advanced setup"
143a116f6d5SMichal Simek
144a116f6d5SMichal Simekconfig ADVANCED_OPTIONS
145a116f6d5SMichal Simek	bool "Prompt for advanced kernel configuration options"
146a116f6d5SMichal Simek	help
147a116f6d5SMichal Simek	  This option will enable prompting for a variety of advanced kernel
148a116f6d5SMichal Simek	  configuration options.  These options can cause the kernel to not
149a116f6d5SMichal Simek	  work if they are set incorrectly, but can be used to optimize certain
150a116f6d5SMichal Simek	  aspects of kernel memory management.
151a116f6d5SMichal Simek
152a116f6d5SMichal Simek	  Unless you know what you are doing, say N here.
153a116f6d5SMichal Simek
154a116f6d5SMichal Simekcomment "Default settings for advanced configuration options are used"
155a116f6d5SMichal Simek	depends on !ADVANCED_OPTIONS
156a116f6d5SMichal Simek
1573a0d7a4dSMichal Simekconfig XILINX_UNCACHED_SHADOW
1583a0d7a4dSMichal Simek	bool "Are you using uncached shadow for RAM ?"
1593a0d7a4dSMichal Simek	depends on ADVANCED_OPTIONS && !MMU
1603a0d7a4dSMichal Simek	default n
1613a0d7a4dSMichal Simek	help
1623a0d7a4dSMichal Simek	  This is needed to be able to allocate uncachable memory regions.
1633a0d7a4dSMichal Simek	  The feature requires the design to define the RAM memory controller
1643a0d7a4dSMichal Simek	  window to be twice as large as the actual physical memory.
1653a0d7a4dSMichal Simek
166a116f6d5SMichal Simekconfig HIGHMEM_START_BOOL
167a116f6d5SMichal Simek	bool "Set high memory pool address"
168a116f6d5SMichal Simek	depends on ADVANCED_OPTIONS && HIGHMEM
169a116f6d5SMichal Simek	help
170a116f6d5SMichal Simek	  This option allows you to set the base address of the kernel virtual
171a116f6d5SMichal Simek	  area used to map high memory pages.  This can be useful in
172a116f6d5SMichal Simek	  optimizing the layout of kernel virtual memory.
173a116f6d5SMichal Simek
174a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
175a116f6d5SMichal Simek
176a116f6d5SMichal Simekconfig HIGHMEM_START
177a116f6d5SMichal Simek	hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
178a116f6d5SMichal Simek	depends on MMU
179a116f6d5SMichal Simek	default "0xfe000000"
180a116f6d5SMichal Simek
181a116f6d5SMichal Simekconfig LOWMEM_SIZE_BOOL
182a116f6d5SMichal Simek	bool "Set maximum low memory"
183b8a84059SMichal Simek	depends on ADVANCED_OPTIONS && MMU
184a116f6d5SMichal Simek	help
185a116f6d5SMichal Simek	  This option allows you to set the maximum amount of memory which
186a116f6d5SMichal Simek	  will be used as "low memory", that is, memory which the kernel can
187a116f6d5SMichal Simek	  access directly, without having to set up a kernel virtual mapping.
188a116f6d5SMichal Simek	  This can be useful in optimizing the layout of kernel virtual
189a116f6d5SMichal Simek	  memory.
190a116f6d5SMichal Simek
191a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
192a116f6d5SMichal Simek
193a116f6d5SMichal Simekconfig LOWMEM_SIZE
194a116f6d5SMichal Simek	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
195a116f6d5SMichal Simek	default "0x30000000"
196a116f6d5SMichal Simek
197a116f6d5SMichal Simekconfig KERNEL_START_BOOL
198a116f6d5SMichal Simek	bool "Set custom kernel base address"
199a116f6d5SMichal Simek	depends on ADVANCED_OPTIONS
200a116f6d5SMichal Simek	help
201a116f6d5SMichal Simek	  This option allows you to set the kernel virtual address at which
202a116f6d5SMichal Simek	  the kernel will map low memory (the kernel image will be linked at
203a116f6d5SMichal Simek	  this address).  This can be useful in optimizing the virtual memory
204a116f6d5SMichal Simek	  layout of the system.
205a116f6d5SMichal Simek
206a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
207a116f6d5SMichal Simek
208a116f6d5SMichal Simekconfig KERNEL_START
209a116f6d5SMichal Simek	hex "Virtual address of kernel base" if KERNEL_START_BOOL
210a116f6d5SMichal Simek	default "0xc0000000" if MMU
211a116f6d5SMichal Simek	default KERNEL_BASE_ADDR if !MMU
212a116f6d5SMichal Simek
213a116f6d5SMichal Simekconfig TASK_SIZE_BOOL
214a116f6d5SMichal Simek	bool "Set custom user task size"
215b8a84059SMichal Simek	depends on ADVANCED_OPTIONS && MMU
216a116f6d5SMichal Simek	help
217a116f6d5SMichal Simek	  This option allows you to set the amount of virtual address space
218a116f6d5SMichal Simek	  allocated to user tasks.  This can be useful in optimizing the
219a116f6d5SMichal Simek	  virtual memory layout of the system.
220a116f6d5SMichal Simek
221a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
222a116f6d5SMichal Simek
223a116f6d5SMichal Simekconfig TASK_SIZE
224a116f6d5SMichal Simek	hex "Size of user task space" if TASK_SIZE_BOOL
225a116f6d5SMichal Simek	default "0x80000000"
226a116f6d5SMichal Simek
227ba9c4f88SSteven J. Magnanichoice
228ba9c4f88SSteven J. Magnani	prompt "Page size"
229ba9c4f88SSteven J. Magnani	default MICROBLAZE_4K_PAGES
230ba9c4f88SSteven J. Magnani	depends on ADVANCED_OPTIONS && !MMU
231ba9c4f88SSteven J. Magnani	help
232ba9c4f88SSteven J. Magnani	  Select the kernel logical page size. Increasing the page size
233ba9c4f88SSteven J. Magnani	  will reduce software overhead at each page boundary, allow
234ba9c4f88SSteven J. Magnani	  hardware prefetch mechanisms to be more effective, and allow
235ba9c4f88SSteven J. Magnani	  larger dma transfers increasing IO efficiency and reducing
236ba9c4f88SSteven J. Magnani	  overhead. However the utilization of memory will increase.
237ba9c4f88SSteven J. Magnani	  For example, each cached file will using a multiple of the
238ba9c4f88SSteven J. Magnani	  page size to hold its contents and the difference between the
239ba9c4f88SSteven J. Magnani	  end of file and the end of page is wasted.
240ba9c4f88SSteven J. Magnani
241ba9c4f88SSteven J. Magnani	  If unsure, choose 4K_PAGES.
242ba9c4f88SSteven J. Magnani
243ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_4K_PAGES
244ba9c4f88SSteven J. Magnani	bool "4k page size"
245ba9c4f88SSteven J. Magnani
246ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_8K_PAGES
247ba9c4f88SSteven J. Magnani	bool "8k page size"
248ba9c4f88SSteven J. Magnani
249ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_16K_PAGES
250ba9c4f88SSteven J. Magnani	bool "16k page size"
251ba9c4f88SSteven J. Magnani
252ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_32K_PAGES
253ba9c4f88SSteven J. Magnani	bool "32k page size"
254ba9c4f88SSteven J. Magnani
255ba9c4f88SSteven J. Magnaniendchoice
256ba9c4f88SSteven J. Magnani
257a116f6d5SMichal Simekendmenu
258a116f6d5SMichal Simek
259575ca288SMichal Simeksource "mm/Kconfig"
260575ca288SMichal Simek
261575ca288SMichal Simekmenu "Exectuable file formats"
262575ca288SMichal Simek
263575ca288SMichal Simeksource "fs/Kconfig.binfmt"
264575ca288SMichal Simek
265575ca288SMichal Simekendmenu
266575ca288SMichal Simek
267a6475c13SMichal Simekmenu "Bus Options"
268a6475c13SMichal Simek
269a6475c13SMichal Simekconfig PCI
270a6475c13SMichal Simek	bool "PCI support"
271a6475c13SMichal Simek
272a6475c13SMichal Simekconfig PCI_DOMAINS
273a6475c13SMichal Simek	def_bool PCI
274a6475c13SMichal Simek
275a6475c13SMichal Simekconfig PCI_SYSCALL
276a6475c13SMichal Simek	def_bool PCI
277a6475c13SMichal Simek
278733cc218SMichal Simekconfig PCI_XILINX
279733cc218SMichal Simek	bool "Xilinx PCI host bridge support"
280733cc218SMichal Simek	depends on PCI
281733cc218SMichal Simek
282a6475c13SMichal Simeksource "drivers/pci/Kconfig"
283a6475c13SMichal Simek
284a6475c13SMichal Simekendmenu
285a6475c13SMichal Simek
286575ca288SMichal Simeksource "net/Kconfig"
287575ca288SMichal Simek
288575ca288SMichal Simeksource "drivers/Kconfig"
289575ca288SMichal Simek
290575ca288SMichal Simeksource "fs/Kconfig"
291575ca288SMichal Simek
292575ca288SMichal Simeksource "arch/microblaze/Kconfig.debug"
293575ca288SMichal Simek
294575ca288SMichal Simeksource "security/Kconfig"
295575ca288SMichal Simek
296575ca288SMichal Simeksource "crypto/Kconfig"
297575ca288SMichal Simek
298575ca288SMichal Simeksource "lib/Kconfig"
299