]> asedeno.scripts.mit.edu Git - linux.git/blob - arch/openrisc/Kconfig
locking/rwsem: Remove rwsem-spinlock.c & use rwsem-xadd.c for all archs
[linux.git] / arch / openrisc / Kconfig
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # For a description of the syntax of this configuration file,
4 # see Documentation/kbuild/kconfig-language.txt.
5 #
6
7 config OPENRISC
8         def_bool y
9         select ARCH_32BIT_OFF_T
10         select ARCH_HAS_SYNC_DMA_FOR_DEVICE
11         select OF
12         select OF_EARLY_FLATTREE
13         select IRQ_DOMAIN
14         select HANDLE_DOMAIN_IRQ
15         select GPIOLIB
16         select HAVE_ARCH_TRACEHOOK
17         select SPARSE_IRQ
18         select GENERIC_IRQ_CHIP
19         select GENERIC_IRQ_PROBE
20         select GENERIC_IRQ_SHOW
21         select GENERIC_IOMAP
22         select GENERIC_CPU_DEVICES
23         select HAVE_UID16
24         select GENERIC_ATOMIC64
25         select GENERIC_CLOCKEVENTS
26         select GENERIC_CLOCKEVENTS_BROADCAST
27         select GENERIC_STRNCPY_FROM_USER
28         select GENERIC_STRNLEN_USER
29         select GENERIC_SMP_IDLE_THREAD
30         select MODULES_USE_ELF_RELA
31         select HAVE_DEBUG_STACKOVERFLOW
32         select OR1K_PIC
33         select CPU_NO_EFFICIENT_FFS if !OPENRISC_HAVE_INST_FF1
34         select ARCH_USE_QUEUED_SPINLOCKS
35         select ARCH_USE_QUEUED_RWLOCKS
36         select OMPIC if SMP
37         select ARCH_WANT_FRAME_POINTERS
38         select GENERIC_IRQ_MULTI_HANDLER
39
40 config CPU_BIG_ENDIAN
41         def_bool y
42
43 config MMU
44         def_bool y
45
46 config GENERIC_HWEIGHT
47         def_bool y
48
49 config NO_IOPORT_MAP
50         def_bool y
51
52 config TRACE_IRQFLAGS_SUPPORT
53         def_bool y
54
55 # For now, use generic checksum functions
56 #These can be reimplemented in assembly later if so inclined
57 config GENERIC_CSUM
58         def_bool y
59
60 config STACKTRACE_SUPPORT
61         def_bool y
62
63 config LOCKDEP_SUPPORT
64         def_bool  y
65
66 menu "Processor type and features"
67
68 choice
69         prompt "Subarchitecture"
70         default OR1K_1200
71
72 config OR1K_1200
73         bool "OR1200"
74         help
75           Generic OpenRISC 1200 architecture
76
77 endchoice
78
79 config DCACHE_WRITETHROUGH
80         bool "Have write through data caches"
81         default n
82         help
83           Select this if your implementation features write through data caches.
84           Selecting 'N' here will allow the kernel to force flushing of data
85           caches at relevant times. Most OpenRISC implementations support write-
86           through data caches.
87
88           If unsure say N here
89
90 config OPENRISC_BUILTIN_DTB
91         string "Builtin DTB"
92         default ""
93
94 menu "Class II Instructions"
95
96 config OPENRISC_HAVE_INST_FF1
97         bool "Have instruction l.ff1"
98         default y
99         help
100           Select this if your implementation has the Class II instruction l.ff1
101
102 config OPENRISC_HAVE_INST_FL1
103         bool "Have instruction l.fl1"
104         default y
105         help
106           Select this if your implementation has the Class II instruction l.fl1
107
108 config OPENRISC_HAVE_INST_MUL
109         bool "Have instruction l.mul for hardware multiply"
110         default y
111         help
112           Select this if your implementation has a hardware multiply instruction
113
114 config OPENRISC_HAVE_INST_DIV
115         bool "Have instruction l.div for hardware divide"
116         default y
117         help
118           Select this if your implementation has a hardware divide instruction
119 endmenu
120
121 config NR_CPUS
122         int "Maximum number of CPUs (2-32)"
123         range 2 32
124         depends on SMP
125         default "2"
126
127 config SMP
128         bool "Symmetric Multi-Processing support"
129         help
130           This enables support for systems with more than one CPU. If you have
131           a system with only one CPU, say N. If you have a system with more
132           than one CPU, say Y.
133
134           If you don't know what to do here, say N.
135
136 source "kernel/Kconfig.hz"
137
138 config OPENRISC_NO_SPR_SR_DSX
139         bool "use SPR_SR_DSX software emulation" if OR1K_1200
140         default y
141         help
142           SPR_SR_DSX bit is status register bit indicating whether
143           the last exception has happened in delay slot.
144
145           OpenRISC architecture makes it optional to have it implemented
146           in hardware and the OR1200 does not have it.
147
148           Say N here if you know that your OpenRISC processor has
149           SPR_SR_DSX bit implemented. Say Y if you are unsure.
150
151 config OPENRISC_HAVE_SHADOW_GPRS
152         bool "Support for shadow gpr files" if !SMP
153         default y if SMP
154         help
155           Say Y here if your OpenRISC processor features shadowed
156           register files. They will in such case be used as a
157           scratch reg storage on exception entry.
158
159           On SMP systems, this feature is mandatory.
160           On a unicore system it's safe to say N here if you are unsure.
161
162 config CMDLINE
163         string "Default kernel command string"
164         default ""
165         help
166           On some architectures there is currently no way for the boot loader
167           to pass arguments to the kernel. For these architectures, you should
168           supply some command-line options at build time by entering them
169           here.
170
171 menu "Debugging options"
172
173 config JUMP_UPON_UNHANDLED_EXCEPTION
174         bool "Try to die gracefully"
175         default y
176         help
177           Now this puts kernel into infinite loop after first oops. Till
178           your kernel crashes this doesn't have any influence.
179
180           Say Y if you are unsure.
181
182 config OPENRISC_ESR_EXCEPTION_BUG_CHECK
183         bool "Check for possible ESR exception bug"
184         default n
185         help
186           This option enables some checks that might expose some problems
187           in kernel.
188
189           Say N if you are unsure.
190
191 endmenu
192
193 endmenu