Kconfig 12 KB

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