blob: bfff04ae7f7df9dae0d9343c4b8b9088af40a043 [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
Jonas Bonnf8c4a272011-06-04 21:52:05 +030036
Babu Moger4c97a0c2017-09-08 16:14:22 -070037config CPU_BIG_ENDIAN
38 def_bool y
39
Jonas Bonnf8c4a272011-06-04 21:52:05 +030040config MMU
41 def_bool y
42
Jonas Bonnf8c4a272011-06-04 21:52:05 +030043config RWSEM_GENERIC_SPINLOCK
44 def_bool y
45
46config RWSEM_XCHGADD_ALGORITHM
47 def_bool n
48
49config GENERIC_HWEIGHT
50 def_bool y
51
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070052config NO_IOPORT_MAP
Jonas Bonnf8c4a272011-06-04 21:52:05 +030053 def_bool y
54
Jonas Bonnf8c4a272011-06-04 21:52:05 +030055config TRACE_IRQFLAGS_SUPPORT
56 def_bool y
57
58# For now, use generic checksum functions
59#These can be reimplemented in assembly later if so inclined
60config GENERIC_CSUM
61 def_bool y
62
Jonas Bonnf8c4a272011-06-04 21:52:05 +030063source "init/Kconfig"
64
Chen Gang57a1a192013-08-13 16:01:02 -070065source "kernel/Kconfig.freezer"
Jonas Bonnf8c4a272011-06-04 21:52:05 +030066
67menu "Processor type and features"
68
69choice
70 prompt "Subarchitecture"
71 default OR1K_1200
72
73config OR1K_1200
74 bool "OR1200"
75 help
76 Generic OpenRISC 1200 architecture
77
78endchoice
79
Jan Henrik Weinstock4ee93d82015-11-04 17:26:10 +010080config DCACHE_WRITETHROUGH
81 bool "Have write through data caches"
82 default n
83 help
84 Select this if your implementation features write through data caches.
85 Selecting 'N' here will allow the kernel to force flushing of data
86 caches at relevant times. Most OpenRISC implementations support write-
87 through data caches.
88
89 If unsure say N here
90
Jonas Bonnf8c4a272011-06-04 21:52:05 +030091config OPENRISC_BUILTIN_DTB
92 string "Builtin DTB"
93 default ""
94
95menu "Class II Instructions"
96
97config OPENRISC_HAVE_INST_FF1
98 bool "Have instruction l.ff1"
99 default y
100 help
101 Select this if your implementation has the Class II instruction l.ff1
102
103config OPENRISC_HAVE_INST_FL1
104 bool "Have instruction l.fl1"
105 default y
106 help
107 Select this if your implementation has the Class II instruction l.fl1
108
109config OPENRISC_HAVE_INST_MUL
110 bool "Have instruction l.mul for hardware multiply"
111 default y
112 help
113 Select this if your implementation has a hardware multiply instruction
114
115config OPENRISC_HAVE_INST_DIV
116 bool "Have instruction l.div for hardware divide"
117 default y
118 help
119 Select this if your implementation has a hardware divide instruction
120endmenu
121
Stafford Horne34bbdcd2016-09-24 22:20:42 +0900122config NR_CPUS
Stefan Kristiansson8e6d08e2014-05-11 21:49:34 +0300123 int "Maximum number of CPUs (2-32)"
124 range 2 32
125 depends on SMP
126 default "2"
127
128config SMP
129 bool "Symmetric Multi-Processing support"
130 help
131 This enables support for systems with more than one CPU. If you have
132 a system with only one CPU, say N. If you have a system with more
133 than one CPU, say Y.
134
135 If you don't know what to do here, say N.
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300136
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300137source kernel/Kconfig.hz
138source kernel/Kconfig.preempt
139source "mm/Kconfig"
140
141config OPENRISC_NO_SPR_SR_DSX
142 bool "use SPR_SR_DSX software emulation" if OR1K_1200
143 default y
144 help
145 SPR_SR_DSX bit is status register bit indicating whether
146 the last exception has happened in delay slot.
147
148 OpenRISC architecture makes it optional to have it implemented
149 in hardware and the OR1200 does not have it.
150
151 Say N here if you know that your OpenRISC processor has
152 SPR_SR_DSX bit implemented. Say Y if you are unsure.
153
Stefan Kristiansson91993c82014-05-11 12:08:37 +0300154config OPENRISC_HAVE_SHADOW_GPRS
155 bool "Support for shadow gpr files" if !SMP
156 default y if SMP
157 help
158 Say Y here if your OpenRISC processor features shadowed
159 register files. They will in such case be used as a
160 scratch reg storage on exception entry.
161
162 On SMP systems, this feature is mandatory.
163 On a unicore system it's safe to say N here if you are unsure.
164
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300165config CMDLINE
166 string "Default kernel command string"
167 default ""
168 help
169 On some architectures there is currently no way for the boot loader
170 to pass arguments to the kernel. For these architectures, you should
171 supply some command-line options at build time by entering them
172 here.
173
174menu "Debugging options"
175
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300176config JUMP_UPON_UNHANDLED_EXCEPTION
177 bool "Try to die gracefully"
178 default y
179 help
180 Now this puts kernel into infinite loop after first oops. Till
181 your kernel crashes this doesn't have any influence.
182
183 Say Y if you are unsure.
184
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300185config OPENRISC_ESR_EXCEPTION_BUG_CHECK
186 bool "Check for possible ESR exception bug"
187 default n
188 help
189 This option enables some checks that might expose some problems
190 in kernel.
191
192 Say N if you are unsure.
193
194endmenu
195
196endmenu
197
198menu "Executable file formats"
199
200source "fs/Kconfig.binfmt"
201
202endmenu
203
204source "net/Kconfig"
205
206source "drivers/Kconfig"
207
208source "fs/Kconfig"
209
210source "security/Kconfig"
211
212source "crypto/Kconfig"
213
214source "lib/Kconfig"
215
216menu "Kernel hacking"
217
218source "lib/Kconfig.debug"
219
220endmenu