avoid overflows in kernel/time.c
[linux-2.6-block.git] / arch / frv / Kconfig
CommitLineData
1da177e4
LT
1#
2# For a description of the syntax of this configuration file,
3# see Documentation/kbuild/kconfig-language.txt.
4#
5config FRV
6 bool
7 default y
8
66701b14
CL
9config ZONE_DMA
10 bool
11 default y
12
1da177e4
LT
13config RWSEM_GENERIC_SPINLOCK
14 bool
15 default y
16
17config RWSEM_XCHGADD_ALGORITHM
18 bool
19
20config GENERIC_FIND_NEXT_BIT
21 bool
22 default y
23
1f6d7a93
AM
24config GENERIC_HWEIGHT
25 bool
26 default y
27
1da177e4
LT
28config GENERIC_CALIBRATE_DELAY
29 bool
30 default n
31
32config GENERIC_HARDIRQS
33 bool
1bcbba30 34 default y
1da177e4 35
af8c65b5
DH
36config GENERIC_HARDIRQS_NO__DO_IRQ
37 bool
38 default y
39
ebd6c171 40config GENERIC_TIME
41 bool
42 default y
43
06027bdd
IM
44config TIME_LOW_RES
45 bool
46 default y
47
8defab33 48config QUICKLIST
f0d1b0b3
DH
49 bool
50 default y
51
8defab33 52config ARCH_HAS_ILOG2_U32
f0d1b0b3
DH
53 bool
54 default y
55
8defab33 56config ARCH_HAS_ILOG2_U64
81819f0f
CL
57 bool
58 default y
59
bdc80787
PA
60config HZ
61 int
62 default 1000
63
1da177e4
LT
64mainmenu "Fujitsu FR-V Kernel Configuration"
65
66source "init/Kconfig"
67
68
69menu "Fujitsu FR-V system setup"
70
71config MMU
72 bool "MMU support"
73 help
74 This options switches on and off support for the FR-V MMU
75 (effectively switching between vmlinux and uClinux). Not all FR-V
76 CPUs support this. Currently only the FR451 has a sufficiently
77 featured MMU.
78
79config FRV_OUTOFLINE_ATOMIC_OPS
80 bool "Out-of-line the FRV atomic operations"
81 default n
82 help
83 Setting this option causes the FR-V atomic operations to be mostly
84 implemented out-of-line.
85
0868ff7a 86 See Documentation/frv/atomic-ops.txt for more information.
1da177e4
LT
87
88config HIGHMEM
89 bool "High memory support"
90 depends on MMU
91 default y
92 help
93 If you wish to use more than 256MB of memory with your MMU based
94 system, you will need to select this option. The kernel can only see
95 the memory between 0xC0000000 and 0xD0000000 directly... everything
96 else must be kmapped.
97
98 The arch is, however, capable of supporting up to 3GB of SDRAM.
99
100config HIGHPTE
101 bool "Allocate page tables in highmem"
102 depends on HIGHMEM
103 default y
104 help
105 The VM uses one page of memory for each page table. For systems
106 with a lot of RAM, this can be wasteful of precious low memory.
107 Setting this option will put user-space page tables in high memory.
108
3f22ab27
DH
109source "mm/Kconfig"
110
1da177e4
LT
111choice
112 prompt "uClinux kernel load address"
113 depends on !MMU
114 default UCPAGE_OFFSET_C0000000
115 help
116 This option sets the base address for the uClinux kernel. The kernel
117 will rearrange the SDRAM layout to start at this address, and move
118 itself to start there. It must be greater than 0, and it must be
119 sufficiently less than 0xE0000000 that the SDRAM does not intersect
120 the I/O region.
121
122 The base address must also be aligned such that the SDRAM controller
123 can decode it. For instance, a 512MB SDRAM bank must be 512MB aligned.
124
125config UCPAGE_OFFSET_20000000
126 bool "0x20000000"
127
128config UCPAGE_OFFSET_40000000
129 bool "0x40000000"
130
131config UCPAGE_OFFSET_60000000
132 bool "0x60000000"
133
134config UCPAGE_OFFSET_80000000
135 bool "0x80000000"
136
137config UCPAGE_OFFSET_A0000000
138 bool "0xA0000000"
139
140config UCPAGE_OFFSET_C0000000
141 bool "0xC0000000 (Recommended)"
142
143endchoice
144
7038220a
DH
145config PAGE_OFFSET
146 hex
147 default 0x20000000 if UCPAGE_OFFSET_20000000
148 default 0x40000000 if UCPAGE_OFFSET_40000000
149 default 0x60000000 if UCPAGE_OFFSET_60000000
150 default 0x80000000 if UCPAGE_OFFSET_80000000
151 default 0xA0000000 if UCPAGE_OFFSET_A0000000
152 default 0xC0000000
153
1da177e4
LT
154config PROTECT_KERNEL
155 bool "Protect core kernel against userspace"
156 depends on !MMU
157 default y
158 help
159 Selecting this option causes the uClinux kernel to change the
160 permittivity of DAMPR register covering the core kernel image to
161 prevent userspace accessing the underlying memory directly.
162
163choice
164 prompt "CPU Caching mode"
165 default FRV_DEFL_CACHE_WBACK
166 help
167 This option determines the default caching mode for the kernel.
168
169 Write-Back caching mode involves the all reads and writes causing
170 the affected cacheline to be read into the cache first before being
171 operated upon. Memory is not then updated by a write until the cache
172 is filled and a cacheline needs to be displaced from the cache to
173 make room. Only at that point is it written back.
174
175 Write-Behind caching is similar to Write-Back caching, except that a
176 write won't fetch a cacheline into the cache if there isn't already
177 one there; it will write directly to memory instead.
178
179 Write-Through caching only fetches cachelines from memory on a
180 read. Writes always get written directly to memory. If the affected
181 cacheline is also in cache, it will be updated too.
182
183 The final option is to turn of caching entirely.
184
185 Note that not all CPUs support Write-Behind caching. If the CPU on
186 which the kernel is running doesn't, it'll fall back to Write-Back
187 caching.
188
189config FRV_DEFL_CACHE_WBACK
190 bool "Write-Back"
191
192config FRV_DEFL_CACHE_WBEHIND
193 bool "Write-Behind"
194
195config FRV_DEFL_CACHE_WTHRU
196 bool "Write-Through"
197
198config FRV_DEFL_CACHE_DISABLED
199 bool "Disabled"
200
201endchoice
202
203menu "CPU core support"
204
205config CPU_FR401
206 bool "Include FR401 core support"
207 depends on !MMU
208 default y
209 help
210 This enables support for the FR401, FR401A and FR403 CPUs
211
212config CPU_FR405
213 bool "Include FR405 core support"
214 depends on !MMU
215 default y
216 help
217 This enables support for the FR405 CPU
218
219config CPU_FR451
220 bool "Include FR451 core support"
221 default y
222 help
223 This enables support for the FR451 CPU
224
225config CPU_FR451_COMPILE
226 bool "Specifically compile for FR451 core"
227 depends on CPU_FR451 && !CPU_FR401 && !CPU_FR405 && !CPU_FR551
228 default y
229 help
230 This causes appropriate flags to be passed to the compiler to
231 optimise for the FR451 CPU
232
233config CPU_FR551
234 bool "Include FR551 core support"
235 depends on !MMU
236 default y
237 help
238 This enables support for the FR555 CPU
239
240config CPU_FR551_COMPILE
241 bool "Specifically compile for FR551 core"
242 depends on CPU_FR551 && !CPU_FR401 && !CPU_FR405 && !CPU_FR451
243 default y
244 help
245 This causes appropriate flags to be passed to the compiler to
246 optimise for the FR555 CPU
247
248config FRV_L1_CACHE_SHIFT
249 int
250 default "5" if CPU_FR401 || CPU_FR405 || CPU_FR451
251 default "6" if CPU_FR551
252
253endmenu
254
255choice
256 prompt "System support"
257 default MB93091_VDK
258
259config MB93091_VDK
260 bool "MB93091 CPU board with or without motherboard"
261
262config MB93093_PDK
263 bool "MB93093 PDK unit"
264
265endchoice
266
267if MB93091_VDK
268choice
269 prompt "Motherboard support"
270 default MB93090_MB00
271
272config MB93090_MB00
273 bool "Use the MB93090-MB00 motherboard"
274 help
275 Select this option if the MB93091 CPU board is going to be used with
276 a MB93090-MB00 VDK motherboard
277
278config MB93091_NO_MB
279 bool "Use standalone"
280 help
281 Select this option if the MB93091 CPU board is going to be used
282 without a motherboard
283
284endchoice
285endif
286
1bcbba30
DH
287config FUJITSU_MB93493
288 bool "MB93493 Multimedia chip"
289 help
290 Select this option if the MB93493 multimedia chip is going to be
291 used.
292
1da177e4
LT
293choice
294 prompt "GP-Relative data support"
295 default GPREL_DATA_8
296 help
297 This option controls what data, if any, should be placed in the GP
298 relative data sections. Using this means that the compiler can
299 generate accesses to the data using GR16-relative addressing which
300 is faster than absolute instructions and saves space (2 instructions
301 per access).
302
303 However, the GPREL region is limited in size because the immediate
304 value used in the load and store instructions is limited to a 12-bit
305 signed number.
306
307 So if the linker starts complaining that accesses to GPREL data are
308 out of range, try changing this option from the default.
309
310 Note that modules will always be compiled with this feature disabled
311 as the module data will not be in range of the GP base address.
312
313config GPREL_DATA_8
314 bool "Put data objects of up to 8 bytes into GP-REL"
315
316config GPREL_DATA_4
317 bool "Put data objects of up to 4 bytes into GP-REL"
318
319config GPREL_DATA_NONE
320 bool "Don't use GP-REL"
321
322endchoice
323
f8aec757
DH
324config FRV_ONCPU_SERIAL
325 bool "Use on-CPU serial ports"
326 select SERIAL_8250
327 default y
328
1da177e4
LT
329config PCI
330 bool "Use PCI"
331 depends on MB93090_MB00
332 default y
333 help
334 Some FR-V systems (such as the MB93090-MB00 VDK) have PCI
335 onboard. If you have one of these boards and you wish to use the PCI
336 facilities, say Y here.
337
1da177e4
LT
338config RESERVE_DMA_COHERENT
339 bool "Reserve DMA coherent memory"
340 depends on PCI && !MMU
341 default y
342 help
343 Many PCI drivers require access to uncached memory for DMA device
344 communications (such as is done with some Ethernet buffer rings). If
345 a fully featured MMU is available, this can be done through page
346 table settings, but if not, a region has to be set aside and marked
347 with a special DAMPR register.
348
349 Setting this option causes uClinux to set aside a portion of the
350 available memory for use in this manner. The memory will then be
351 unavailable for normal kernel use.
352
353source "drivers/pci/Kconfig"
354
7a758313 355source "drivers/pcmcia/Kconfig"
1da177e4
LT
356
357#config MATH_EMULATION
358# bool "Math emulation support (EXPERIMENTAL)"
359# depends on EXPERIMENTAL
360# help
361# At some point in the future, this will cause floating-point math
362# instructions to be emulated by the kernel on machines that lack a
363# floating-point math coprocessor. Thrill-seekers and chronically
364# sleep-deprived psychotic hacker types can say Y now, everyone else
365# should probably wait a while.
366
367menu "Power management options"
f4cb5700
JB
368
369config ARCH_SUSPEND_POSSIBLE
370 def_bool y
371 depends on !SMP
372
1da177e4
LT
373source kernel/power/Kconfig
374endmenu
375
376endmenu
377
378
379menu "Executable formats"
380
381source "fs/Kconfig.binfmt"
382
383endmenu
384
d5950b43
SR
385source "net/Kconfig"
386
1da177e4
LT
387source "drivers/Kconfig"
388
389source "fs/Kconfig"
390
391source "arch/frv/Kconfig.debug"
392
393source "security/Kconfig"
394
395source "crypto/Kconfig"
396
397source "lib/Kconfig"