xref: /openbmc/linux/arch/microblaze/Kconfig (revision 7ac1b26b)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2575ca288SMichal Simekconfig MICROBLAZE
3575ca288SMichal Simek	def_bool y
4942fa985SYury Norov	select ARCH_32BIT_OFF_T
517c46a6aSChristoph Hellwig	select ARCH_NO_SWAP
6aef0f78eSChristoph Hellwig	select ARCH_HAS_BINFMT_FLAT if !MMU
7d3b9f659SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
8957e3facSRiku Voipio	select ARCH_HAS_GCOV_PROFILE_ALL
95411ad27SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU
105411ad27SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
11fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED if !MMU
12355f65a3SMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT
13c1d7e01dSWill Deacon	select ARCH_WANT_IPC_PARSE_VERSION
1410916706SShile Zhang	select BUILDTIME_TABLE_SORT
15bb0eb050SDaniel Lezcano	select TIMER_OF
1625213388SMichal Simek	select CLONE_BACKWARDS3
1725213388SMichal Simek	select COMMON_CLK
1804e3543eSChristoph Hellwig	select DMA_DIRECT_REMAP if MMU
1925213388SMichal Simek	select GENERIC_ATOMIC64
2025213388SMichal Simek	select GENERIC_CLOCKEVENTS
2125213388SMichal Simek	select GENERIC_CPU_DEVICES
2225213388SMichal Simek	select GENERIC_IDLE_POLL_SETUP
23b6e31629SThomas Gleixner	select GENERIC_IRQ_PROBE
249d61c18bSThomas Gleixner	select GENERIC_IRQ_SHOW
251b34d160SMichael S. Tsirkin	select GENERIC_PCI_IOMAP
26839396abSMichal Simek	select GENERIC_SCHED_CLOCK
277b13277bSGeorge Spelvin	select HAVE_ARCH_HASH
2825213388SMichal Simek	select HAVE_ARCH_KGDB
29282a181bSYiFei Zhu	select HAVE_ARCH_SECCOMP
3025213388SMichal Simek	select HAVE_DEBUG_KMEMLEAK
312602276dSMichal Simek	select HAVE_DMA_CONTIGUOUS
3225213388SMichal Simek	select HAVE_DYNAMIC_FTRACE
3325213388SMichal Simek	select HAVE_FTRACE_MCOUNT_RECORD
3425213388SMichal Simek	select HAVE_FUNCTION_GRAPH_TRACER
3525213388SMichal Simek	select HAVE_FUNCTION_TRACER
3625213388SMichal Simek	select HAVE_OPROFILE
37eb01d42aSChristoph Hellwig	select HAVE_PCI
3825213388SMichal Simek	select IRQ_DOMAIN
390547dc78SZubair Lutfullah Kakakhel	select XILINX_INTC
40786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
4125213388SMichal Simek	select OF
4225213388SMichal Simek	select OF_EARLY_FLATTREE
432eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
4420f1b79dSChristoph Hellwig	select PCI_SYSCALL if PCI
4525213388SMichal Simek	select TRACING_SUPPORT
4625213388SMichal Simek	select VIRT_TO_BUS
47fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
486137fed0SPeter Zijlstra	select MMU_GATHER_NO_RANGE if MMU
496bf8be7fSMichal Simek	select SPARSE_IRQ
505e6e9852SChristoph Hellwig	select SET_FS
51575ca288SMichal Simek
52206d3642SBabu Moger# Endianness selection
53206d3642SBabu Mogerchoice
54206d3642SBabu Moger	prompt "Endianness selection"
55428dbf15SBabu Moger	default CPU_LITTLE_ENDIAN
56206d3642SBabu Moger	help
57206d3642SBabu Moger	  microblaze architectures can be configured for either little or
58206d3642SBabu Moger	  big endian formats. Be sure to select the appropriate mode.
59206d3642SBabu Moger
60206d3642SBabu Mogerconfig CPU_BIG_ENDIAN
61206d3642SBabu Moger	bool "Big endian"
62206d3642SBabu Moger
63206d3642SBabu Mogerconfig CPU_LITTLE_ENDIAN
64206d3642SBabu Moger	bool "Little endian"
65206d3642SBabu Moger
66206d3642SBabu Mogerendchoice
67206d3642SBabu Moger
684e2e4124SMichal Simekconfig ZONE_DMA
694e2e4124SMichal Simek	def_bool y
704e2e4124SMichal Simek
71575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U32
72575ca288SMichal Simek	def_bool n
73575ca288SMichal Simek
74575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U64
75575ca288SMichal Simek	def_bool n
76575ca288SMichal Simek
77575ca288SMichal Simekconfig GENERIC_HWEIGHT
78575ca288SMichal Simek	def_bool y
79575ca288SMichal Simek
80575ca288SMichal Simekconfig GENERIC_CALIBRATE_DELAY
81575ca288SMichal Simek	def_bool y
82575ca288SMichal Simek
8314f87389SRemis Lima Baimaconfig GENERIC_CSUM
8414f87389SRemis Lima Baima	def_bool y
8514f87389SRemis Lima Baima
8624b45a12SMichal Simekconfig STACKTRACE_SUPPORT
8724b45a12SMichal Simek	def_bool y
8824b45a12SMichal Simek
89bf2d8096SMichal Simekconfig LOCKDEP_SUPPORT
90bf2d8096SMichal Simek	def_bool y
91bf2d8096SMichal Simek
92c24cf712SMichal Simeksource "arch/microblaze/Kconfig.platform"
93575ca288SMichal Simek
94575ca288SMichal Simekmenu "Processor type and features"
95575ca288SMichal Simek
96575ca288SMichal Simeksource "kernel/Kconfig.hz"
97575ca288SMichal Simek
98575ca288SMichal Simekconfig MMU
99a116f6d5SMichal Simek	bool "MMU support"
100a116f6d5SMichal Simek	default n
101575ca288SMichal Simek
102575ca288SMichal Simekcomment "Boot options"
103575ca288SMichal Simek
104575ca288SMichal Simekconfig CMDLINE_BOOL
105575ca288SMichal Simek	bool "Default bootloader kernel arguments"
106575ca288SMichal Simek
107575ca288SMichal Simekconfig CMDLINE
108575ca288SMichal Simek	string "Default kernel command string"
109575ca288SMichal Simek	depends on CMDLINE_BOOL
110575ca288SMichal Simek	default "console=ttyUL0,115200"
111575ca288SMichal Simek	help
112575ca288SMichal Simek	  On some architectures there is currently no way for the boot loader
113575ca288SMichal Simek	  to pass arguments to the kernel. For these architectures, you should
114575ca288SMichal Simek	  supply some command-line options at build time by entering them
115575ca288SMichal Simek	  here.
116575ca288SMichal Simek
117575ca288SMichal Simekconfig CMDLINE_FORCE
118575ca288SMichal Simek	bool "Force default kernel command string"
119575ca288SMichal Simek	depends on CMDLINE_BOOL
120575ca288SMichal Simek	default n
121575ca288SMichal Simek	help
122575ca288SMichal Simek	  Set this to have arguments from the default kernel command string
123575ca288SMichal Simek	  override those passed by the boot loader.
124575ca288SMichal Simek
125575ca288SMichal Simekendmenu
126575ca288SMichal Simek
127b408e2c2SMichal Simekmenu "Kernel features"
128a116f6d5SMichal Simek
1294cbbbb43SMichal Simekconfig NR_CPUS
1304cbbbb43SMichal Simek	int
1314cbbbb43SMichal Simek	default "1"
1324cbbbb43SMichal Simek
133a116f6d5SMichal Simekconfig ADVANCED_OPTIONS
134a116f6d5SMichal Simek	bool "Prompt for advanced kernel configuration options"
135a116f6d5SMichal Simek	help
136a116f6d5SMichal Simek	  This option will enable prompting for a variety of advanced kernel
137a116f6d5SMichal Simek	  configuration options.  These options can cause the kernel to not
138a116f6d5SMichal Simek	  work if they are set incorrectly, but can be used to optimize certain
139a116f6d5SMichal Simek	  aspects of kernel memory management.
140a116f6d5SMichal Simek
141a116f6d5SMichal Simek	  Unless you know what you are doing, say N here.
142a116f6d5SMichal Simek
143a116f6d5SMichal Simekcomment "Default settings for advanced configuration options are used"
144a116f6d5SMichal Simek	depends on !ADVANCED_OPTIONS
145a116f6d5SMichal Simek
1463a0d7a4dSMichal Simekconfig XILINX_UNCACHED_SHADOW
1473a0d7a4dSMichal Simek	bool "Are you using uncached shadow for RAM ?"
1483a0d7a4dSMichal Simek	depends on ADVANCED_OPTIONS && !MMU
1493a0d7a4dSMichal Simek	default n
1503a0d7a4dSMichal Simek	help
1513a0d7a4dSMichal Simek	  This is needed to be able to allocate uncachable memory regions.
1523a0d7a4dSMichal Simek	  The feature requires the design to define the RAM memory controller
1533a0d7a4dSMichal Simek	  window to be twice as large as the actual physical memory.
1543a0d7a4dSMichal Simek
1552f2f371fSMichal Simekconfig HIGHMEM
1562f2f371fSMichal Simek	bool "High memory support"
157a116f6d5SMichal Simek	depends on MMU
158*7ac1b26bSThomas Gleixner	select KMAP_LOCAL
1592f2f371fSMichal Simek	help
1602f2f371fSMichal Simek	  The address space of Microblaze processors is only 4 Gigabytes large
1612f2f371fSMichal Simek	  and it has to accommodate user address space, kernel address
1622f2f371fSMichal Simek	  space as well as some memory mapped IO. That means that, if you
1632f2f371fSMichal Simek	  have a large amount of physical memory and/or IO, not all of the
1642f2f371fSMichal Simek	  memory can be "permanently mapped" by the kernel. The physical
1652f2f371fSMichal Simek	  memory that is not permanently mapped is called "high memory".
1662f2f371fSMichal Simek
1672f2f371fSMichal Simek	  If unsure, say n.
168a116f6d5SMichal Simek
169a116f6d5SMichal Simekconfig LOWMEM_SIZE_BOOL
170a116f6d5SMichal Simek	bool "Set maximum low memory"
171b8a84059SMichal Simek	depends on ADVANCED_OPTIONS && MMU
172a116f6d5SMichal Simek	help
173a116f6d5SMichal Simek	  This option allows you to set the maximum amount of memory which
174a116f6d5SMichal Simek	  will be used as "low memory", that is, memory which the kernel can
175a116f6d5SMichal Simek	  access directly, without having to set up a kernel virtual mapping.
176a116f6d5SMichal Simek	  This can be useful in optimizing the layout of kernel virtual
177a116f6d5SMichal Simek	  memory.
178a116f6d5SMichal Simek
179a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
180a116f6d5SMichal Simek
181a116f6d5SMichal Simekconfig LOWMEM_SIZE
182a116f6d5SMichal Simek	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
183a116f6d5SMichal Simek	default "0x30000000"
184a116f6d5SMichal Simek
1850b9b0200SMichal Simekconfig MANUAL_RESET_VECTOR
1860b9b0200SMichal Simek	hex "Microblaze reset vector address setup"
1870b9b0200SMichal Simek	default "0x0"
1880b9b0200SMichal Simek	help
1890b9b0200SMichal Simek	  Set this option to have the kernel override the CPU Reset vector.
1900b9b0200SMichal Simek	  If zero, no change will be made to the MicroBlaze reset vector at
1910b9b0200SMichal Simek	  address 0x0.
1920b9b0200SMichal Simek	  If non-zero, a jump instruction to this address, will be written
1930b9b0200SMichal Simek	  to the reset vector at address 0x0.
1940b9b0200SMichal Simek	  If you are unsure, set it to default value 0x0.
1950b9b0200SMichal Simek
196a116f6d5SMichal Simekconfig KERNEL_START_BOOL
197a116f6d5SMichal Simek	bool "Set custom kernel base address"
198a116f6d5SMichal Simek	depends on ADVANCED_OPTIONS
199a116f6d5SMichal Simek	help
200a116f6d5SMichal Simek	  This option allows you to set the kernel virtual address at which
201a116f6d5SMichal Simek	  the kernel will map low memory (the kernel image will be linked at
202a116f6d5SMichal Simek	  this address).  This can be useful in optimizing the virtual memory
203a116f6d5SMichal Simek	  layout of the system.
204a116f6d5SMichal Simek
205a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
206a116f6d5SMichal Simek
207a116f6d5SMichal Simekconfig KERNEL_START
208a116f6d5SMichal Simek	hex "Virtual address of kernel base" if KERNEL_START_BOOL
209a116f6d5SMichal Simek	default "0xc0000000" if MMU
210a116f6d5SMichal Simek	default KERNEL_BASE_ADDR if !MMU
211a116f6d5SMichal Simek
212a116f6d5SMichal Simekconfig TASK_SIZE_BOOL
213a116f6d5SMichal Simek	bool "Set custom user task size"
214b8a84059SMichal Simek	depends on ADVANCED_OPTIONS && MMU
215a116f6d5SMichal Simek	help
216a116f6d5SMichal Simek	  This option allows you to set the amount of virtual address space
217a116f6d5SMichal Simek	  allocated to user tasks.  This can be useful in optimizing the
218a116f6d5SMichal Simek	  virtual memory layout of the system.
219a116f6d5SMichal Simek
220a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
221a116f6d5SMichal Simek
222a116f6d5SMichal Simekconfig TASK_SIZE
223a116f6d5SMichal Simek	hex "Size of user task space" if TASK_SIZE_BOOL
224a116f6d5SMichal Simek	default "0x80000000"
225a116f6d5SMichal Simek
226ba9c4f88SSteven J. Magnanichoice
227ba9c4f88SSteven J. Magnani	prompt "Page size"
228ba9c4f88SSteven J. Magnani	default MICROBLAZE_4K_PAGES
229ba9c4f88SSteven J. Magnani	depends on ADVANCED_OPTIONS && !MMU
230ba9c4f88SSteven J. Magnani	help
231ba9c4f88SSteven J. Magnani	  Select the kernel logical page size. Increasing the page size
232ba9c4f88SSteven J. Magnani	  will reduce software overhead at each page boundary, allow
233ba9c4f88SSteven J. Magnani	  hardware prefetch mechanisms to be more effective, and allow
234ba9c4f88SSteven J. Magnani	  larger dma transfers increasing IO efficiency and reducing
235ba9c4f88SSteven J. Magnani	  overhead. However the utilization of memory will increase.
236ba9c4f88SSteven J. Magnani	  For example, each cached file will using a multiple of the
237ba9c4f88SSteven J. Magnani	  page size to hold its contents and the difference between the
238ba9c4f88SSteven J. Magnani	  end of file and the end of page is wasted.
239ba9c4f88SSteven J. Magnani
240ba9c4f88SSteven J. Magnani	  If unsure, choose 4K_PAGES.
241ba9c4f88SSteven J. Magnani
242ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_4K_PAGES
243ba9c4f88SSteven J. Magnani	bool "4k page size"
244ba9c4f88SSteven J. Magnani
245ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_16K_PAGES
246ba9c4f88SSteven J. Magnani	bool "16k page size"
247ba9c4f88SSteven J. Magnani
2486e80cff5SMichal Simekconfig MICROBLAZE_64K_PAGES
2496e80cff5SMichal Simek	bool "64k page size"
250ba9c4f88SSteven J. Magnani
251ba9c4f88SSteven J. Magnaniendchoice
252ba9c4f88SSteven J. Magnani
253575ca288SMichal Simekendmenu
254575ca288SMichal Simek
255a6475c13SMichal Simekmenu "Bus Options"
256a6475c13SMichal Simek
257733cc218SMichal Simekconfig PCI_XILINX
258733cc218SMichal Simek	bool "Xilinx PCI host bridge support"
259733cc218SMichal Simek	depends on PCI
260733cc218SMichal Simek
261a6475c13SMichal Simekendmenu
262