1 # SPDX-License-Identifier: GPL-2.0
4 select ARCH_HAS_SYNC_DMA_FOR_CPU
5 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
7 select DMA_NONCOHERENT_OPS
9 select GENERIC_ATOMIC64
10 select GENERIC_CLOCKEVENTS
11 select GENERIC_CPU_DEVICES
12 select GENERIC_IRQ_PROBE
13 select GENERIC_IRQ_SHOW
14 select GENERIC_STRNCPY_FROM_USER
15 select GENERIC_STRNLEN_USER
16 select HAVE_ARCH_TRACEHOOK
19 select MODULES_USE_ELF_RELA
21 select OF_EARLY_FLATTREE
24 select USB_ARCH_HAS_HCD if USB_SUPPORT
25 select CPU_NO_EFFICIENT_FFS
30 config GENERIC_HWEIGHT
33 config GENERIC_CALIBRATE_DELAY
45 config RWSEM_GENERIC_SPINLOCK
48 config TRACE_IRQFLAGS_SUPPORT
51 menu "Kernel features"
53 source "kernel/Kconfig.hz"
55 config FORCE_MAX_ZONEORDER
56 int "Maximum zone order"
60 The kernel memory allocator divides physically contiguous memory
61 blocks into "zones", where each zone is a power of two number of
62 pages. This option selects the largest power of two that the kernel
63 keeps in the memory allocator. If you need to allocate very large
64 blocks of physically contiguous memory, then you may need to
67 This config option is actually maximum order plus one. For example,
68 a value of 11 means that the largest free memory block is 2^10 pages.
72 source "arch/nios2/platform/Kconfig.platform"
74 menu "Processor type and features"
83 config NIOS2_ALIGNMENT_TRAP
84 bool "Catch alignment trap"
87 Nios II CPUs cannot fetch/store data which is not bus aligned,
88 i.e., a 2 or 4 byte fetch must start at an address divisible by
89 2 or 4. Any non-aligned load/store instructions will be trapped and
90 emulated in software if you say Y here, which has a performance
93 comment "Boot options"
96 bool "Default bootloader kernel arguments"
100 string "Default kernel command string"
102 depends on CMDLINE_BOOL
104 On some platforms, there is currently no way for the boot loader to
105 pass arguments to the kernel. For these platforms, you can supply
106 some command-line options at build time by entering them here. In
107 other cases you can specify kernel args so that you don't have
108 to set them up in board prom initialization routines.
111 bool "Force default kernel command string"
112 depends on CMDLINE_BOOL
114 Set this to have arguments from the default kernel command string
115 override those passed by the boot loader.
117 config NIOS2_CMDLINE_IGNORE_DTB
118 bool "Ignore kernel command string from DTB"
119 depends on CMDLINE_BOOL
120 depends on !CMDLINE_FORCE
123 Set this to ignore the bootargs property from the devicetree's
124 chosen node and fall back to CMDLINE if nothing is passed.
126 config NIOS2_PASS_CMDLINE
127 bool "Passed kernel command line from u-boot"
130 Use bootargs env variable from u-boot for kernel command line.
131 will override "Default kernel command string".
132 Say N if you are unsure.
134 config NIOS2_BOOT_LINK_OFFSET
135 hex "Link address offset for booting"
138 This option allows you to set the link address offset of the zImage.
139 This can be useful if you are on a board which has a small amount of
144 menu "Advanced setup"
146 config ADVANCED_OPTIONS
147 bool "Prompt for advanced kernel configuration options"
149 comment "Default settings for advanced configuration options are used"
150 depends on !ADVANCED_OPTIONS
152 config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
153 bool "Set custom kernel MMU region base address"
154 depends on ADVANCED_OPTIONS
156 This option allows you to set the virtual address of the kernel MMU region.
158 Say N here unless you know what you are doing.
160 config NIOS2_KERNEL_MMU_REGION_BASE
161 hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
164 This option allows you to set the virtual base address of the kernel MMU region.
166 config NIOS2_KERNEL_REGION_BASE_BOOL
167 bool "Set custom kernel region base address"
168 depends on ADVANCED_OPTIONS
170 This option allows you to set the virtual address of the kernel region.
172 Say N here unless you know what you are doing.
174 config NIOS2_KERNEL_REGION_BASE
175 hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
178 config NIOS2_IO_REGION_BASE_BOOL
179 bool "Set custom I/O region base address"
180 depends on ADVANCED_OPTIONS
182 This option allows you to set the virtual address of the I/O region.
184 Say N here unless you know what you are doing.
186 config NIOS2_IO_REGION_BASE
187 hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL