1 # SPDX-License-Identifier: GPL-2.0
6 select GENERIC_ATOMIC64
7 select GENERIC_CLOCKEVENTS
8 select GENERIC_CPU_DEVICES
9 select GENERIC_IRQ_PROBE
10 select GENERIC_IRQ_SHOW
11 select GENERIC_STRNCPY_FROM_USER
12 select GENERIC_STRNLEN_USER
13 select HAVE_ARCH_TRACEHOOK
16 select MODULES_USE_ELF_RELA
18 select OF_EARLY_FLATTREE
21 select USB_ARCH_HAS_HCD if USB_SUPPORT
22 select CPU_NO_EFFICIENT_FFS
27 config GENERIC_HWEIGHT
30 config GENERIC_CALIBRATE_DELAY
42 config RWSEM_GENERIC_SPINLOCK
45 config TRACE_IRQFLAGS_SUPPORT
48 menu "Kernel features"
50 source "kernel/Kconfig.preempt"
52 source "kernel/Kconfig.hz"
54 config FORCE_MAX_ZONEORDER
55 int "Maximum zone order"
59 The kernel memory allocator divides physically contiguous memory
60 blocks into "zones", where each zone is a power of two number of
61 pages. This option selects the largest power of two that the kernel
62 keeps in the memory allocator. If you need to allocate very large
63 blocks of physically contiguous memory, then you may need to
66 This config option is actually maximum order plus one. For example,
67 a value of 11 means that the largest free memory block is 2^10 pages.
71 source "arch/nios2/platform/Kconfig.platform"
73 menu "Processor type and features"
82 config NIOS2_ALIGNMENT_TRAP
83 bool "Catch alignment trap"
86 Nios II CPUs cannot fetch/store data which is not bus aligned,
87 i.e., a 2 or 4 byte fetch must start at an address divisible by
88 2 or 4. Any non-aligned load/store instructions will be trapped and
89 emulated in software if you say Y here, which has a performance
92 comment "Boot options"
95 bool "Default bootloader kernel arguments"
99 string "Default kernel command string"
101 depends on CMDLINE_BOOL
103 On some platforms, there is currently no way for the boot loader to
104 pass arguments to the kernel. For these platforms, you can supply
105 some command-line options at build time by entering them here. In
106 other cases you can specify kernel args so that you don't have
107 to set them up in board prom initialization routines.
110 bool "Force default kernel command string"
111 depends on CMDLINE_BOOL
113 Set this to have arguments from the default kernel command string
114 override those passed by the boot loader.
116 config NIOS2_CMDLINE_IGNORE_DTB
117 bool "Ignore kernel command string from DTB"
118 depends on CMDLINE_BOOL
119 depends on !CMDLINE_FORCE
122 Set this to ignore the bootargs property from the devicetree's
123 chosen node and fall back to CMDLINE if nothing is passed.
125 config NIOS2_PASS_CMDLINE
126 bool "Passed kernel command line from u-boot"
129 Use bootargs env variable from u-boot for kernel command line.
130 will override "Default kernel command string".
131 Say N if you are unsure.
133 config NIOS2_BOOT_LINK_OFFSET
134 hex "Link address offset for booting"
137 This option allows you to set the link address offset of the zImage.
138 This can be useful if you are on a board which has a small amount of
143 menu "Advanced setup"
145 config ADVANCED_OPTIONS
146 bool "Prompt for advanced kernel configuration options"
148 comment "Default settings for advanced configuration options are used"
149 depends on !ADVANCED_OPTIONS
151 config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
152 bool "Set custom kernel MMU region base address"
153 depends on ADVANCED_OPTIONS
155 This option allows you to set the virtual address of the kernel MMU region.
157 Say N here unless you know what you are doing.
159 config NIOS2_KERNEL_MMU_REGION_BASE
160 hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
163 This option allows you to set the virtual base address of the kernel MMU region.
165 config NIOS2_KERNEL_REGION_BASE_BOOL
166 bool "Set custom kernel region base address"
167 depends on ADVANCED_OPTIONS
169 This option allows you to set the virtual address of the kernel region.
171 Say N here unless you know what you are doing.
173 config NIOS2_KERNEL_REGION_BASE
174 hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
177 config NIOS2_IO_REGION_BASE_BOOL
178 bool "Set custom I/O region base address"
179 depends on ADVANCED_OPTIONS
181 This option allows you to set the virtual address of the I/O region.
183 Say N here unless you know what you are doing.
185 config NIOS2_IO_REGION_BASE
186 hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL
191 source "arch/nios2/Kconfig.debug"