blob: 34eb4e90f56c38ebc6afce479521d2125b29c581 [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
Jonas Bonn603d6632012-05-25 08:24:49 +020024 select GENERIC_STRNCPY_FROM_USER
Jonas Bonnb48b2c32012-05-27 10:25:47 +020025 select GENERIC_STRNLEN_USER
David Howells786d35d2012-09-28 14:31:03 +093026 select MODULES_USE_ELF_RELA
Dave Hansend1a1dc02013-07-01 13:04:42 -070027 select HAVE_DEBUG_STACKOVERFLOW
Stefan Kristiansson4db8e6d2014-05-26 23:31:42 +030028 select OR1K_PIC
Zhaoxiu Zengfff7fb02016-05-20 17:03:57 -070029 select CPU_NO_EFFICIENT_FFS if !OPENRISC_HAVE_INST_FF1
Stafford Horne266c7fa2016-04-03 19:14:49 +090030 select NO_BOOTMEM
Stafford Horneb5f82172017-03-24 07:13:03 +090031 select ARCH_USE_QUEUED_SPINLOCKS
32 select ARCH_USE_QUEUED_RWLOCKS
Stafford Horne9b544702017-10-30 21:38:35 +090033 select OMPIC if SMP
Jonas Bonnf8c4a272011-06-04 21:52:05 +030034
Babu Moger4c97a0c2017-09-08 16:14:22 -070035config CPU_BIG_ENDIAN
36 def_bool y
37
Jonas Bonnf8c4a272011-06-04 21:52:05 +030038config MMU
39 def_bool y
40
Jonas Bonnf8c4a272011-06-04 21:52:05 +030041config RWSEM_GENERIC_SPINLOCK
42 def_bool y
43
44config RWSEM_XCHGADD_ALGORITHM
45 def_bool n
46
47config GENERIC_HWEIGHT
48 def_bool y
49
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070050config NO_IOPORT_MAP
Jonas Bonnf8c4a272011-06-04 21:52:05 +030051 def_bool y
52
Jonas Bonnf8c4a272011-06-04 21:52:05 +030053config TRACE_IRQFLAGS_SUPPORT
54 def_bool y
55
56# For now, use generic checksum functions
57#These can be reimplemented in assembly later if so inclined
58config GENERIC_CSUM
59 def_bool y
60
Jonas Bonnf8c4a272011-06-04 21:52:05 +030061source "init/Kconfig"
62
Chen Gang57a1a192013-08-13 16:01:02 -070063source "kernel/Kconfig.freezer"
Jonas Bonnf8c4a272011-06-04 21:52:05 +030064
65menu "Processor type and features"
66
67choice
68 prompt "Subarchitecture"
69 default OR1K_1200
70
71config OR1K_1200
72 bool "OR1200"
73 help
74 Generic OpenRISC 1200 architecture
75
76endchoice
77
78config OPENRISC_BUILTIN_DTB
79 string "Builtin DTB"
80 default ""
81
82menu "Class II Instructions"
83
84config OPENRISC_HAVE_INST_FF1
85 bool "Have instruction l.ff1"
86 default y
87 help
88 Select this if your implementation has the Class II instruction l.ff1
89
90config OPENRISC_HAVE_INST_FL1
91 bool "Have instruction l.fl1"
92 default y
93 help
94 Select this if your implementation has the Class II instruction l.fl1
95
96config OPENRISC_HAVE_INST_MUL
97 bool "Have instruction l.mul for hardware multiply"
98 default y
99 help
100 Select this if your implementation has a hardware multiply instruction
101
102config OPENRISC_HAVE_INST_DIV
103 bool "Have instruction l.div for hardware divide"
104 default y
105 help
106 Select this if your implementation has a hardware divide instruction
107endmenu
108
Stafford Horne34bbdcd2016-09-24 22:20:42 +0900109config NR_CPUS
110 int
111 default "1"
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300112
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300113source kernel/Kconfig.hz
114source kernel/Kconfig.preempt
115source "mm/Kconfig"
116
117config OPENRISC_NO_SPR_SR_DSX
118 bool "use SPR_SR_DSX software emulation" if OR1K_1200
119 default y
120 help
121 SPR_SR_DSX bit is status register bit indicating whether
122 the last exception has happened in delay slot.
123
124 OpenRISC architecture makes it optional to have it implemented
125 in hardware and the OR1200 does not have it.
126
127 Say N here if you know that your OpenRISC processor has
128 SPR_SR_DSX bit implemented. Say Y if you are unsure.
129
Stefan Kristiansson91993c82014-05-11 12:08:37 +0300130config OPENRISC_HAVE_SHADOW_GPRS
131 bool "Support for shadow gpr files" if !SMP
132 default y if SMP
133 help
134 Say Y here if your OpenRISC processor features shadowed
135 register files. They will in such case be used as a
136 scratch reg storage on exception entry.
137
138 On SMP systems, this feature is mandatory.
139 On a unicore system it's safe to say N here if you are unsure.
140
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300141config CMDLINE
142 string "Default kernel command string"
143 default ""
144 help
145 On some architectures there is currently no way for the boot loader
146 to pass arguments to the kernel. For these architectures, you should
147 supply some command-line options at build time by entering them
148 here.
149
150menu "Debugging options"
151
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300152config JUMP_UPON_UNHANDLED_EXCEPTION
153 bool "Try to die gracefully"
154 default y
155 help
156 Now this puts kernel into infinite loop after first oops. Till
157 your kernel crashes this doesn't have any influence.
158
159 Say Y if you are unsure.
160
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300161config OPENRISC_ESR_EXCEPTION_BUG_CHECK
162 bool "Check for possible ESR exception bug"
163 default n
164 help
165 This option enables some checks that might expose some problems
166 in kernel.
167
168 Say N if you are unsure.
169
170endmenu
171
172endmenu
173
174menu "Executable file formats"
175
176source "fs/Kconfig.binfmt"
177
178endmenu
179
180source "net/Kconfig"
181
182source "drivers/Kconfig"
183
184source "fs/Kconfig"
185
186source "security/Kconfig"
187
188source "crypto/Kconfig"
189
190source "lib/Kconfig"
191
192menu "Kernel hacking"
193
194source "lib/Kconfig.debug"
195
196endmenu