memcg: memory swap controller: fix limit check
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / mn10300 / Kconfig
blob9a9f433588792f5030796b2686193f4983c98ce9
2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
6 mainmenu "Linux Kernel Configuration"
8 config MN10300
9         def_bool y
11 config AM33
12         def_bool y
14 config MMU
15         def_bool y
17 config HIGHMEM
18         def_bool n
20 config NUMA
21         def_bool n
23 config UID16
24         def_bool y
26 config RWSEM_GENERIC_SPINLOCK
27         def_bool y
29 config RWSEM_XCHGADD_ALGORITHM
30         bool
32 config GENERIC_HARDIRQS_NO__DO_IRQ
33         def_bool y
35 config GENERIC_CALIBRATE_DELAY
36         def_bool y
38 config GENERIC_FIND_NEXT_BIT
39         def_bool y
41 config GENERIC_HWEIGHT
42         def_bool y
44 config GENERIC_TIME
45         def_bool y
47 config GENERIC_BUG
48         def_bool y
50 config QUICKLIST
51         def_bool y
53 config ARCH_HAS_ILOG2_U32
54         def_bool y
56 # Use the generic interrupt handling code in kernel/irq/
57 config GENERIC_HARDIRQS
58         def_bool y
60 config HOTPLUG_CPU
61         def_bool n
63 config HZ
64         int
65         default 1000
67 mainmenu "Matsushita MN10300/AM33 Kernel Configuration"
69 source "init/Kconfig"
71 source "kernel/Kconfig.freezer"
74 menu "Matsushita MN10300 system setup"
76 choice
77         prompt "Unit type"
78         default MN10300_UNIT_ASB2303
79         help
80           This option specifies board for which the kernel will be
81           compiled. It affects the external peripherals catered for.
83 config MN10300_UNIT_ASB2303
84         bool "ASB2303"
86 config MN10300_UNIT_ASB2305
87         bool "ASB2305"
89 endchoice
91 choice
92         prompt "Processor support"
93         default MN10300_PROC_MN103E010
94         help
95           This option specifies the processor for which the kernel will be
96           compiled. It affects the on-chip peripherals catered for.
98 config MN10300_PROC_MN103E010
99         bool "MN103E010"
100         depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
101         select MN10300_PROC_HAS_TTYSM0
102         select MN10300_PROC_HAS_TTYSM1
103         select MN10300_PROC_HAS_TTYSM2
105 endchoice
107 choice
108         prompt "Processor core support"
109         default MN10300_CPU_AM33V2
110         help
111           This option specifies the processor core for which the kernel will be
112           compiled. It affects the instruction set used.
114 config MN10300_CPU_AM33V2
115         bool "AM33v2"
117 endchoice
119 config FPU
120         bool "FPU present"
121         default y
122         depends on MN10300_PROC_MN103E010
124 choice
125         prompt "CPU Caching mode"
126         default MN10300_CACHE_WBACK
127         help
128           This option determines the caching mode for the kernel.
130           Write-Back caching mode involves the all reads and writes causing
131           the affected cacheline to be read into the cache first before being
132           operated upon. Memory is not then updated by a write until the cache
133           is filled and a cacheline needs to be displaced from the cache to
134           make room. Only at that point is it written back.
136           Write-Through caching only fetches cachelines from memory on a
137           read. Writes always get written directly to memory. If the affected
138           cacheline is also in cache, it will be updated too.
140           The final option is to turn of caching entirely.
142 config MN10300_CACHE_WBACK
143         bool "Write-Back"
145 config MN10300_CACHE_WTHRU
146         bool "Write-Through"
148 config MN10300_CACHE_DISABLED
149         bool "Disabled"
151 endchoice
153 menu "Memory layout options"
155 config KERNEL_RAM_BASE_ADDRESS
156         hex "Base address of kernel RAM"
157         default "0x90000000"
159 config INTERRUPT_VECTOR_BASE
160         hex "Base address of vector table"
161         default "0x90000000"
162         help
163           The base address of the vector table will be programmed into
164           the TBR register. It must be on 16MiB address boundary.
166 config KERNEL_TEXT_ADDRESS
167         hex "Base address of kernel"
168         default "0x90001000"
170 config KERNEL_ZIMAGE_BASE_ADDRESS
171         hex "Base address of compressed vmlinux image"
172         default "0x90700000"
174 endmenu
176 config PREEMPT
177         bool "Preemptible Kernel"
178         help
179           This option reduces the latency of the kernel when reacting to
180           real-time or interactive events by allowing a low priority process to
181           be preempted even if it is in kernel mode executing a system call.
182           This allows applications to run more reliably even when the system is
183           under load.
185           Say Y here if you are building a kernel for a desktop, embedded
186           or real-time system.  Say N if you are unsure.
188 config MN10300_CURRENT_IN_E2
189         bool "Hold current task address in E2 register"
190         default y
191         help
192           This option removes the E2/R2 register from the set available to gcc
193           for normal use and instead uses it to store the address of the
194           current process's task_struct whilst in the kernel.
196           This means the kernel doesn't need to calculate the address each time
197           "current" is used (take SP, AND with mask and dereference pointer
198           just to get the address), and instead can just use E2+offset
199           addressing each time.
201           This has no effect on userspace.
203 config MN10300_USING_JTAG
204         bool "Using JTAG to debug kernel"
205         default y
206         help
207           This options indicates that JTAG will be used to debug the kernel. It
208           suppresses the use of certain hardware debugging features, such as
209           single-stepping, which are taken over completely by the JTAG unit.
211 config MN10300_RTC
212         bool "Using MN10300 RTC"
213         depends on MN10300_PROC_MN103E010
214         default n
215         help
217           This option enables support for the RTC, thus enabling time to be
218           tracked, even when system is powered down. This is available on-chip
219           on the MN103E010.
221 config MN10300_WD_TIMER
222         bool "Using MN10300 watchdog timer"
223         default y
224         help
225           This options indicates that the watchdog timer will be used.
227 config PCI
228         bool "Use PCI"
229         depends on MN10300_UNIT_ASB2305
230         default y
231         help
232           Some systems (such as the ASB2305) have PCI onboard. If you have one
233           of these boards and you wish to use the PCI facilities, say Y here.
235           The PCI-HOWTO, available from
236           <http://www.tldp.org/docs.html#howto>, contains valuable
237           information about which PCI hardware does work under Linux and which
238           doesn't.
240 source "drivers/pci/Kconfig"
242 source "drivers/pcmcia/Kconfig"
244 menu "MN10300 internal serial options"
246 config MN10300_PROC_HAS_TTYSM0
247         bool
248         default n
250 config MN10300_PROC_HAS_TTYSM1
251         bool
252         default n
254 config MN10300_PROC_HAS_TTYSM2
255         bool
256         default n
258 config MN10300_TTYSM
259         bool "Support for ttySM serial ports"
260         depends on MN10300
261         default y
262         select SERIAL_CORE
263         help
264           This option enables support for the on-chip serial ports that the
265           MN10300 has available.
267 config MN10300_TTYSM_CONSOLE
268         bool "Support for console on ttySM serial ports"
269         depends on MN10300_TTYSM
270         select SERIAL_CORE_CONSOLE
271         help
272           This option enables support for a console on the on-chip serial ports
273           that the MN10300 has available.
276 # /dev/ttySM0
278 config MN10300_TTYSM0
279         bool "Enable SIF0 (/dev/ttySM0)"
280         depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
281         help
282           Enable access to SIF0 through /dev/ttySM0 or gdb-stub
284 choice
285         prompt "Select the timer to supply the clock for SIF0"
286         default MN10300_TTYSM0_TIMER8
287         depends on MN10300_TTYSM0
289 config MN10300_TTYSM0_TIMER8
290         bool "Use timer 8 (16-bit)"
292 config MN10300_TTYSM0_TIMER2
293         bool "Use timer 2 (8-bit)"
295 endchoice
298 # /dev/ttySM1
300 config MN10300_TTYSM1
301         bool "Enable SIF1 (/dev/ttySM1)"
302         depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
303         help
304           Enable access to SIF1 through /dev/ttySM1 or gdb-stub
306 choice
307         prompt "Select the timer to supply the clock for SIF1"
308         default MN10300_TTYSM0_TIMER9
309         depends on MN10300_TTYSM1
311 config MN10300_TTYSM1_TIMER9
312         bool "Use timer 9 (16-bit)"
314 config MN10300_TTYSM1_TIMER3
315         bool "Use timer 3 (8-bit)"
317 endchoice
320 # /dev/ttySM2
322 config MN10300_TTYSM2
323         bool "Enable SIF2 (/dev/ttySM2)"
324         depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
325         help
326           Enable access to SIF2 through /dev/ttySM2 or gdb-stub
328 choice
329         prompt "Select the timer to supply the clock for SIF2"
330         default MN10300_TTYSM0_TIMER10
331         depends on MN10300_TTYSM2
333 config MN10300_TTYSM2_TIMER10
334         bool "Use timer 10 (16-bit)"
336 endchoice
338 config MN10300_TTYSM2_CTS
339         bool "Enable the use of the CTS line /dev/ttySM2"
340         depends on MN10300_TTYSM2
342 endmenu
344 source "mm/Kconfig"
346 menu "Power management options"
347 source kernel/power/Kconfig
348 endmenu
350 endmenu
353 menu "Executable formats"
355 source "fs/Kconfig.binfmt"
357 endmenu
359 source "net/Kconfig"
361 source "drivers/Kconfig"
363 source "fs/Kconfig"
365 source "arch/mn10300/Kconfig.debug"
367 source "security/Kconfig"
369 source "crypto/Kconfig"
371 source "lib/Kconfig"
373 source "arch/mn10300/oprofile/Kconfig"