blob: 399f55e82dcb8eeb1b3bb07aede77fd5da007111 [file] [log] [blame]
Jonas Bonnf8c4a272011-06-04 21:52:05 +03001#
2# For a description of the syntax of this configuration file,
Paul Bolle395cf962011-08-15 02:02:26 +02003# see Documentation/kbuild/kconfig-language.txt.
Jonas Bonnf8c4a272011-06-04 21:52:05 +03004#
5
6config OPENRISC
7 def_bool y
8 select OF
9 select OF_EARLY_FLATTREE
Jonas Bonnb4c4c6e2012-04-06 12:52:54 +020010 select IRQ_DOMAIN
Marc Zyngierd1f6f282014-08-26 11:03:19 +010011 select HANDLE_DOMAIN_IRQ
Jonas Bonnf8c4a272011-06-04 21:52:05 +030012 select HAVE_MEMBLOCK
Linus Walleij8636f342016-04-19 13:15:43 +020013 select GPIOLIB
Jonas Bonnf8c4a272011-06-04 21:52:05 +030014 select HAVE_ARCH_TRACEHOOK
Jonas Bonnc0fcaf52012-05-09 23:19:44 +020015 select SPARSE_IRQ
Jonas Bonnf8c4a272011-06-04 21:52:05 +030016 select GENERIC_IRQ_CHIP
17 select GENERIC_IRQ_PROBE
18 select GENERIC_IRQ_SHOW
19 select GENERIC_IOMAP
Ben Hutchings9f13a1f2012-01-10 03:04:32 +000020 select GENERIC_CPU_DEVICES
Andrew Morton04ea1e92015-07-17 16:23:28 -070021 select HAVE_UID16
Richard Weinberger0662d332012-03-02 01:55:11 +010022 select GENERIC_ATOMIC64
Anna-Maria Gleixner5bf8f6b2012-05-18 16:45:51 +000023 select GENERIC_CLOCKEVENTS
Stefan Kristiansson8e6d08e2014-05-11 21:49:34 +030024 select GENERIC_CLOCKEVENTS_BROADCAST
Jonas Bonn603d6632012-05-25 08:24:49 +020025 select GENERIC_STRNCPY_FROM_USER
Jonas Bonnb48b2c32012-05-27 10:25:47 +020026 select GENERIC_STRNLEN_USER
Stefan Kristiansson8e6d08e2014-05-11 21:49:34 +030027 select GENERIC_SMP_IDLE_THREAD
David Howells786d35d2012-09-28 14:31:03 +093028 select MODULES_USE_ELF_RELA
Dave Hansend1a1dc02013-07-01 13:04:42 -070029 select HAVE_DEBUG_STACKOVERFLOW
Stefan Kristiansson4db8e6d2014-05-26 23:31:42 +030030 select OR1K_PIC
Zhaoxiu Zengfff7fb02016-05-20 17:03:57 -070031 select CPU_NO_EFFICIENT_FFS if !OPENRISC_HAVE_INST_FF1
Stafford Horne266c7fa2016-04-03 19:14:49 +090032 select NO_BOOTMEM
Stafford Horneb5f82172017-03-24 07:13:03 +090033 select ARCH_USE_QUEUED_SPINLOCKS
34 select ARCH_USE_QUEUED_RWLOCKS
Stafford Horne9b544702017-10-30 21:38:35 +090035 select OMPIC if SMP
Stafford Horneeecac382017-07-24 21:44:35 +090036 select ARCH_WANT_FRAME_POINTERS
Jonas Bonnf8c4a272011-06-04 21:52:05 +030037
Babu Moger4c97a0c2017-09-08 16:14:22 -070038config CPU_BIG_ENDIAN
39 def_bool y
40
Jonas Bonnf8c4a272011-06-04 21:52:05 +030041config MMU
42 def_bool y
43
Jonas Bonnf8c4a272011-06-04 21:52:05 +030044config RWSEM_GENERIC_SPINLOCK
45 def_bool y
46
47config RWSEM_XCHGADD_ALGORITHM
48 def_bool n
49
50config GENERIC_HWEIGHT
51 def_bool y
52
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070053config NO_IOPORT_MAP
Jonas Bonnf8c4a272011-06-04 21:52:05 +030054 def_bool y
55
Jonas Bonnf8c4a272011-06-04 21:52:05 +030056config TRACE_IRQFLAGS_SUPPORT
57 def_bool y
58
59# For now, use generic checksum functions
60#These can be reimplemented in assembly later if so inclined
61config GENERIC_CSUM
62 def_bool y
63
Stafford Horneeecac382017-07-24 21:44:35 +090064config STACKTRACE_SUPPORT
65 def_bool y
66
Jonas Bonnf8c4a272011-06-04 21:52:05 +030067source "init/Kconfig"
68
Chen Gang57a1a192013-08-13 16:01:02 -070069source "kernel/Kconfig.freezer"
Jonas Bonnf8c4a272011-06-04 21:52:05 +030070
71menu "Processor type and features"
72
73choice
74 prompt "Subarchitecture"
75 default OR1K_1200
76
77config OR1K_1200
78 bool "OR1200"
79 help
80 Generic OpenRISC 1200 architecture
81
82endchoice
83
Jan Henrik Weinstock4ee93d82015-11-04 17:26:10 +010084config DCACHE_WRITETHROUGH
85 bool "Have write through data caches"
86 default n
87 help
88 Select this if your implementation features write through data caches.
89 Selecting 'N' here will allow the kernel to force flushing of data
90 caches at relevant times. Most OpenRISC implementations support write-
91 through data caches.
92
93 If unsure say N here
94
Jonas Bonnf8c4a272011-06-04 21:52:05 +030095config OPENRISC_BUILTIN_DTB
96 string "Builtin DTB"
97 default ""
98
99menu "Class II Instructions"
100
101config OPENRISC_HAVE_INST_FF1
102 bool "Have instruction l.ff1"
103 default y
104 help
105 Select this if your implementation has the Class II instruction l.ff1
106
107config OPENRISC_HAVE_INST_FL1
108 bool "Have instruction l.fl1"
109 default y
110 help
111 Select this if your implementation has the Class II instruction l.fl1
112
113config OPENRISC_HAVE_INST_MUL
114 bool "Have instruction l.mul for hardware multiply"
115 default y
116 help
117 Select this if your implementation has a hardware multiply instruction
118
119config OPENRISC_HAVE_INST_DIV
120 bool "Have instruction l.div for hardware divide"
121 default y
122 help
123 Select this if your implementation has a hardware divide instruction
124endmenu
125
Stafford Horne34bbdcd2016-09-24 22:20:42 +0900126config NR_CPUS
Stefan Kristiansson8e6d08e2014-05-11 21:49:34 +0300127 int "Maximum number of CPUs (2-32)"
128 range 2 32
129 depends on SMP
130 default "2"
131
132config SMP
133 bool "Symmetric Multi-Processing support"
134 help
135 This enables support for systems with more than one CPU. If you have
136 a system with only one CPU, say N. If you have a system with more
137 than one CPU, say Y.
138
139 If you don't know what to do here, say N.
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300140
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300141source kernel/Kconfig.hz
142source kernel/Kconfig.preempt
143source "mm/Kconfig"
144
145config OPENRISC_NO_SPR_SR_DSX
146 bool "use SPR_SR_DSX software emulation" if OR1K_1200
147 default y
148 help
149 SPR_SR_DSX bit is status register bit indicating whether
150 the last exception has happened in delay slot.
151
152 OpenRISC architecture makes it optional to have it implemented
153 in hardware and the OR1200 does not have it.
154
155 Say N here if you know that your OpenRISC processor has
156 SPR_SR_DSX bit implemented. Say Y if you are unsure.
157
Stefan Kristiansson91993c82014-05-11 12:08:37 +0300158config OPENRISC_HAVE_SHADOW_GPRS
159 bool "Support for shadow gpr files" if !SMP
160 default y if SMP
161 help
162 Say Y here if your OpenRISC processor features shadowed
163 register files. They will in such case be used as a
164 scratch reg storage on exception entry.
165
166 On SMP systems, this feature is mandatory.
167 On a unicore system it's safe to say N here if you are unsure.
168
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300169config CMDLINE
170 string "Default kernel command string"
171 default ""
172 help
173 On some architectures there is currently no way for the boot loader
174 to pass arguments to the kernel. For these architectures, you should
175 supply some command-line options at build time by entering them
176 here.
177
178menu "Debugging options"
179
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300180config JUMP_UPON_UNHANDLED_EXCEPTION
181 bool "Try to die gracefully"
182 default y
183 help
184 Now this puts kernel into infinite loop after first oops. Till
185 your kernel crashes this doesn't have any influence.
186
187 Say Y if you are unsure.
188
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300189config OPENRISC_ESR_EXCEPTION_BUG_CHECK
190 bool "Check for possible ESR exception bug"
191 default n
192 help
193 This option enables some checks that might expose some problems
194 in kernel.
195
196 Say N if you are unsure.
197
198endmenu
199
200endmenu
201
202menu "Executable file formats"
203
204source "fs/Kconfig.binfmt"
205
206endmenu
207
208source "net/Kconfig"
209
210source "drivers/Kconfig"
211
212source "fs/Kconfig"
213
214source "security/Kconfig"
215
216source "crypto/Kconfig"
217
218source "lib/Kconfig"
219
220menu "Kernel hacking"
221
222source "lib/Kconfig.debug"
223
224endmenu