Kconfig 12 KB

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