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 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 menu "Kernel features"
45 source "kernel/Kconfig.hz"
47 config ARCH_FORCE_MAX_ORDER
48 int "Order of maximal physically contiguous allocations"
51 The kernel page allocator limits the size of maximal physically
52 contiguous allocations. The limit is called MAX_ORDER and it
53 defines the maximal power of two of number of pages that can be
54 allocated as a single contiguous block. This option allows
55 overriding the default setting when ability to allocate very
56 large blocks of physically contiguous memory is required.
58 Don't change if unsure.
62 source "arch/nios2/platform/Kconfig.platform"
64 menu "Processor type and features"
73 config NIOS2_ALIGNMENT_TRAP
74 bool "Catch alignment trap"
77 Nios II CPUs cannot fetch/store data which is not bus aligned,
78 i.e., a 2 or 4 byte fetch must start at an address divisible by
79 2 or 4. Any non-aligned load/store instructions will be trapped and
80 emulated in software if you say Y here, which has a performance
83 comment "Boot options"
86 bool "Default bootloader kernel arguments"
90 string "Default kernel command string"
92 depends on CMDLINE_BOOL
94 On some platforms, there is currently no way for the boot loader to
95 pass arguments to the kernel. For these platforms, you can supply
96 some command-line options at build time by entering them here. In
97 other cases you can specify kernel args so that you don't have
98 to set them up in board prom initialization routines.
101 bool "Force default kernel command string"
102 depends on CMDLINE_BOOL
104 Set this to have arguments from the default kernel command string
105 override those passed by the boot loader.
107 config NIOS2_CMDLINE_IGNORE_DTB
108 bool "Ignore kernel command string from DTB"
109 depends on CMDLINE_BOOL
110 depends on !CMDLINE_FORCE
113 Set this to ignore the bootargs property from the devicetree's
114 chosen node and fall back to CMDLINE if nothing is passed.
116 config NIOS2_PASS_CMDLINE
117 bool "Passed kernel command line from u-boot"
119 Use bootargs env variable from u-boot for kernel command line.
120 will override "Default kernel command string".
121 Say N if you are unsure.
123 config NIOS2_BOOT_LINK_OFFSET
124 hex "Link address offset for booting"
127 This option allows you to set the link address offset of the zImage.
128 This can be useful if you are on a board which has a small amount of
133 menu "Advanced setup"
135 config ADVANCED_OPTIONS
136 bool "Prompt for advanced kernel configuration options"
138 comment "Default settings for advanced configuration options are used"
139 depends on !ADVANCED_OPTIONS
141 config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
142 bool "Set custom kernel MMU region base address"
143 depends on ADVANCED_OPTIONS
145 This option allows you to set the virtual address of the kernel MMU region.
147 Say N here unless you know what you are doing.
149 config NIOS2_KERNEL_MMU_REGION_BASE
150 hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
153 This option allows you to set the virtual base address of the kernel MMU region.
155 config NIOS2_KERNEL_REGION_BASE_BOOL
156 bool "Set custom kernel region base address"
157 depends on ADVANCED_OPTIONS
159 This option allows you to set the virtual address of the kernel region.
161 Say N here unless you know what you are doing.
163 config NIOS2_KERNEL_REGION_BASE
164 hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
167 config NIOS2_IO_REGION_BASE_BOOL
168 bool "Set custom I/O region base address"
169 depends on ADVANCED_OPTIONS
171 This option allows you to set the virtual address of the I/O region.
173 Say N here unless you know what you are doing.
175 config NIOS2_IO_REGION_BASE
176 hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL