1 # SPDX-License-Identifier: GPL-2.0
4 select ARCH_32BIT_OFF_T
5 select ARCH_HAS_CPU_CACHE_ALIASING
6 select ARCH_HAS_DMA_PREP_COHERENT
7 select ARCH_HAS_SYNC_DMA_FOR_CPU
8 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
9 select ARCH_HAS_DMA_SET_UNCACHED
13 select GENERIC_ATOMIC64
14 select GENERIC_CPU_DEVICES
15 select GENERIC_IRQ_PROBE
16 select GENERIC_IRQ_SHOW
17 select HAVE_ARCH_TRACEHOOK
19 select HAVE_PAGE_SIZE_4KB
21 select LOCK_MM_AND_FIND_VMA
22 select MODULES_USE_ELF_RELA
24 select OF_EARLY_FLATTREE
27 select USB_ARCH_HAS_HCD if USB_SUPPORT
28 select CPU_NO_EFFICIENT_FFS
29 select MMU_GATHER_NO_RANGE if MMU
34 config GENERIC_HWEIGHT
37 config GENERIC_CALIBRATE_DELAY
46 menu "Kernel features"
48 source "kernel/Kconfig.hz"
50 config ARCH_FORCE_MAX_ORDER
51 int "Order of maximal physically contiguous allocations"
54 The kernel page allocator limits the size of maximal physically
55 contiguous allocations. The limit is called MAX_PAGE_ORDER and it
56 defines the maximal power of two of number of pages that can be
57 allocated as a single contiguous block. This option allows
58 overriding the default setting when ability to allocate very
59 large blocks of physically contiguous memory is required.
61 Don't change if unsure.
65 source "arch/nios2/platform/Kconfig.platform"
67 menu "Processor type and features"
76 config NIOS2_ALIGNMENT_TRAP
77 bool "Catch alignment trap"
80 Nios II CPUs cannot fetch/store data which is not bus aligned,
81 i.e., a 2 or 4 byte fetch must start at an address divisible by
82 2 or 4. Any non-aligned load/store instructions will be trapped and
83 emulated in software if you say Y here, which has a performance
86 comment "Boot options"
89 bool "Default bootloader kernel arguments"
93 string "Default kernel command string"
95 depends on CMDLINE_BOOL
97 On some platforms, there is currently no way for the boot loader to
98 pass arguments to the kernel. For these platforms, you can supply
99 some command-line options at build time by entering them here. In
100 other cases you can specify kernel args so that you don't have
101 to set them up in board prom initialization routines.
104 bool "Force default kernel command string"
105 depends on CMDLINE_BOOL
107 Set this to have arguments from the default kernel command string
108 override those passed by the boot loader.
110 config NIOS2_CMDLINE_IGNORE_DTB
111 bool "Ignore kernel command string from DTB"
112 depends on CMDLINE_BOOL
113 depends on !CMDLINE_FORCE
116 Set this to ignore the bootargs property from the devicetree's
117 chosen node and fall back to CMDLINE if nothing is passed.
119 config NIOS2_PASS_CMDLINE
120 bool "Passed kernel command line from u-boot"
122 Use bootargs env variable from u-boot for kernel command line.
123 will override "Default kernel command string".
124 Say N if you are unsure.
126 config NIOS2_BOOT_LINK_OFFSET
127 hex "Link address offset for booting"
130 This option allows you to set the link address offset of the zImage.
131 This can be useful if you are on a board which has a small amount of
136 menu "Advanced setup"
138 config ADVANCED_OPTIONS
139 bool "Prompt for advanced kernel configuration options"
141 comment "Default settings for advanced configuration options are used"
142 depends on !ADVANCED_OPTIONS
144 config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
145 bool "Set custom kernel MMU region base address"
146 depends on ADVANCED_OPTIONS
148 This option allows you to set the virtual address of the kernel MMU region.
150 Say N here unless you know what you are doing.
152 config NIOS2_KERNEL_MMU_REGION_BASE
153 hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
156 This option allows you to set the virtual base address of the kernel MMU region.
158 config NIOS2_KERNEL_REGION_BASE_BOOL
159 bool "Set custom kernel region base address"
160 depends on ADVANCED_OPTIONS
162 This option allows you to set the virtual address of the kernel region.
164 Say N here unless you know what you are doing.
166 config NIOS2_KERNEL_REGION_BASE
167 hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
170 config NIOS2_IO_REGION_BASE_BOOL
171 bool "Set custom I/O region base address"
172 depends on ADVANCED_OPTIONS
174 This option allows you to set the virtual address of the I/O region.
176 Say N here unless you know what you are doing.
178 config NIOS2_IO_REGION_BASE
179 hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL