blob: 4932247d078ac3cfde1da41bfa8e759a9b6b8a8e [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
Jonas Bonnf8c4a272011-06-04 21:52:05 +030011 select HAVE_MEMBLOCK
12 select ARCH_WANT_OPTIONAL_GPIOLIB
13 select HAVE_ARCH_TRACEHOOK
14 select HAVE_GENERIC_HARDIRQS
15 select GENERIC_IRQ_CHIP
16 select GENERIC_IRQ_PROBE
17 select GENERIC_IRQ_SHOW
18 select GENERIC_IOMAP
Ben Hutchings9f13a1f2012-01-10 03:04:32 +000019 select GENERIC_CPU_DEVICES
Richard Weinberger0662d332012-03-02 01:55:11 +010020 select GENERIC_ATOMIC64
Anna-Maria Gleixner5bf8f6b2012-05-18 16:45:51 +000021 select GENERIC_CLOCKEVENTS
Jonas Bonnf8c4a272011-06-04 21:52:05 +030022
23config MMU
24 def_bool y
25
Jonas Bonnf8c4a272011-06-04 21:52:05 +030026config SYMBOL_PREFIX
27 string
28 default ""
29
30config HAVE_DMA_ATTRS
31 def_bool y
32
33config UID16
34 def_bool y
35
36config RWSEM_GENERIC_SPINLOCK
37 def_bool y
38
39config RWSEM_XCHGADD_ALGORITHM
40 def_bool n
41
42config GENERIC_HWEIGHT
43 def_bool y
44
Jonas Bonnf8c4a272011-06-04 21:52:05 +030045config NO_IOPORT
46 def_bool y
47
48config GENERIC_GPIO
49 def_bool y
50
Jonas Bonnf8c4a272011-06-04 21:52:05 +030051config TRACE_IRQFLAGS_SUPPORT
52 def_bool y
53
54# For now, use generic checksum functions
55#These can be reimplemented in assembly later if so inclined
56config GENERIC_CSUM
57 def_bool y
58
59config GENERIC_FIND_NEXT_BIT
60 def_bool y
61
62source "init/Kconfig"
63
64
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
109
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300110source kernel/Kconfig.hz
111source kernel/Kconfig.preempt
112source "mm/Kconfig"
113
114config OPENRISC_NO_SPR_SR_DSX
115 bool "use SPR_SR_DSX software emulation" if OR1K_1200
116 default y
117 help
118 SPR_SR_DSX bit is status register bit indicating whether
119 the last exception has happened in delay slot.
120
121 OpenRISC architecture makes it optional to have it implemented
122 in hardware and the OR1200 does not have it.
123
124 Say N here if you know that your OpenRISC processor has
125 SPR_SR_DSX bit implemented. Say Y if you are unsure.
126
127config CMDLINE
128 string "Default kernel command string"
129 default ""
130 help
131 On some architectures there is currently no way for the boot loader
132 to pass arguments to the kernel. For these architectures, you should
133 supply some command-line options at build time by entering them
134 here.
135
136menu "Debugging options"
137
138config DEBUG_STACKOVERFLOW
139 bool "Check for kernel stack overflow"
140 default y
141 help
Masanari Iida6b2aac42012-04-14 00:14:11 +0900142 Make extra checks for space available on stack in some
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300143 critical functions. This will cause kernel to run a bit slower,
144 but will catch most of kernel stack overruns and exit gracefuly.
145
146 Say Y if you are unsure.
147
148config JUMP_UPON_UNHANDLED_EXCEPTION
149 bool "Try to die gracefully"
150 default y
151 help
152 Now this puts kernel into infinite loop after first oops. Till
153 your kernel crashes this doesn't have any influence.
154
155 Say Y if you are unsure.
156
Jonas Bonnf8c4a272011-06-04 21:52:05 +0300157config OPENRISC_ESR_EXCEPTION_BUG_CHECK
158 bool "Check for possible ESR exception bug"
159 default n
160 help
161 This option enables some checks that might expose some problems
162 in kernel.
163
164 Say N if you are unsure.
165
166endmenu
167
168endmenu
169
170menu "Executable file formats"
171
172source "fs/Kconfig.binfmt"
173
174endmenu
175
176source "net/Kconfig"
177
178source "drivers/Kconfig"
179
180source "fs/Kconfig"
181
182source "security/Kconfig"
183
184source "crypto/Kconfig"
185
186source "lib/Kconfig"
187
188menu "Kernel hacking"
189
190source "lib/Kconfig.debug"
191
192endmenu