1 # SPDX-License-Identifier: GPL-2.0
5 select GENERIC_ATOMIC64
6 select GENERIC_CLOCKEVENTS
7 select GENERIC_CPU_DEVICES
8 select GENERIC_IRQ_PROBE
9 select GENERIC_IRQ_SHOW
10 select GENERIC_STRNCPY_FROM_USER
11 select GENERIC_STRNLEN_USER
12 select HAVE_ARCH_TRACEHOOK
15 select MODULES_USE_ELF_RELA
17 select OF_EARLY_FLATTREE
20 select USB_ARCH_HAS_HCD if USB_SUPPORT
21 select CPU_NO_EFFICIENT_FFS
26 config GENERIC_HWEIGHT
29 config GENERIC_CALIBRATE_DELAY
44 config RWSEM_GENERIC_SPINLOCK
47 config TRACE_IRQFLAGS_SUPPORT
52 menu "Kernel features"
54 source "kernel/Kconfig.preempt"
56 source "kernel/Kconfig.freezer"
58 source "kernel/Kconfig.hz"
62 config FORCE_MAX_ZONEORDER
63 int "Maximum zone order"
67 The kernel memory allocator divides physically contiguous memory
68 blocks into "zones", where each zone is a power of two number of
69 pages. This option selects the largest power of two that the kernel
70 keeps in the memory allocator. If you need to allocate very large
71 blocks of physically contiguous memory, then you may need to
74 This config option is actually maximum order plus one. For example,
75 a value of 11 means that the largest free memory block is 2^10 pages.
79 source "arch/nios2/platform/Kconfig.platform"
81 menu "Processor type and features"
90 config NIOS2_ALIGNMENT_TRAP
91 bool "Catch alignment trap"
94 Nios II CPUs cannot fetch/store data which is not bus aligned,
95 i.e., a 2 or 4 byte fetch must start at an address divisible by
96 2 or 4. Any non-aligned load/store instructions will be trapped and
97 emulated in software if you say Y here, which has a performance
100 comment "Boot options"
103 bool "Default bootloader kernel arguments"
107 string "Default kernel command string"
109 depends on CMDLINE_BOOL
111 On some platforms, there is currently no way for the boot loader to
112 pass arguments to the kernel. For these platforms, you can supply
113 some command-line options at build time by entering them here. In
114 other cases you can specify kernel args so that you don't have
115 to set them up in board prom initialization routines.
118 bool "Force default kernel command string"
119 depends on CMDLINE_BOOL
121 Set this to have arguments from the default kernel command string
122 override those passed by the boot loader.
124 config NIOS2_CMDLINE_IGNORE_DTB
125 bool "Ignore kernel command string from DTB"
126 depends on CMDLINE_BOOL
127 depends on !CMDLINE_FORCE
130 Set this to ignore the bootargs property from the devicetree's
131 chosen node and fall back to CMDLINE if nothing is passed.
133 config NIOS2_PASS_CMDLINE
134 bool "Passed kernel command line from u-boot"
137 Use bootargs env variable from u-boot for kernel command line.
138 will override "Default kernel command string".
139 Say N if you are unsure.
141 config NIOS2_BOOT_LINK_OFFSET
142 hex "Link address offset for booting"
145 This option allows you to set the link address offset of the zImage.
146 This can be useful if you are on a board which has a small amount of
151 menu "Advanced setup"
153 config ADVANCED_OPTIONS
154 bool "Prompt for advanced kernel configuration options"
156 comment "Default settings for advanced configuration options are used"
157 depends on !ADVANCED_OPTIONS
159 config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
160 bool "Set custom kernel MMU region base address"
161 depends on ADVANCED_OPTIONS
163 This option allows you to set the virtual address of the kernel MMU region.
165 Say N here unless you know what you are doing.
167 config NIOS2_KERNEL_MMU_REGION_BASE
168 hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
171 This option allows you to set the virtual base address of the kernel MMU region.
173 config NIOS2_KERNEL_REGION_BASE_BOOL
174 bool "Set custom kernel region base address"
175 depends on ADVANCED_OPTIONS
177 This option allows you to set the virtual address of the kernel region.
179 Say N here unless you know what you are doing.
181 config NIOS2_KERNEL_REGION_BASE
182 hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
185 config NIOS2_IO_REGION_BASE_BOOL
186 bool "Set custom I/O region base address"
187 depends on ADVANCED_OPTIONS
189 This option allows you to set the virtual address of the I/O region.
191 Say N here unless you know what you are doing.
193 config NIOS2_IO_REGION_BASE
194 hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL
199 menu "Executable file formats"
201 source "fs/Kconfig.binfmt"
207 source "drivers/Kconfig"
211 source "arch/nios2/Kconfig.debug"
213 source "security/Kconfig"
215 source "crypto/Kconfig"