1 # SPDX-License-Identifier: GPL-2.0
4 select ARCH_32BIT_OFF_T
5 select ARCH_HAS_DMA_PREP_COHERENT
6 select ARCH_HAS_SYNC_DMA_FOR_CPU
7 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
8 select ARCH_HAS_DMA_SET_UNCACHED
12 select GENERIC_ATOMIC64
13 select GENERIC_CPU_DEVICES
14 select GENERIC_IRQ_PROBE
15 select GENERIC_IRQ_SHOW
16 select HAVE_ARCH_TRACEHOOK
19 select LOCK_MM_AND_FIND_VMA
20 select MODULES_USE_ELF_RELA
22 select OF_EARLY_FLATTREE
25 select USB_ARCH_HAS_HCD if USB_SUPPORT
26 select CPU_NO_EFFICIENT_FFS
27 select MMU_GATHER_NO_RANGE if MMU
32 config GENERIC_HWEIGHT
35 config GENERIC_CALIBRATE_DELAY
44 menu "Kernel features"
46 source "kernel/Kconfig.hz"
48 config ARCH_FORCE_MAX_ORDER
49 int "Order of maximal physically contiguous allocations"
52 The kernel page allocator limits the size of maximal physically
53 contiguous allocations. The limit is called MAX_ORDER and it
54 defines the maximal power of two of number of pages that can be
55 allocated as a single contiguous block. This option allows
56 overriding the default setting when ability to allocate very
57 large blocks of physically contiguous memory is required.
59 Don't change if unsure.
63 source "arch/nios2/platform/Kconfig.platform"
65 menu "Processor type and features"
74 config NIOS2_ALIGNMENT_TRAP
75 bool "Catch alignment trap"
78 Nios II CPUs cannot fetch/store data which is not bus aligned,
79 i.e., a 2 or 4 byte fetch must start at an address divisible by
80 2 or 4. Any non-aligned load/store instructions will be trapped and
81 emulated in software if you say Y here, which has a performance
84 comment "Boot options"
87 bool "Default bootloader kernel arguments"
91 string "Default kernel command string"
93 depends on CMDLINE_BOOL
95 On some platforms, there is currently no way for the boot loader to
96 pass arguments to the kernel. For these platforms, you can supply
97 some command-line options at build time by entering them here. In
98 other cases you can specify kernel args so that you don't have
99 to set them up in board prom initialization routines.
102 bool "Force default kernel command string"
103 depends on CMDLINE_BOOL
105 Set this to have arguments from the default kernel command string
106 override those passed by the boot loader.
108 config NIOS2_CMDLINE_IGNORE_DTB
109 bool "Ignore kernel command string from DTB"
110 depends on CMDLINE_BOOL
111 depends on !CMDLINE_FORCE
114 Set this to ignore the bootargs property from the devicetree's
115 chosen node and fall back to CMDLINE if nothing is passed.
117 config NIOS2_PASS_CMDLINE
118 bool "Passed kernel command line from u-boot"
120 Use bootargs env variable from u-boot for kernel command line.
121 will override "Default kernel command string".
122 Say N if you are unsure.
124 config NIOS2_BOOT_LINK_OFFSET
125 hex "Link address offset for booting"
128 This option allows you to set the link address offset of the zImage.
129 This can be useful if you are on a board which has a small amount of
134 menu "Advanced setup"
136 config ADVANCED_OPTIONS
137 bool "Prompt for advanced kernel configuration options"
139 comment "Default settings for advanced configuration options are used"
140 depends on !ADVANCED_OPTIONS
142 config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
143 bool "Set custom kernel MMU region base address"
144 depends on ADVANCED_OPTIONS
146 This option allows you to set the virtual address of the kernel MMU region.
148 Say N here unless you know what you are doing.
150 config NIOS2_KERNEL_MMU_REGION_BASE
151 hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
154 This option allows you to set the virtual base address of the kernel MMU region.
156 config NIOS2_KERNEL_REGION_BASE_BOOL
157 bool "Set custom kernel region base address"
158 depends on ADVANCED_OPTIONS
160 This option allows you to set the virtual address of the kernel region.
162 Say N here unless you know what you are doing.
164 config NIOS2_KERNEL_REGION_BASE
165 hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
168 config NIOS2_IO_REGION_BASE_BOOL
169 bool "Set custom I/O region base address"
170 depends on ADVANCED_OPTIONS
172 This option allows you to set the virtual address of the I/O region.
174 Say N here unless you know what you are doing.
176 config NIOS2_IO_REGION_BASE
177 hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL