blob: 14a67a42fcae8862aaeff8a2c9f7d6e4826dde53 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Michal Simek575ca282009-03-27 14:25:50 +01002config MICROBLAZE
3 def_bool y
Yury Norov942fa982018-05-16 11:18:49 +03004 select ARCH_32BIT_OFF_T
Christoph Hellwig17c46a62018-07-31 13:39:29 +02005 select ARCH_NO_SWAP
Christoph Hellwigd3b9f652019-08-14 16:03:47 +02006 select ARCH_HAS_DMA_PREP_COHERENT
Riku Voipio957e3fa2014-12-12 16:57:44 -08007 select ARCH_HAS_GCOV_PROFILE_ALL
Christoph Hellwig5411ad22018-07-19 05:54:39 -07008 select ARCH_HAS_SYNC_DMA_FOR_CPU
9 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
Mark Salter355f65a2013-10-07 22:12:28 -040010 select ARCH_MIGHT_HAVE_PC_PARPORT
Will Deaconc1d7e012012-07-30 14:42:46 -070011 select ARCH_WANT_IPC_PARSE_VERSION
Shile Zhang10916702019-12-04 08:46:31 +080012 select BUILDTIME_TABLE_SORT
Daniel Lezcanobb0eb052017-05-26 19:34:11 +020013 select TIMER_OF
Michal Simek25213382014-04-07 12:51:44 +020014 select CLONE_BACKWARDS3
15 select COMMON_CLK
Michal Simek05cdf452020-11-26 14:32:25 +010016 select DMA_DIRECT_REMAP
Michal Simek25213382014-04-07 12:51:44 +020017 select GENERIC_ATOMIC64
Michal Simek25213382014-04-07 12:51:44 +020018 select GENERIC_CPU_DEVICES
19 select GENERIC_IDLE_POLL_SETUP
Thomas Gleixnerb6e31622011-01-19 20:35:05 +010020 select GENERIC_IRQ_PROBE
Thomas Gleixner9d61c182011-03-24 14:55:52 +010021 select GENERIC_IRQ_SHOW
Michael S. Tsirkin1b34d162011-11-24 21:06:41 +020022 select GENERIC_PCI_IOMAP
Michal Simek839396a2013-12-20 10:16:40 +010023 select GENERIC_SCHED_CLOCK
George Spelvin7b132772016-05-25 11:06:09 -040024 select HAVE_ARCH_HASH
Michal Simek25213382014-04-07 12:51:44 +020025 select HAVE_ARCH_KGDB
YiFei Zhu282a1812020-09-24 07:44:16 -050026 select HAVE_ARCH_SECCOMP
Michal Simek25213382014-04-07 12:51:44 +020027 select HAVE_DEBUG_KMEMLEAK
Michal Simek26022762020-01-14 10:05:24 +010028 select HAVE_DMA_CONTIGUOUS
Michal Simek25213382014-04-07 12:51:44 +020029 select HAVE_DYNAMIC_FTRACE
30 select HAVE_FTRACE_MCOUNT_RECORD
31 select HAVE_FUNCTION_GRAPH_TRACER
Michal Simek25213382014-04-07 12:51:44 +020032 select HAVE_FUNCTION_TRACER
Christoph Hellwigeb01d422018-11-15 20:05:32 +010033 select HAVE_PCI
Michal Simek25213382014-04-07 12:51:44 +020034 select IRQ_DOMAIN
Zubair Lutfullah Kakakhel0547dc72016-11-14 12:13:45 +000035 select XILINX_INTC
David Howells786d35d2012-09-28 14:31:03 +093036 select MODULES_USE_ELF_RELA
Michal Simek25213382014-04-07 12:51:44 +020037 select OF
38 select OF_EARLY_FLATTREE
Christoph Hellwig2eac9c22018-11-15 20:05:33 +010039 select PCI_DOMAINS_GENERIC if PCI
Christoph Hellwig20f1b792018-11-15 20:05:34 +010040 select PCI_SYSCALL if PCI
Michal Simek25213382014-04-07 12:51:44 +020041 select VIRT_TO_BUS
Zhaoxiu Zengfff7fb02016-05-20 17:03:57 -070042 select CPU_NO_EFFICIENT_FFS
Michal Simek05cdf452020-11-26 14:32:25 +010043 select MMU_GATHER_NO_RANGE
Michal Simek6bf8be72017-08-08 16:06:52 +020044 select SPARSE_IRQ
Christoph Hellwig5e6e9852020-09-03 16:22:35 +020045 select SET_FS
Kefeng Wang63703f32021-06-30 18:52:20 -070046 select ZONE_DMA
Michal Simek575ca282009-03-27 14:25:50 +010047
Babu Moger206d3642017-09-08 16:14:25 -070048# Endianness selection
49choice
50 prompt "Endianness selection"
Babu Moger428dbf12017-09-18 10:53:29 -060051 default CPU_LITTLE_ENDIAN
Babu Moger206d3642017-09-08 16:14:25 -070052 help
53 microblaze architectures can be configured for either little or
54 big endian formats. Be sure to select the appropriate mode.
55
56config CPU_BIG_ENDIAN
57 bool "Big endian"
58
59config CPU_LITTLE_ENDIAN
60 bool "Little endian"
61
62endchoice
63
Michal Simek575ca282009-03-27 14:25:50 +010064config ARCH_HAS_ILOG2_U32
65 def_bool n
66
67config ARCH_HAS_ILOG2_U64
68 def_bool n
69
Michal Simek575ca282009-03-27 14:25:50 +010070config GENERIC_HWEIGHT
71 def_bool y
72
Michal Simek575ca282009-03-27 14:25:50 +010073config GENERIC_CALIBRATE_DELAY
74 def_bool y
75
Remis Lima Baima14f87382009-06-18 19:55:32 +020076config GENERIC_CSUM
77 def_bool y
78
Michal Simek24b45a12009-11-10 15:57:01 +010079config STACKTRACE_SUPPORT
80 def_bool y
81
Michal Simekbf2d8092009-12-10 12:07:02 +010082config LOCKDEP_SUPPORT
83 def_bool y
84
Michal Simekc24cf712014-04-07 13:05:00 +020085source "arch/microblaze/Kconfig.platform"
Michal Simek575ca282009-03-27 14:25:50 +010086
87menu "Processor type and features"
88
Michal Simek575ca282009-03-27 14:25:50 +010089source "kernel/Kconfig.hz"
90
91config MMU
Michal Simek05cdf452020-11-26 14:32:25 +010092 def_bool y
Michal Simek575ca282009-03-27 14:25:50 +010093
Michal Simek575ca282009-03-27 14:25:50 +010094comment "Boot options"
95
96config CMDLINE_BOOL
97 bool "Default bootloader kernel arguments"
98
99config CMDLINE
100 string "Default kernel command string"
101 depends on CMDLINE_BOOL
102 default "console=ttyUL0,115200"
103 help
104 On some architectures there is currently no way for the boot loader
105 to pass arguments to the kernel. For these architectures, you should
106 supply some command-line options at build time by entering them
107 here.
108
109config CMDLINE_FORCE
110 bool "Force default kernel command string"
111 depends on CMDLINE_BOOL
112 default n
113 help
114 Set this to have arguments from the default kernel command string
115 override those passed by the boot loader.
116
Michal Simek575ca282009-03-27 14:25:50 +0100117endmenu
118
Michal Simekb408e2c2014-09-01 16:23:54 +0200119menu "Kernel features"
Michal Simeka116f6d2009-05-26 16:30:31 +0200120
Michal Simek4cbbbb42014-10-27 08:28:16 +0100121config NR_CPUS
122 int
123 default "1"
124
Michal Simeka116f6d2009-05-26 16:30:31 +0200125config ADVANCED_OPTIONS
126 bool "Prompt for advanced kernel configuration options"
Michal Simeka116f6d2009-05-26 16:30:31 +0200127 help
128 This option will enable prompting for a variety of advanced kernel
129 configuration options. These options can cause the kernel to not
130 work if they are set incorrectly, but can be used to optimize certain
131 aspects of kernel memory management.
132
133 Unless you know what you are doing, say N here.
134
135comment "Default settings for advanced configuration options are used"
136 depends on !ADVANCED_OPTIONS
137
Michal Simek2f2f3712011-12-15 15:02:37 +0100138config HIGHMEM
139 bool "High memory support"
Thomas Gleixner7ac1b262020-11-03 10:27:24 +0100140 select KMAP_LOCAL
Michal Simek2f2f3712011-12-15 15:02:37 +0100141 help
142 The address space of Microblaze processors is only 4 Gigabytes large
143 and it has to accommodate user address space, kernel address
144 space as well as some memory mapped IO. That means that, if you
145 have a large amount of physical memory and/or IO, not all of the
146 memory can be "permanently mapped" by the kernel. The physical
147 memory that is not permanently mapped is called "high memory".
148
149 If unsure, say n.
Michal Simeka116f6d2009-05-26 16:30:31 +0200150
151config LOWMEM_SIZE_BOOL
152 bool "Set maximum low memory"
Michal Simek05cdf452020-11-26 14:32:25 +0100153 depends on ADVANCED_OPTIONS
Michal Simeka116f6d2009-05-26 16:30:31 +0200154 help
155 This option allows you to set the maximum amount of memory which
156 will be used as "low memory", that is, memory which the kernel can
157 access directly, without having to set up a kernel virtual mapping.
158 This can be useful in optimizing the layout of kernel virtual
159 memory.
160
161 Say N here unless you know what you are doing.
162
163config LOWMEM_SIZE
164 hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
Michal Simeka116f6d2009-05-26 16:30:31 +0200165 default "0x30000000"
166
Michal Simek0b9b0202010-11-08 12:37:40 +0100167config MANUAL_RESET_VECTOR
168 hex "Microblaze reset vector address setup"
169 default "0x0"
170 help
171 Set this option to have the kernel override the CPU Reset vector.
172 If zero, no change will be made to the MicroBlaze reset vector at
173 address 0x0.
174 If non-zero, a jump instruction to this address, will be written
175 to the reset vector at address 0x0.
176 If you are unsure, set it to default value 0x0.
177
Michal Simeka116f6d2009-05-26 16:30:31 +0200178config KERNEL_START_BOOL
179 bool "Set custom kernel base address"
180 depends on ADVANCED_OPTIONS
181 help
182 This option allows you to set the kernel virtual address at which
183 the kernel will map low memory (the kernel image will be linked at
184 this address). This can be useful in optimizing the virtual memory
185 layout of the system.
186
187 Say N here unless you know what you are doing.
188
189config KERNEL_START
190 hex "Virtual address of kernel base" if KERNEL_START_BOOL
Michal Simek05cdf452020-11-26 14:32:25 +0100191 default "0xc0000000"
Michal Simeka116f6d2009-05-26 16:30:31 +0200192
193config TASK_SIZE_BOOL
194 bool "Set custom user task size"
Michal Simek05cdf452020-11-26 14:32:25 +0100195 depends on ADVANCED_OPTIONS
Michal Simeka116f6d2009-05-26 16:30:31 +0200196 help
197 This option allows you to set the amount of virtual address space
198 allocated to user tasks. This can be useful in optimizing the
199 virtual memory layout of the system.
200
201 Say N here unless you know what you are doing.
202
203config TASK_SIZE
204 hex "Size of user task space" if TASK_SIZE_BOOL
Michal Simeka116f6d2009-05-26 16:30:31 +0200205 default "0x80000000"
206
Michal Simek575ca282009-03-27 14:25:50 +0100207endmenu
208
Michal Simeka6475c12010-01-18 15:27:10 +0100209menu "Bus Options"
210
Michal Simek733cc212010-01-18 15:27:11 +0100211config PCI_XILINX
212 bool "Xilinx PCI host bridge support"
213 depends on PCI
214
Michal Simeka6475c12010-01-18 15:27:10 +0100215endmenu