1 # SPDX-License-Identifier: GPL-2.0
4 select ARCH_32BIT_OFF_T
5 select ARCH_HAS_SYNC_DMA_FOR_CPU
6 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
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
26 select MMU_GATHER_NO_RANGE if MMU
31 config GENERIC_HWEIGHT
34 config GENERIC_CALIBRATE_DELAY
43 config TRACE_IRQFLAGS_SUPPORT
46 menu "Kernel features"
48 source "kernel/Kconfig.hz"
50 config FORCE_MAX_ZONEORDER
51 int "Maximum zone order"
55 The kernel memory allocator divides physically contiguous memory
56 blocks into "zones", where each zone is a power of two number of
57 pages. This option selects the largest power of two that the kernel
58 keeps in the memory allocator. If you need to allocate very large
59 blocks of physically contiguous memory, then you may need to
62 This config option is actually maximum order plus one. For example,
63 a value of 11 means that the largest free memory block is 2^10 pages.
67 source "arch/nios2/platform/Kconfig.platform"
69 menu "Processor type and features"
78 config NIOS2_ALIGNMENT_TRAP
79 bool "Catch alignment trap"
82 Nios II CPUs cannot fetch/store data which is not bus aligned,
83 i.e., a 2 or 4 byte fetch must start at an address divisible by
84 2 or 4. Any non-aligned load/store instructions will be trapped and
85 emulated in software if you say Y here, which has a performance
88 comment "Boot options"
91 bool "Default bootloader kernel arguments"
95 string "Default kernel command string"
97 depends on CMDLINE_BOOL
99 On some platforms, there is currently no way for the boot loader to
100 pass arguments to the kernel. For these platforms, you can supply
101 some command-line options at build time by entering them here. In
102 other cases you can specify kernel args so that you don't have
103 to set them up in board prom initialization routines.
106 bool "Force default kernel command string"
107 depends on CMDLINE_BOOL
109 Set this to have arguments from the default kernel command string
110 override those passed by the boot loader.
112 config NIOS2_CMDLINE_IGNORE_DTB
113 bool "Ignore kernel command string from DTB"
114 depends on CMDLINE_BOOL
115 depends on !CMDLINE_FORCE
118 Set this to ignore the bootargs property from the devicetree's
119 chosen node and fall back to CMDLINE if nothing is passed.
121 config NIOS2_PASS_CMDLINE
122 bool "Passed kernel command line from u-boot"
124 Use bootargs env variable from u-boot for kernel command line.
125 will override "Default kernel command string".
126 Say N if you are unsure.
128 config NIOS2_BOOT_LINK_OFFSET
129 hex "Link address offset for booting"
132 This option allows you to set the link address offset of the zImage.
133 This can be useful if you are on a board which has a small amount of
138 menu "Advanced setup"
140 config ADVANCED_OPTIONS
141 bool "Prompt for advanced kernel configuration options"
143 comment "Default settings for advanced configuration options are used"
144 depends on !ADVANCED_OPTIONS
146 config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
147 bool "Set custom kernel MMU region base address"
148 depends on ADVANCED_OPTIONS
150 This option allows you to set the virtual address of the kernel MMU region.
152 Say N here unless you know what you are doing.
154 config NIOS2_KERNEL_MMU_REGION_BASE
155 hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
158 This option allows you to set the virtual base address of the kernel MMU region.
160 config NIOS2_KERNEL_REGION_BASE_BOOL
161 bool "Set custom kernel region base address"
162 depends on ADVANCED_OPTIONS
164 This option allows you to set the virtual address of the kernel region.
166 Say N here unless you know what you are doing.
168 config NIOS2_KERNEL_REGION_BASE
169 hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
172 config NIOS2_IO_REGION_BASE_BOOL
173 bool "Set custom I/O region base address"
174 depends on ADVANCED_OPTIONS
176 This option allows you to set the virtual address of the I/O region.
178 Say N here unless you know what you are doing.
180 config NIOS2_IO_REGION_BASE
181 hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL