xref: /openbmc/linux/arch/microblaze/Kconfig (revision 1e364921)
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
6d3b9f659SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
7957e3facSRiku Voipio	select ARCH_HAS_GCOV_PROFILE_ALL
85411ad27SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU
95411ad27SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
10355f65a3SMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT
11c1d7e01dSWill Deacon	select ARCH_WANT_IPC_PARSE_VERSION
1210916706SShile Zhang	select BUILDTIME_TABLE_SORT
13bb0eb050SDaniel Lezcano	select TIMER_OF
1425213388SMichal Simek	select CLONE_BACKWARDS3
1525213388SMichal Simek	select COMMON_CLK
1605cdf457SMichal Simek	select DMA_DIRECT_REMAP
1725213388SMichal Simek	select GENERIC_ATOMIC64
1825213388SMichal Simek	select GENERIC_CPU_DEVICES
1925213388SMichal Simek	select GENERIC_IDLE_POLL_SETUP
20b6e31629SThomas Gleixner	select GENERIC_IRQ_PROBE
219d61c18bSThomas Gleixner	select GENERIC_IRQ_SHOW
221b34d160SMichael S. Tsirkin	select GENERIC_PCI_IOMAP
23839396abSMichal Simek	select GENERIC_SCHED_CLOCK
247b13277bSGeorge Spelvin	select HAVE_ARCH_HASH
2525213388SMichal Simek	select HAVE_ARCH_KGDB
26282a181bSYiFei Zhu	select HAVE_ARCH_SECCOMP
2725213388SMichal Simek	select HAVE_DEBUG_KMEMLEAK
282602276dSMichal Simek	select HAVE_DMA_CONTIGUOUS
2925213388SMichal Simek	select HAVE_DYNAMIC_FTRACE
3025213388SMichal Simek	select HAVE_FTRACE_MCOUNT_RECORD
3125213388SMichal Simek	select HAVE_FUNCTION_GRAPH_TRACER
3225213388SMichal Simek	select HAVE_FUNCTION_TRACER
33eb01d42aSChristoph Hellwig	select HAVE_PCI
3425213388SMichal Simek	select IRQ_DOMAIN
350547dc78SZubair Lutfullah Kakakhel	select XILINX_INTC
36786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
3725213388SMichal Simek	select OF
3825213388SMichal Simek	select OF_EARLY_FLATTREE
392eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
4020f1b79dSChristoph Hellwig	select PCI_SYSCALL if PCI
4125213388SMichal Simek	select VIRT_TO_BUS
42fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
4305cdf457SMichal Simek	select MMU_GATHER_NO_RANGE
446bf8be7fSMichal Simek	select SPARSE_IRQ
455e6e9852SChristoph Hellwig	select SET_FS
4663703f37SKefeng Wang	select ZONE_DMA
474aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
48*1e364921SMichal Simek	select GENERIC_IRQ_MULTI_HANDLER
49*1e364921SMichal Simek	select HANDLE_DOMAIN_IRQ
50575ca288SMichal Simek
51206d3642SBabu Moger# Endianness selection
52206d3642SBabu Mogerchoice
53206d3642SBabu Moger	prompt "Endianness selection"
54428dbf15SBabu Moger	default CPU_LITTLE_ENDIAN
55206d3642SBabu Moger	help
56206d3642SBabu Moger	  microblaze architectures can be configured for either little or
57206d3642SBabu Moger	  big endian formats. Be sure to select the appropriate mode.
58206d3642SBabu Moger
59206d3642SBabu Mogerconfig CPU_BIG_ENDIAN
60206d3642SBabu Moger	bool "Big endian"
61206d3642SBabu Moger
62206d3642SBabu Mogerconfig CPU_LITTLE_ENDIAN
63206d3642SBabu Moger	bool "Little endian"
64206d3642SBabu Moger
65206d3642SBabu Mogerendchoice
66206d3642SBabu Moger
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
88c24cf712SMichal Simeksource "arch/microblaze/Kconfig.platform"
89575ca288SMichal Simek
90575ca288SMichal Simekmenu "Processor type and features"
91575ca288SMichal Simek
92575ca288SMichal Simeksource "kernel/Kconfig.hz"
93575ca288SMichal Simek
94575ca288SMichal Simekconfig MMU
9505cdf457SMichal Simek	def_bool y
96575ca288SMichal Simek
97575ca288SMichal Simekcomment "Boot options"
98575ca288SMichal Simek
99575ca288SMichal Simekconfig CMDLINE_BOOL
100575ca288SMichal Simek	bool "Default bootloader kernel arguments"
101575ca288SMichal Simek
102575ca288SMichal Simekconfig CMDLINE
103575ca288SMichal Simek	string "Default kernel command string"
104575ca288SMichal Simek	depends on CMDLINE_BOOL
105575ca288SMichal Simek	default "console=ttyUL0,115200"
106575ca288SMichal Simek	help
107575ca288SMichal Simek	  On some architectures there is currently no way for the boot loader
108575ca288SMichal Simek	  to pass arguments to the kernel. For these architectures, you should
109575ca288SMichal Simek	  supply some command-line options at build time by entering them
110575ca288SMichal Simek	  here.
111575ca288SMichal Simek
112575ca288SMichal Simekconfig CMDLINE_FORCE
113575ca288SMichal Simek	bool "Force default kernel command string"
114575ca288SMichal Simek	depends on CMDLINE_BOOL
115575ca288SMichal Simek	default n
116575ca288SMichal Simek	help
117575ca288SMichal Simek	  Set this to have arguments from the default kernel command string
118575ca288SMichal Simek	  override those passed by the boot loader.
119575ca288SMichal Simek
120575ca288SMichal Simekendmenu
121575ca288SMichal Simek
122b408e2c2SMichal Simekmenu "Kernel features"
123a116f6d5SMichal Simek
1244cbbbb43SMichal Simekconfig NR_CPUS
1254cbbbb43SMichal Simek	int
1264cbbbb43SMichal Simek	default "1"
1274cbbbb43SMichal Simek
128a116f6d5SMichal Simekconfig ADVANCED_OPTIONS
129a116f6d5SMichal Simek	bool "Prompt for advanced kernel configuration options"
130a116f6d5SMichal Simek	help
131a116f6d5SMichal Simek	  This option will enable prompting for a variety of advanced kernel
132a116f6d5SMichal Simek	  configuration options.  These options can cause the kernel to not
133a116f6d5SMichal Simek	  work if they are set incorrectly, but can be used to optimize certain
134a116f6d5SMichal Simek	  aspects of kernel memory management.
135a116f6d5SMichal Simek
136a116f6d5SMichal Simek	  Unless you know what you are doing, say N here.
137a116f6d5SMichal Simek
138a116f6d5SMichal Simekcomment "Default settings for advanced configuration options are used"
139a116f6d5SMichal Simek	depends on !ADVANCED_OPTIONS
140a116f6d5SMichal Simek
1412f2f371fSMichal Simekconfig HIGHMEM
1422f2f371fSMichal Simek	bool "High memory support"
1437ac1b26bSThomas Gleixner	select KMAP_LOCAL
1442f2f371fSMichal Simek	help
1452f2f371fSMichal Simek	  The address space of Microblaze processors is only 4 Gigabytes large
1462f2f371fSMichal Simek	  and it has to accommodate user address space, kernel address
1472f2f371fSMichal Simek	  space as well as some memory mapped IO. That means that, if you
1482f2f371fSMichal Simek	  have a large amount of physical memory and/or IO, not all of the
1492f2f371fSMichal Simek	  memory can be "permanently mapped" by the kernel. The physical
1502f2f371fSMichal Simek	  memory that is not permanently mapped is called "high memory".
1512f2f371fSMichal Simek
1522f2f371fSMichal Simek	  If unsure, say n.
153a116f6d5SMichal Simek
154a116f6d5SMichal Simekconfig LOWMEM_SIZE_BOOL
155a116f6d5SMichal Simek	bool "Set maximum low memory"
15605cdf457SMichal Simek	depends on ADVANCED_OPTIONS
157a116f6d5SMichal Simek	help
158a116f6d5SMichal Simek	  This option allows you to set the maximum amount of memory which
159a116f6d5SMichal Simek	  will be used as "low memory", that is, memory which the kernel can
160a116f6d5SMichal Simek	  access directly, without having to set up a kernel virtual mapping.
161a116f6d5SMichal Simek	  This can be useful in optimizing the layout of kernel virtual
162a116f6d5SMichal Simek	  memory.
163a116f6d5SMichal Simek
164a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
165a116f6d5SMichal Simek
166a116f6d5SMichal Simekconfig LOWMEM_SIZE
167a116f6d5SMichal Simek	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
168a116f6d5SMichal Simek	default "0x30000000"
169a116f6d5SMichal Simek
1700b9b0200SMichal Simekconfig MANUAL_RESET_VECTOR
1710b9b0200SMichal Simek	hex "Microblaze reset vector address setup"
1720b9b0200SMichal Simek	default "0x0"
1730b9b0200SMichal Simek	help
1740b9b0200SMichal Simek	  Set this option to have the kernel override the CPU Reset vector.
1750b9b0200SMichal Simek	  If zero, no change will be made to the MicroBlaze reset vector at
1760b9b0200SMichal Simek	  address 0x0.
1770b9b0200SMichal Simek	  If non-zero, a jump instruction to this address, will be written
1780b9b0200SMichal Simek	  to the reset vector at address 0x0.
1790b9b0200SMichal Simek	  If you are unsure, set it to default value 0x0.
1800b9b0200SMichal Simek
181a116f6d5SMichal Simekconfig KERNEL_START_BOOL
182a116f6d5SMichal Simek	bool "Set custom kernel base address"
183a116f6d5SMichal Simek	depends on ADVANCED_OPTIONS
184a116f6d5SMichal Simek	help
185a116f6d5SMichal Simek	  This option allows you to set the kernel virtual address at which
186a116f6d5SMichal Simek	  the kernel will map low memory (the kernel image will be linked at
187a116f6d5SMichal Simek	  this address).  This can be useful in optimizing the virtual memory
188a116f6d5SMichal Simek	  layout of the system.
189a116f6d5SMichal Simek
190a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
191a116f6d5SMichal Simek
192a116f6d5SMichal Simekconfig KERNEL_START
193a116f6d5SMichal Simek	hex "Virtual address of kernel base" if KERNEL_START_BOOL
19405cdf457SMichal Simek	default "0xc0000000"
195a116f6d5SMichal Simek
196a116f6d5SMichal Simekconfig TASK_SIZE_BOOL
197a116f6d5SMichal Simek	bool "Set custom user task size"
19805cdf457SMichal Simek	depends on ADVANCED_OPTIONS
199a116f6d5SMichal Simek	help
200a116f6d5SMichal Simek	  This option allows you to set the amount of virtual address space
201a116f6d5SMichal Simek	  allocated to user tasks.  This can be useful in optimizing the
202a116f6d5SMichal Simek	  virtual memory layout of the system.
203a116f6d5SMichal Simek
204a116f6d5SMichal Simek	  Say N here unless you know what you are doing.
205a116f6d5SMichal Simek
206a116f6d5SMichal Simekconfig TASK_SIZE
207a116f6d5SMichal Simek	hex "Size of user task space" if TASK_SIZE_BOOL
208a116f6d5SMichal Simek	default "0x80000000"
209a116f6d5SMichal Simek
210575ca288SMichal Simekendmenu
211575ca288SMichal Simek
212a6475c13SMichal Simekmenu "Bus Options"
213a6475c13SMichal Simek
214733cc218SMichal Simekconfig PCI_XILINX
215733cc218SMichal Simek	bool "Xilinx PCI host bridge support"
216733cc218SMichal Simek	depends on PCI
217733cc218SMichal Simek
218a6475c13SMichal Simekendmenu
219