Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see Documentation/kbuild/kconfig-language.txt.
  4. #
  5. mainmenu "Linux Kernel Configuration"
  6. config MN10300
  7. def_bool y
  8. select HAVE_OPROFILE
  9. config AM33_2
  10. def_bool n
  11. config AM33_3
  12. def_bool n
  13. config AM34_2
  14. def_bool n
  15. select MN10300_HAS_ATOMIC_OPS_UNIT
  16. select MN10300_HAS_CACHE_SNOOP
  17. config ERRATUM_NEED_TO_RELOAD_MMUCTR
  18. def_bool y if AM33_3 || AM34_2
  19. config MMU
  20. def_bool y
  21. config HIGHMEM
  22. def_bool n
  23. config NUMA
  24. def_bool n
  25. config UID16
  26. def_bool y
  27. config RWSEM_GENERIC_SPINLOCK
  28. def_bool y
  29. config RWSEM_XCHGADD_ALGORITHM
  30. bool
  31. config GENERIC_HARDIRQS_NO__DO_IRQ
  32. def_bool y
  33. config GENERIC_CALIBRATE_DELAY
  34. def_bool y
  35. config GENERIC_CMOS_UPDATE
  36. def_bool n
  37. config GENERIC_FIND_NEXT_BIT
  38. def_bool y
  39. config GENERIC_HWEIGHT
  40. def_bool y
  41. config GENERIC_TIME
  42. def_bool y
  43. config GENERIC_CLOCKEVENTS
  44. def_bool y
  45. config GENERIC_CLOCKEVENTS_BUILD
  46. def_bool y
  47. depends on GENERIC_CLOCKEVENTS
  48. config GENERIC_CLOCKEVENTS_BROADCAST
  49. bool
  50. config CEVT_MN10300
  51. def_bool y
  52. depends on GENERIC_CLOCKEVENTS
  53. config CSRC_MN10300
  54. def_bool y
  55. depends on GENERIC_TIME
  56. config GENERIC_BUG
  57. def_bool y
  58. config QUICKLIST
  59. def_bool y
  60. config ARCH_HAS_ILOG2_U32
  61. def_bool y
  62. # Use the generic interrupt handling code in kernel/irq/
  63. config GENERIC_HARDIRQS
  64. def_bool y
  65. config HOTPLUG_CPU
  66. def_bool n
  67. mainmenu "Matsushita MN10300/AM33 Kernel Configuration"
  68. source "init/Kconfig"
  69. source "kernel/Kconfig.freezer"
  70. menu "Matsushita MN10300 system setup"
  71. choice
  72. prompt "Unit type"
  73. default MN10300_UNIT_ASB2303
  74. help
  75. This option specifies board for which the kernel will be
  76. compiled. It affects the external peripherals catered for.
  77. config MN10300_UNIT_ASB2303
  78. bool "ASB2303"
  79. config MN10300_UNIT_ASB2305
  80. bool "ASB2305"
  81. config MN10300_UNIT_ASB2364
  82. bool "ASB2364"
  83. endchoice
  84. choice
  85. prompt "Processor support"
  86. default MN10300_PROC_MN103E010
  87. help
  88. This option specifies the processor for which the kernel will be
  89. compiled. It affects the on-chip peripherals catered for.
  90. config MN10300_PROC_MN103E010
  91. bool "MN103E010"
  92. depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
  93. select AM33_2
  94. select MN10300_PROC_HAS_TTYSM0
  95. select MN10300_PROC_HAS_TTYSM1
  96. select MN10300_PROC_HAS_TTYSM2
  97. config MN10300_PROC_MN2WS0050
  98. bool "MN2WS0050"
  99. depends on MN10300_UNIT_ASB2364
  100. select AM34_2
  101. select MN10300_PROC_HAS_TTYSM0
  102. select MN10300_PROC_HAS_TTYSM1
  103. select MN10300_PROC_HAS_TTYSM2
  104. endchoice
  105. config MN10300_HAS_ATOMIC_OPS_UNIT
  106. def_bool n
  107. help
  108. This should be enabled if the processor has an atomic ops unit
  109. capable of doing LL/SC equivalent operations.
  110. config FPU
  111. bool "FPU present"
  112. default y
  113. depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
  114. config LAZY_SAVE_FPU
  115. bool "Save FPU state lazily"
  116. default y
  117. depends on FPU && !SMP
  118. help
  119. Enable this to be lazy in the saving of the FPU state to the owning
  120. task's thread struct. This is useful if most tasks on the system
  121. don't use the FPU as only those tasks that use it will pass it
  122. between them, and the state needn't be saved for a task that isn't
  123. using it.
  124. This can't be so easily used on SMP as the process that owns the FPU
  125. state on a CPU may be currently running on another CPU, so for the
  126. moment, it is disabled.
  127. source "arch/mn10300/mm/Kconfig.cache"
  128. config MN10300_TLB_USE_PIDR
  129. def_bool y
  130. menu "Memory layout options"
  131. config KERNEL_RAM_BASE_ADDRESS
  132. hex "Base address of kernel RAM"
  133. default "0x90000000"
  134. config INTERRUPT_VECTOR_BASE
  135. hex "Base address of vector table"
  136. default "0x90000000"
  137. help
  138. The base address of the vector table will be programmed into
  139. the TBR register. It must be on 16MiB address boundary.
  140. config KERNEL_TEXT_ADDRESS
  141. hex "Base address of kernel"
  142. default "0x90001000"
  143. config KERNEL_ZIMAGE_BASE_ADDRESS
  144. hex "Base address of compressed vmlinux image"
  145. default "0x50700000"
  146. config BOOT_STACK_OFFSET
  147. hex
  148. default "0xF00" if SMP
  149. default "0xFF0" if !SMP
  150. config BOOT_STACK_SIZE
  151. hex
  152. depends on SMP
  153. default "0x100"
  154. endmenu
  155. config SMP
  156. bool "Symmetric multi-processing support"
  157. default y
  158. depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050
  159. ---help---
  160. This enables support for systems with more than one CPU. If you have
  161. a system with only one CPU, like most personal computers, say N. If
  162. you have a system with more than one CPU, say Y.
  163. If you say N here, the kernel will run on single and multiprocessor
  164. machines, but will use only one CPU of a multiprocessor machine. If
  165. you say Y here, the kernel will run on many, but not all,
  166. singleprocessor machines. On a singleprocessor machine, the kernel
  167. will run faster if you say N here.
  168. See also <file:Documentation/i386/IO-APIC.txt>,
  169. <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
  170. <http://www.tldp.org/docs.html#howto>.
  171. If you don't know what to do here, say N.
  172. config NR_CPUS
  173. int
  174. depends on SMP
  175. default "2"
  176. config USE_GENERIC_SMP_HELPERS
  177. bool
  178. depends on SMP
  179. default y
  180. source "kernel/Kconfig.preempt"
  181. config MN10300_CURRENT_IN_E2
  182. bool "Hold current task address in E2 register"
  183. depends on !SMP
  184. default y
  185. help
  186. This option removes the E2/R2 register from the set available to gcc
  187. for normal use and instead uses it to store the address of the
  188. current process's task_struct whilst in the kernel.
  189. This means the kernel doesn't need to calculate the address each time
  190. "current" is used (take SP, AND with mask and dereference pointer
  191. just to get the address), and instead can just use E2+offset
  192. addressing each time.
  193. This has no effect on userspace.
  194. config MN10300_USING_JTAG
  195. bool "Using JTAG to debug kernel"
  196. default y
  197. help
  198. This options indicates that JTAG will be used to debug the kernel. It
  199. suppresses the use of certain hardware debugging features, such as
  200. single-stepping, which are taken over completely by the JTAG unit.
  201. source "kernel/Kconfig.hz"
  202. source "kernel/time/Kconfig"
  203. config MN10300_RTC
  204. bool "Using MN10300 RTC"
  205. depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
  206. select GENERIC_CMOS_UPDATE
  207. default n
  208. help
  209. This option enables support for the RTC, thus enabling time to be
  210. tracked, even when system is powered down. This is available on-chip
  211. on the MN103E010.
  212. config MN10300_WD_TIMER
  213. bool "Using MN10300 watchdog timer"
  214. default y
  215. help
  216. This options indicates that the watchdog timer will be used.
  217. config PCI
  218. bool "Use PCI"
  219. depends on MN10300_UNIT_ASB2305
  220. default y
  221. help
  222. Some systems (such as the ASB2305) have PCI onboard. If you have one
  223. of these boards and you wish to use the PCI facilities, say Y here.
  224. The PCI-HOWTO, available from
  225. <http://www.tldp.org/docs.html#howto>, contains valuable
  226. information about which PCI hardware does work under Linux and which
  227. doesn't.
  228. source "drivers/pci/Kconfig"
  229. source "drivers/pcmcia/Kconfig"
  230. menu "MN10300 internal serial options"
  231. config MN10300_PROC_HAS_TTYSM0
  232. bool
  233. default n
  234. config MN10300_PROC_HAS_TTYSM1
  235. bool
  236. default n
  237. config MN10300_PROC_HAS_TTYSM2
  238. bool
  239. default n
  240. config MN10300_TTYSM
  241. bool "Support for ttySM serial ports"
  242. depends on MN10300
  243. default y
  244. select SERIAL_CORE
  245. help
  246. This option enables support for the on-chip serial ports that the
  247. MN10300 has available.
  248. config MN10300_TTYSM_CONSOLE
  249. bool "Support for console on ttySM serial ports"
  250. depends on MN10300_TTYSM
  251. select SERIAL_CORE_CONSOLE
  252. help
  253. This option enables support for a console on the on-chip serial ports
  254. that the MN10300 has available.
  255. #
  256. # /dev/ttySM0
  257. #
  258. config MN10300_TTYSM0
  259. bool "Enable SIF0 (/dev/ttySM0)"
  260. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
  261. help
  262. Enable access to SIF0 through /dev/ttySM0 or gdb-stub
  263. choice
  264. prompt "Select the timer to supply the clock for SIF0"
  265. default MN10300_TTYSM0_TIMER8
  266. depends on MN10300_TTYSM0
  267. config MN10300_TTYSM0_TIMER8
  268. bool "Use timer 8 (16-bit)"
  269. config MN10300_TTYSM0_TIMER2
  270. bool "Use timer 2 (8-bit)"
  271. endchoice
  272. #
  273. # /dev/ttySM1
  274. #
  275. config MN10300_TTYSM1
  276. bool "Enable SIF1 (/dev/ttySM1)"
  277. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
  278. help
  279. Enable access to SIF1 through /dev/ttySM1 or gdb-stub
  280. choice
  281. prompt "Select the timer to supply the clock for SIF1"
  282. default MN10300_TTYSM1_TIMER12 \
  283. if !(AM33_2 || AM33_3)
  284. default MN10300_TTYSM1_TIMER9 \
  285. if AM33_2 || AM33_3
  286. depends on MN10300_TTYSM1
  287. config MN10300_TTYSM1_TIMER12
  288. bool "Use timer 12 (16-bit)"
  289. depends on !(AM33_2 || AM33_3)
  290. config MN10300_TTYSM1_TIMER9
  291. bool "Use timer 9 (16-bit)"
  292. depends on AM33_2 || AM33_3
  293. config MN10300_TTYSM1_TIMER3
  294. bool "Use timer 3 (8-bit)"
  295. depends on AM33_2 || AM33_3
  296. endchoice
  297. #
  298. # /dev/ttySM2
  299. #
  300. config MN10300_TTYSM2
  301. bool "Enable SIF2 (/dev/ttySM2)"
  302. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
  303. help
  304. Enable access to SIF2 through /dev/ttySM2 or gdb-stub
  305. choice
  306. prompt "Select the timer to supply the clock for SIF2"
  307. default MN10300_TTYSM2_TIMER3 \
  308. if !(AM33_2 || AM33_3)
  309. default MN10300_TTYSM2_TIMER10 \
  310. if AM33_2 || AM33_3
  311. depends on MN10300_TTYSM2
  312. config MN10300_TTYSM2_TIMER9
  313. bool "Use timer 9 (16-bit)"
  314. depends on !(AM33_2 || AM33_3)
  315. config MN10300_TTYSM2_TIMER1
  316. bool "Use timer 1 (8-bit)"
  317. depends on !(AM33_2 || AM33_3)
  318. config MN10300_TTYSM2_TIMER3
  319. bool "Use timer 3 (8-bit)"
  320. depends on !(AM33_2 || AM33_3)
  321. config MN10300_TTYSM2_TIMER10
  322. bool "Use timer 10 (16-bit)"
  323. depends on AM33_2 || AM33_3
  324. endchoice
  325. config MN10300_TTYSM2_CTS
  326. bool "Enable the use of the CTS line /dev/ttySM2"
  327. depends on MN10300_TTYSM2 && AM33_2
  328. endmenu
  329. menu "Interrupt request priority options"
  330. comment "[!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)"
  331. comment "____Non-maskable interrupt levels____"
  332. comment "The following must be set to a higher priority than local_irq_disable() and on-chip serial"
  333. config GDBSTUB_IRQ_LEVEL
  334. int "GDBSTUB interrupt priority"
  335. depends on GDBSTUB
  336. range 0 1 if LINUX_CLI_LEVEL = 2
  337. range 0 2 if LINUX_CLI_LEVEL = 3
  338. range 0 3 if LINUX_CLI_LEVEL = 4
  339. range 0 4 if LINUX_CLI_LEVEL = 5
  340. range 0 5 if LINUX_CLI_LEVEL = 6
  341. default 0
  342. comment "The following must be set to a higher priority than local_irq_disable()"
  343. config MN10300_SERIAL_IRQ_LEVEL
  344. int "MN10300 on-chip serial interrupt priority"
  345. depends on MN10300_TTYSM
  346. range 1 1 if LINUX_CLI_LEVEL = 2
  347. range 1 2 if LINUX_CLI_LEVEL = 3
  348. range 1 3 if LINUX_CLI_LEVEL = 4
  349. range 1 4 if LINUX_CLI_LEVEL = 5
  350. range 1 5 if LINUX_CLI_LEVEL = 6
  351. default 1
  352. comment "-"
  353. comment "____Maskable interrupt levels____"
  354. config LINUX_CLI_LEVEL
  355. int "The highest interrupt priority excluded by local_irq_disable() (2-6)"
  356. range 2 6
  357. default 2
  358. help
  359. local_irq_disable() doesn't actually disable maskable interrupts -
  360. what it does is restrict the levels of interrupt which are permitted
  361. (a lower level indicates a higher priority) by lowering the value in
  362. EPSW.IM from 7. Any interrupt is permitted for which the level is
  363. lower than EPSW.IM.
  364. Certain interrupts, such as GDBSTUB and virtual MN10300 on-chip
  365. serial DMA interrupts are allowed to interrupt normal disabled
  366. sections.
  367. comment "The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL"
  368. config TIMER_IRQ_LEVEL
  369. int "Kernel timer interrupt priority"
  370. range LINUX_CLI_LEVEL 6
  371. default 4
  372. config PCI_IRQ_LEVEL
  373. int "PCI interrupt priority"
  374. depends on PCI
  375. range LINUX_CLI_LEVEL 6
  376. default 5
  377. config ETHERNET_IRQ_LEVEL
  378. int "Ethernet interrupt priority"
  379. depends on SMC91X || SMC911X || SMSC911X
  380. range LINUX_CLI_LEVEL 6
  381. default 6
  382. config EXT_SERIAL_IRQ_LEVEL
  383. int "External serial port interrupt priority"
  384. depends on SERIAL_8250
  385. range LINUX_CLI_LEVEL 6
  386. default 6
  387. endmenu
  388. source "mm/Kconfig"
  389. menu "Power management options"
  390. source kernel/power/Kconfig
  391. endmenu
  392. endmenu
  393. menu "Executable formats"
  394. source "fs/Kconfig.binfmt"
  395. endmenu
  396. source "net/Kconfig"
  397. source "drivers/Kconfig"
  398. source "fs/Kconfig"
  399. source "arch/mn10300/Kconfig.debug"
  400. source "security/Kconfig"
  401. source "crypto/Kconfig"
  402. source "lib/Kconfig"