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