]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
f8c4a270 JB |
2 | # |
3 | # For a description of the syntax of this configuration file, | |
395cf969 | 4 | # see Documentation/kbuild/kconfig-language.txt. |
f8c4a270 JB |
5 | # |
6 | ||
7 | config OPENRISC | |
8 | def_bool y | |
9 | select OF | |
10 | select OF_EARLY_FLATTREE | |
b4c4c6ee | 11 | select IRQ_DOMAIN |
d1f6f28f | 12 | select HANDLE_DOMAIN_IRQ |
f8c4a270 | 13 | select HAVE_MEMBLOCK |
8636f344 | 14 | select GPIOLIB |
f8c4a270 | 15 | select HAVE_ARCH_TRACEHOOK |
c0fcaf55 | 16 | select SPARSE_IRQ |
f8c4a270 JB |
17 | select GENERIC_IRQ_CHIP |
18 | select GENERIC_IRQ_PROBE | |
19 | select GENERIC_IRQ_SHOW | |
20 | select GENERIC_IOMAP | |
9f13a1fd | 21 | select GENERIC_CPU_DEVICES |
04ea1e91 | 22 | select HAVE_UID16 |
0662d33a | 23 | select GENERIC_ATOMIC64 |
5bf8f6bf | 24 | select GENERIC_CLOCKEVENTS |
8e6d08e0 | 25 | select GENERIC_CLOCKEVENTS_BROADCAST |
603d6637 | 26 | select GENERIC_STRNCPY_FROM_USER |
b48b2c3e | 27 | select GENERIC_STRNLEN_USER |
8e6d08e0 | 28 | select GENERIC_SMP_IDLE_THREAD |
786d35d4 | 29 | select MODULES_USE_ELF_RELA |
d1a1dc0b | 30 | select HAVE_DEBUG_STACKOVERFLOW |
4db8e6d2 | 31 | select OR1K_PIC |
fff7fb0b | 32 | select CPU_NO_EFFICIENT_FFS if !OPENRISC_HAVE_INST_FF1 |
266c7fad | 33 | select NO_BOOTMEM |
b5f82176 SH |
34 | select ARCH_USE_QUEUED_SPINLOCKS |
35 | select ARCH_USE_QUEUED_RWLOCKS | |
9b54470a | 36 | select OMPIC if SMP |
eecac38b | 37 | select ARCH_WANT_FRAME_POINTERS |
f8c4a270 | 38 | |
4c97a0c8 BM |
39 | config CPU_BIG_ENDIAN |
40 | def_bool y | |
41 | ||
f8c4a270 JB |
42 | config MMU |
43 | def_bool y | |
44 | ||
f8c4a270 JB |
45 | config RWSEM_GENERIC_SPINLOCK |
46 | def_bool y | |
47 | ||
48 | config RWSEM_XCHGADD_ALGORITHM | |
49 | def_bool n | |
50 | ||
51 | config GENERIC_HWEIGHT | |
52 | def_bool y | |
53 | ||
ce816fa8 | 54 | config NO_IOPORT_MAP |
f8c4a270 JB |
55 | def_bool y |
56 | ||
f8c4a270 JB |
57 | config TRACE_IRQFLAGS_SUPPORT |
58 | def_bool y | |
59 | ||
60 | # For now, use generic checksum functions | |
61 | #These can be reimplemented in assembly later if so inclined | |
62 | config GENERIC_CSUM | |
63 | def_bool y | |
64 | ||
eecac38b SH |
65 | config STACKTRACE_SUPPORT |
66 | def_bool y | |
67 | ||
78cdfb5c SH |
68 | config LOCKDEP_SUPPORT |
69 | def_bool y | |
70 | ||
f8c4a270 JB |
71 | source "init/Kconfig" |
72 | ||
57a1a197 | 73 | source "kernel/Kconfig.freezer" |
f8c4a270 JB |
74 | |
75 | menu "Processor type and features" | |
76 | ||
77 | choice | |
78 | prompt "Subarchitecture" | |
79 | default OR1K_1200 | |
80 | ||
81 | config OR1K_1200 | |
82 | bool "OR1200" | |
83 | help | |
84 | Generic OpenRISC 1200 architecture | |
85 | ||
86 | endchoice | |
87 | ||
4ee93d80 JHW |
88 | config DCACHE_WRITETHROUGH |
89 | bool "Have write through data caches" | |
90 | default n | |
91 | help | |
92 | Select this if your implementation features write through data caches. | |
93 | Selecting 'N' here will allow the kernel to force flushing of data | |
94 | caches at relevant times. Most OpenRISC implementations support write- | |
95 | through data caches. | |
96 | ||
97 | If unsure say N here | |
98 | ||
f8c4a270 JB |
99 | config OPENRISC_BUILTIN_DTB |
100 | string "Builtin DTB" | |
101 | default "" | |
102 | ||
103 | menu "Class II Instructions" | |
104 | ||
105 | config OPENRISC_HAVE_INST_FF1 | |
106 | bool "Have instruction l.ff1" | |
107 | default y | |
108 | help | |
109 | Select this if your implementation has the Class II instruction l.ff1 | |
110 | ||
111 | config OPENRISC_HAVE_INST_FL1 | |
112 | bool "Have instruction l.fl1" | |
113 | default y | |
114 | help | |
115 | Select this if your implementation has the Class II instruction l.fl1 | |
116 | ||
117 | config OPENRISC_HAVE_INST_MUL | |
118 | bool "Have instruction l.mul for hardware multiply" | |
119 | default y | |
120 | help | |
121 | Select this if your implementation has a hardware multiply instruction | |
122 | ||
123 | config OPENRISC_HAVE_INST_DIV | |
124 | bool "Have instruction l.div for hardware divide" | |
125 | default y | |
126 | help | |
127 | Select this if your implementation has a hardware divide instruction | |
128 | endmenu | |
129 | ||
34bbdcdc | 130 | config NR_CPUS |
8e6d08e0 SK |
131 | int "Maximum number of CPUs (2-32)" |
132 | range 2 32 | |
133 | depends on SMP | |
134 | default "2" | |
135 | ||
136 | config SMP | |
137 | bool "Symmetric Multi-Processing support" | |
138 | help | |
139 | This enables support for systems with more than one CPU. If you have | |
140 | a system with only one CPU, say N. If you have a system with more | |
141 | than one CPU, say Y. | |
142 | ||
143 | If you don't know what to do here, say N. | |
f8c4a270 | 144 | |
f8c4a270 JB |
145 | source kernel/Kconfig.hz |
146 | source kernel/Kconfig.preempt | |
147 | source "mm/Kconfig" | |
148 | ||
149 | config OPENRISC_NO_SPR_SR_DSX | |
150 | bool "use SPR_SR_DSX software emulation" if OR1K_1200 | |
151 | default y | |
152 | help | |
153 | SPR_SR_DSX bit is status register bit indicating whether | |
154 | the last exception has happened in delay slot. | |
155 | ||
156 | OpenRISC architecture makes it optional to have it implemented | |
157 | in hardware and the OR1200 does not have it. | |
158 | ||
159 | Say N here if you know that your OpenRISC processor has | |
160 | SPR_SR_DSX bit implemented. Say Y if you are unsure. | |
161 | ||
91993c8c SK |
162 | config OPENRISC_HAVE_SHADOW_GPRS |
163 | bool "Support for shadow gpr files" if !SMP | |
164 | default y if SMP | |
165 | help | |
166 | Say Y here if your OpenRISC processor features shadowed | |
167 | register files. They will in such case be used as a | |
168 | scratch reg storage on exception entry. | |
169 | ||
170 | On SMP systems, this feature is mandatory. | |
171 | On a unicore system it's safe to say N here if you are unsure. | |
172 | ||
f8c4a270 JB |
173 | config CMDLINE |
174 | string "Default kernel command string" | |
175 | default "" | |
176 | help | |
177 | On some architectures there is currently no way for the boot loader | |
178 | to pass arguments to the kernel. For these architectures, you should | |
179 | supply some command-line options at build time by entering them | |
180 | here. | |
181 | ||
182 | menu "Debugging options" | |
183 | ||
f8c4a270 JB |
184 | config JUMP_UPON_UNHANDLED_EXCEPTION |
185 | bool "Try to die gracefully" | |
186 | default y | |
187 | help | |
188 | Now this puts kernel into infinite loop after first oops. Till | |
189 | your kernel crashes this doesn't have any influence. | |
190 | ||
191 | Say Y if you are unsure. | |
192 | ||
f8c4a270 JB |
193 | config OPENRISC_ESR_EXCEPTION_BUG_CHECK |
194 | bool "Check for possible ESR exception bug" | |
195 | default n | |
196 | help | |
197 | This option enables some checks that might expose some problems | |
198 | in kernel. | |
199 | ||
200 | Say N if you are unsure. | |
201 | ||
202 | endmenu | |
203 | ||
204 | endmenu | |
205 | ||
206 | menu "Executable file formats" | |
207 | ||
208 | source "fs/Kconfig.binfmt" | |
209 | ||
210 | endmenu | |
211 | ||
212 | source "net/Kconfig" | |
213 | ||
214 | source "drivers/Kconfig" | |
215 | ||
216 | source "fs/Kconfig" | |
217 | ||
218 | source "security/Kconfig" | |
219 | ||
220 | source "crypto/Kconfig" | |
221 | ||
222 | source "lib/Kconfig" | |
223 | ||
224 | menu "Kernel hacking" | |
225 | ||
226 | source "lib/Kconfig.debug" | |
227 | ||
228 | endmenu |