Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
2fc8483f LFT |
2 | config NIOS2 |
3 | def_bool y | |
25622e04 CH |
4 | select ARCH_HAS_SYNC_DMA_FOR_CPU |
5 | select ARCH_HAS_SYNC_DMA_FOR_DEVICE | |
17c46a6a | 6 | select ARCH_NO_SWAP |
bb0eb050 | 7 | select TIMER_OF |
2fc8483f LFT |
8 | select GENERIC_ATOMIC64 |
9 | select GENERIC_CLOCKEVENTS | |
10 | select GENERIC_CPU_DEVICES | |
11 | select GENERIC_IRQ_PROBE | |
12 | select GENERIC_IRQ_SHOW | |
7f1e6141 LFT |
13 | select GENERIC_STRNCPY_FROM_USER |
14 | select GENERIC_STRNLEN_USER | |
2fc8483f | 15 | select HAVE_ARCH_TRACEHOOK |
d16d2be1 | 16 | select HAVE_ARCH_KGDB |
2fc8483f LFT |
17 | select IRQ_DOMAIN |
18 | select MODULES_USE_ELF_RELA | |
19 | select OF | |
20 | select OF_EARLY_FLATTREE | |
21 | select SOC_BUS | |
22 | select SPARSE_IRQ | |
23 | select USB_ARCH_HAS_HCD if USB_SUPPORT | |
fff7fb0b | 24 | select CPU_NO_EFFICIENT_FFS |
00423792 | 25 | select ARCH_DISCARD_MEMBLOCK |
2fc8483f LFT |
26 | |
27 | config GENERIC_CSUM | |
28 | def_bool y | |
29 | ||
30 | config GENERIC_HWEIGHT | |
31 | def_bool y | |
32 | ||
33 | config GENERIC_CALIBRATE_DELAY | |
34 | def_bool y | |
35 | ||
36 | config NO_IOPORT_MAP | |
37 | def_bool y | |
38 | ||
2fc8483f LFT |
39 | config FPU |
40 | def_bool n | |
41 | ||
2fc8483f LFT |
42 | config RWSEM_GENERIC_SPINLOCK |
43 | def_bool y | |
44 | ||
45 | config TRACE_IRQFLAGS_SUPPORT | |
46 | def_bool n | |
47 | ||
2fc8483f LFT |
48 | menu "Kernel features" |
49 | ||
2fc8483f LFT |
50 | source "kernel/Kconfig.hz" |
51 | ||
2fc8483f LFT |
52 | config FORCE_MAX_ZONEORDER |
53 | int "Maximum zone order" | |
54 | range 9 20 | |
55 | default "11" | |
56 | help | |
57 | The kernel memory allocator divides physically contiguous memory | |
58 | blocks into "zones", where each zone is a power of two number of | |
59 | pages. This option selects the largest power of two that the kernel | |
60 | keeps in the memory allocator. If you need to allocate very large | |
61 | blocks of physically contiguous memory, then you may need to | |
62 | increase this value. | |
63 | ||
64 | This config option is actually maximum order plus one. For example, | |
65 | a value of 11 means that the largest free memory block is 2^10 pages. | |
66 | ||
67 | endmenu | |
68 | ||
69 | source "arch/nios2/platform/Kconfig.platform" | |
70 | ||
71 | menu "Processor type and features" | |
72 | ||
73 | config MMU | |
74 | def_bool y | |
75 | ||
6e5c8f5f TK |
76 | config NR_CPUS |
77 | int | |
78 | default "1" | |
79 | ||
2fc8483f LFT |
80 | config NIOS2_ALIGNMENT_TRAP |
81 | bool "Catch alignment trap" | |
82 | default y | |
83 | help | |
84 | Nios II CPUs cannot fetch/store data which is not bus aligned, | |
85 | i.e., a 2 or 4 byte fetch must start at an address divisible by | |
86 | 2 or 4. Any non-aligned load/store instructions will be trapped and | |
87 | emulated in software if you say Y here, which has a performance | |
88 | impact. | |
89 | ||
90 | comment "Boot options" | |
91 | ||
92 | config CMDLINE_BOOL | |
93 | bool "Default bootloader kernel arguments" | |
94 | default y | |
95 | ||
96 | config CMDLINE | |
97 | string "Default kernel command string" | |
98 | default "" | |
99 | depends on CMDLINE_BOOL | |
100 | help | |
101 | On some platforms, there is currently no way for the boot loader to | |
102 | pass arguments to the kernel. For these platforms, you can supply | |
103 | some command-line options at build time by entering them here. In | |
104 | other cases you can specify kernel args so that you don't have | |
105 | to set them up in board prom initialization routines. | |
106 | ||
107 | config CMDLINE_FORCE | |
108 | bool "Force default kernel command string" | |
109 | depends on CMDLINE_BOOL | |
110 | help | |
111 | Set this to have arguments from the default kernel command string | |
112 | override those passed by the boot loader. | |
113 | ||
114 | config NIOS2_CMDLINE_IGNORE_DTB | |
115 | bool "Ignore kernel command string from DTB" | |
2b2b4074 | 116 | depends on CMDLINE_BOOL |
2fc8483f LFT |
117 | depends on !CMDLINE_FORCE |
118 | default y | |
119 | help | |
120 | Set this to ignore the bootargs property from the devicetree's | |
121 | chosen node and fall back to CMDLINE if nothing is passed. | |
122 | ||
123 | config NIOS2_PASS_CMDLINE | |
124 | bool "Passed kernel command line from u-boot" | |
125 | default n | |
126 | help | |
127 | Use bootargs env variable from u-boot for kernel command line. | |
128 | will override "Default kernel command string". | |
129 | Say N if you are unsure. | |
130 | ||
01623627 LFT |
131 | config NIOS2_BOOT_LINK_OFFSET |
132 | hex "Link address offset for booting" | |
133 | default "0x00500000" | |
134 | help | |
135 | This option allows you to set the link address offset of the zImage. | |
136 | This can be useful if you are on a board which has a small amount of | |
137 | memory. | |
138 | ||
2fc8483f LFT |
139 | endmenu |
140 | ||
141 | menu "Advanced setup" | |
142 | ||
143 | config ADVANCED_OPTIONS | |
144 | bool "Prompt for advanced kernel configuration options" | |
2fc8483f LFT |
145 | |
146 | comment "Default settings for advanced configuration options are used" | |
147 | depends on !ADVANCED_OPTIONS | |
148 | ||
149 | config NIOS2_KERNEL_MMU_REGION_BASE_BOOL | |
150 | bool "Set custom kernel MMU region base address" | |
151 | depends on ADVANCED_OPTIONS | |
152 | help | |
153 | This option allows you to set the virtual address of the kernel MMU region. | |
154 | ||
155 | Say N here unless you know what you are doing. | |
156 | ||
157 | config NIOS2_KERNEL_MMU_REGION_BASE | |
158 | hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL | |
159 | default "0x80000000" | |
160 | help | |
161 | This option allows you to set the virtual base address of the kernel MMU region. | |
162 | ||
163 | config NIOS2_KERNEL_REGION_BASE_BOOL | |
164 | bool "Set custom kernel region base address" | |
165 | depends on ADVANCED_OPTIONS | |
166 | help | |
167 | This option allows you to set the virtual address of the kernel region. | |
168 | ||
169 | Say N here unless you know what you are doing. | |
170 | ||
171 | config NIOS2_KERNEL_REGION_BASE | |
172 | hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL | |
173 | default "0xc0000000" | |
174 | ||
175 | config NIOS2_IO_REGION_BASE_BOOL | |
176 | bool "Set custom I/O region base address" | |
177 | depends on ADVANCED_OPTIONS | |
178 | help | |
179 | This option allows you to set the virtual address of the I/O region. | |
180 | ||
181 | Say N here unless you know what you are doing. | |
182 | ||
183 | config NIOS2_IO_REGION_BASE | |
184 | hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL | |
185 | default "0xe0000000" | |
186 | ||
187 | endmenu |