Kconfig 7.7 KB
Newer Older
M
Michal Simek 已提交
1 2
config MICROBLAZE
	def_bool y
3
	select ARCH_HAS_GCOV_PROFILE_ALL
4
	select ARCH_MIGHT_HAVE_PC_PARPORT
5
	select ARCH_NO_COHERENT_DMA_MMAP if !MMU
6
	select ARCH_WANT_IPC_PARSE_VERSION
M
Michal Simek 已提交
7
	select BUILDTIME_EXTABLE_SORT
8
	select TIMER_OF
M
Michal Simek 已提交
9 10 11 12 13 14
	select CLONE_BACKWARDS3
	select COMMON_CLK
	select GENERIC_ATOMIC64
	select GENERIC_CLOCKEVENTS
	select GENERIC_CPU_DEVICES
	select GENERIC_IDLE_POLL_SETUP
15
	select GENERIC_IRQ_PROBE
16
	select GENERIC_IRQ_SHOW
17
	select GENERIC_PCI_IOMAP
18
	select GENERIC_SCHED_CLOCK
G
George Spelvin 已提交
19
	select HAVE_ARCH_HASH
M
Michal Simek 已提交
20 21 22 23 24 25
	select HAVE_ARCH_KGDB
	select HAVE_DEBUG_KMEMLEAK
	select HAVE_DYNAMIC_FTRACE
	select HAVE_FTRACE_MCOUNT_RECORD
	select HAVE_FUNCTION_GRAPH_TRACER
	select HAVE_FUNCTION_TRACER
R
Rob Herring 已提交
26
	select NO_BOOTMEM
M
Michal Simek 已提交
27 28 29 30
	select HAVE_MEMBLOCK
	select HAVE_MEMBLOCK_NODE_MAP
	select HAVE_OPROFILE
	select IRQ_DOMAIN
31
	select XILINX_INTC
32
	select MODULES_USE_ELF_RELA
M
Michal Simek 已提交
33 34 35 36
	select OF
	select OF_EARLY_FLATTREE
	select TRACING_SUPPORT
	select VIRT_TO_BUS
37
	select CPU_NO_EFFICIENT_FFS
M
Michal Simek 已提交
38

39 40 41
# Endianness selection
choice
	prompt "Endianness selection"
42
	default CPU_LITTLE_ENDIAN
43 44 45 46 47 48 49 50 51 52 53 54
	help
	  microblaze architectures can be configured for either little or
	  big endian formats. Be sure to select the appropriate mode.

config CPU_BIG_ENDIAN
	bool "Big endian"

config CPU_LITTLE_ENDIAN
	bool "Little endian"

endchoice

M
Michal Simek 已提交
55 56 57 58 59 60
config SWAP
	def_bool n

config RWSEM_GENERIC_SPINLOCK
	def_bool y

61 62 63
config ZONE_DMA
	def_bool y

M
Michal Simek 已提交
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
config RWSEM_XCHGADD_ALGORITHM
	bool

config ARCH_HAS_ILOG2_U32
	def_bool n

config ARCH_HAS_ILOG2_U64
	def_bool n

config GENERIC_HWEIGHT
	def_bool y

config GENERIC_CALIBRATE_DELAY
	def_bool y

79 80 81
config GENERIC_CSUM
	def_bool y

M
Michal Simek 已提交
82 83 84
config STACKTRACE_SUPPORT
	def_bool y

M
Michal Simek 已提交
85 86 87
config LOCKDEP_SUPPORT
	def_bool y

M
Michal Simek 已提交
88 89 90 91
source "init/Kconfig"

source "kernel/Kconfig.freezer"

92
source "arch/microblaze/Kconfig.platform"
M
Michal Simek 已提交
93 94 95 96 97 98 99 100

menu "Processor type and features"

source "kernel/Kconfig.preempt"

source "kernel/Kconfig.hz"

config MMU
M
Michal Simek 已提交
101 102
	bool "MMU support"
	default n
M
Michal Simek 已提交
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126

comment "Boot options"

config CMDLINE_BOOL
	bool "Default bootloader kernel arguments"

config CMDLINE
	string "Default kernel command string"
	depends on CMDLINE_BOOL
	default "console=ttyUL0,115200"
	help
	  On some architectures there is currently no way for the boot loader
	  to pass arguments to the kernel. For these architectures, you should
	  supply some command-line options at build time by entering them
	  here.

config CMDLINE_FORCE
	bool "Force default kernel command string"
	depends on CMDLINE_BOOL
	default n
	help
	  Set this to have arguments from the default kernel command string
	  override those passed by the boot loader.

M
Michal Simek 已提交
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
config SECCOMP
	bool "Enable seccomp to safely compute untrusted bytecode"
	depends on PROC_FS
	default y
	help
	  This kernel feature is useful for number crunching applications
	  that may need to compute untrusted bytecode during their
	  execution. By using pipes or other transports made available to
	  the process as file descriptors supporting the read/write
	  syscalls, it's possible to isolate those applications in
	  their own address space using seccomp. Once seccomp is
	  enabled via /proc/<pid>/seccomp, it cannot be disabled
	  and the task is only allowed to execute a few safe syscalls
	  defined by each seccomp mode.

	  If unsure, say Y. Only embedded should say N here.

M
Michal Simek 已提交
144 145
endmenu

146
menu "Kernel features"
M
Michal Simek 已提交
147

148 149 150 151
config NR_CPUS
	int
	default "1"

M
Michal Simek 已提交
152 153 154 155 156 157 158 159 160 161 162 163 164
config ADVANCED_OPTIONS
	bool "Prompt for advanced kernel configuration options"
	help
	  This option will enable prompting for a variety of advanced kernel
	  configuration options.  These options can cause the kernel to not
	  work if they are set incorrectly, but can be used to optimize certain
	  aspects of kernel memory management.

	  Unless you know what you are doing, say N here.

comment "Default settings for advanced configuration options are used"
	depends on !ADVANCED_OPTIONS

M
Michal Simek 已提交
165 166 167 168 169 170 171 172 173
config XILINX_UNCACHED_SHADOW
	bool "Are you using uncached shadow for RAM ?"
	depends on ADVANCED_OPTIONS && !MMU
	default n
	help
	  This is needed to be able to allocate uncachable memory regions.
	  The feature requires the design to define the RAM memory controller
	  window to be twice as large as the actual physical memory.

M
Michal Simek 已提交
174 175
config HIGHMEM
	bool "High memory support"
M
Michal Simek 已提交
176 177
	depends on MMU
	help
M
Michal Simek 已提交
178 179 180 181 182 183
	  The address space of Microblaze processors is only 4 Gigabytes large
	  and it has to accommodate user address space, kernel address
	  space as well as some memory mapped IO. That means that, if you
	  have a large amount of physical memory and/or IO, not all of the
	  memory can be "permanently mapped" by the kernel. The physical
	  memory that is not permanently mapped is called "high memory".
M
Michal Simek 已提交
184

M
Michal Simek 已提交
185
	  If unsure, say n.
M
Michal Simek 已提交
186 187 188

config LOWMEM_SIZE_BOOL
	bool "Set maximum low memory"
189
	depends on ADVANCED_OPTIONS && MMU
M
Michal Simek 已提交
190 191 192 193 194 195 196 197 198 199 200 201 202
	help
	  This option allows you to set the maximum amount of memory which
	  will be used as "low memory", that is, memory which the kernel can
	  access directly, without having to set up a kernel virtual mapping.
	  This can be useful in optimizing the layout of kernel virtual
	  memory.

	  Say N here unless you know what you are doing.

config LOWMEM_SIZE
	hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
	default "0x30000000"

203 204 205 206 207 208 209 210 211 212 213
config MANUAL_RESET_VECTOR
	hex "Microblaze reset vector address setup"
	default "0x0"
	help
	  Set this option to have the kernel override the CPU Reset vector.
	  If zero, no change will be made to the MicroBlaze reset vector at
	  address 0x0.
	  If non-zero, a jump instruction to this address, will be written
	  to the reset vector at address 0x0.
	  If you are unsure, set it to default value 0x0.

M
Michal Simek 已提交
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
config KERNEL_START_BOOL
	bool "Set custom kernel base address"
	depends on ADVANCED_OPTIONS
	help
	  This option allows you to set the kernel virtual address at which
	  the kernel will map low memory (the kernel image will be linked at
	  this address).  This can be useful in optimizing the virtual memory
	  layout of the system.

	  Say N here unless you know what you are doing.

config KERNEL_START
	hex "Virtual address of kernel base" if KERNEL_START_BOOL
	default "0xc0000000" if MMU
	default KERNEL_BASE_ADDR if !MMU

config TASK_SIZE_BOOL
	bool "Set custom user task size"
232
	depends on ADVANCED_OPTIONS && MMU
M
Michal Simek 已提交
233 234 235 236 237 238 239 240 241 242 243
	help
	  This option allows you to set the amount of virtual address space
	  allocated to user tasks.  This can be useful in optimizing the
	  virtual memory layout of the system.

	  Say N here unless you know what you are doing.

config TASK_SIZE
	hex "Size of user task space" if TASK_SIZE_BOOL
	default "0x80000000"

244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
choice
	prompt "Page size"
	default MICROBLAZE_4K_PAGES
	depends on ADVANCED_OPTIONS && !MMU
	help
	  Select the kernel logical page size. Increasing the page size
	  will reduce software overhead at each page boundary, allow
	  hardware prefetch mechanisms to be more effective, and allow
	  larger dma transfers increasing IO efficiency and reducing
	  overhead. However the utilization of memory will increase.
	  For example, each cached file will using a multiple of the
	  page size to hold its contents and the difference between the
	  end of file and the end of page is wasted.

	  If unsure, choose 4K_PAGES.

config MICROBLAZE_4K_PAGES
	bool "4k page size"

config MICROBLAZE_16K_PAGES
	bool "16k page size"

266 267
config MICROBLAZE_64K_PAGES
	bool "64k page size"
268 269 270

endchoice

M
Michal Simek 已提交
271 272
source "mm/Kconfig"

273 274
endmenu

T
Tobias Klauser 已提交
275
menu "Executable file formats"
M
Michal Simek 已提交
276 277 278 279 280

source "fs/Kconfig.binfmt"

endmenu

281 282 283 284 285 286 287 288
menu "Bus Options"

config PCI
	bool "PCI support"

config PCI_DOMAINS
	def_bool PCI

289 290 291
config PCI_DOMAINS_GENERIC
	def_bool PCI_DOMAINS

292 293 294
config PCI_SYSCALL
	def_bool PCI

295 296 297 298
config PCI_XILINX
	bool "Xilinx PCI host bridge support"
	depends on PCI

299 300 301 302
source "drivers/pci/Kconfig"

endmenu

M
Michal Simek 已提交
303 304 305 306 307 308 309 310 311 312 313 314 315
source "net/Kconfig"

source "drivers/Kconfig"

source "fs/Kconfig"

source "arch/microblaze/Kconfig.debug"

source "security/Kconfig"

source "crypto/Kconfig"

source "lib/Kconfig"