Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  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. select USE_GENERIC_SMP_HELPERS
  154. depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050
  155. ---help---
  156. This enables support for systems with more than one CPU. If you have
  157. a system with only one CPU, like most personal computers, say N. If
  158. you have a system with more than one CPU, say Y.
  159. If you say N here, the kernel will run on single and multiprocessor
  160. machines, but will use only one CPU of a multiprocessor machine. If
  161. you say Y here, the kernel will run on many, but not all,
  162. singleprocessor machines. On a singleprocessor machine, the kernel
  163. will run faster if you say N here.
  164. See also <file:Documentation/i386/IO-APIC.txt>,
  165. <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
  166. <http://www.tldp.org/docs.html#howto>.
  167. If you don't know what to do here, say N.
  168. config NR_CPUS
  169. int
  170. depends on SMP
  171. default "2"
  172. source "kernel/Kconfig.preempt"
  173. config MN10300_CURRENT_IN_E2
  174. bool "Hold current task address in E2 register"
  175. depends on !SMP
  176. default y
  177. help
  178. This option removes the E2/R2 register from the set available to gcc
  179. for normal use and instead uses it to store the address of the
  180. current process's task_struct whilst in the kernel.
  181. This means the kernel doesn't need to calculate the address each time
  182. "current" is used (take SP, AND with mask and dereference pointer
  183. just to get the address), and instead can just use E2+offset
  184. addressing each time.
  185. This has no effect on userspace.
  186. config MN10300_USING_JTAG
  187. bool "Using JTAG to debug kernel"
  188. default y
  189. help
  190. This options indicates that JTAG will be used to debug the kernel. It
  191. suppresses the use of certain hardware debugging features, such as
  192. single-stepping, which are taken over completely by the JTAG unit.
  193. source "kernel/Kconfig.hz"
  194. source "kernel/time/Kconfig"
  195. config MN10300_RTC
  196. bool "Using MN10300 RTC"
  197. depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
  198. select GENERIC_CMOS_UPDATE
  199. default n
  200. help
  201. This option enables support for the RTC, thus enabling time to be
  202. tracked, even when system is powered down. This is available on-chip
  203. on the MN103E010.
  204. config MN10300_WD_TIMER
  205. bool "Using MN10300 watchdog timer"
  206. default y
  207. help
  208. This options indicates that the watchdog timer will be used.
  209. config PCI
  210. bool "Use PCI"
  211. depends on MN10300_UNIT_ASB2305
  212. default y
  213. help
  214. Some systems (such as the ASB2305) have PCI onboard. If you have one
  215. of these boards and you wish to use the PCI facilities, say Y here.
  216. The PCI-HOWTO, available from
  217. <http://www.tldp.org/docs.html#howto>, contains valuable
  218. information about which PCI hardware does work under Linux and which
  219. doesn't.
  220. source "drivers/pci/Kconfig"
  221. source "drivers/pcmcia/Kconfig"
  222. menu "MN10300 internal serial options"
  223. config MN10300_PROC_HAS_TTYSM0
  224. bool
  225. default n
  226. config MN10300_PROC_HAS_TTYSM1
  227. bool
  228. default n
  229. config MN10300_PROC_HAS_TTYSM2
  230. bool
  231. default n
  232. config MN10300_TTYSM
  233. bool "Support for ttySM serial ports"
  234. depends on MN10300
  235. default y
  236. select SERIAL_CORE
  237. help
  238. This option enables support for the on-chip serial ports that the
  239. MN10300 has available.
  240. config MN10300_TTYSM_CONSOLE
  241. bool "Support for console on ttySM serial ports"
  242. depends on MN10300_TTYSM
  243. select SERIAL_CORE_CONSOLE
  244. help
  245. This option enables support for a console on the on-chip serial ports
  246. that the MN10300 has available.
  247. #
  248. # /dev/ttySM0
  249. #
  250. config MN10300_TTYSM0
  251. bool "Enable SIF0 (/dev/ttySM0)"
  252. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
  253. help
  254. Enable access to SIF0 through /dev/ttySM0 or gdb-stub
  255. choice
  256. prompt "Select the timer to supply the clock for SIF0"
  257. default MN10300_TTYSM0_TIMER8
  258. depends on MN10300_TTYSM0
  259. config MN10300_TTYSM0_TIMER8
  260. bool "Use timer 8 (16-bit)"
  261. config MN10300_TTYSM0_TIMER2
  262. bool "Use timer 2 (8-bit)"
  263. endchoice
  264. #
  265. # /dev/ttySM1
  266. #
  267. config MN10300_TTYSM1
  268. bool "Enable SIF1 (/dev/ttySM1)"
  269. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
  270. help
  271. Enable access to SIF1 through /dev/ttySM1 or gdb-stub
  272. choice
  273. prompt "Select the timer to supply the clock for SIF1"
  274. default MN10300_TTYSM1_TIMER12 \
  275. if !(AM33_2 || AM33_3)
  276. default MN10300_TTYSM1_TIMER9 \
  277. if AM33_2 || AM33_3
  278. depends on MN10300_TTYSM1
  279. config MN10300_TTYSM1_TIMER12
  280. bool "Use timer 12 (16-bit)"
  281. depends on !(AM33_2 || AM33_3)
  282. config MN10300_TTYSM1_TIMER9
  283. bool "Use timer 9 (16-bit)"
  284. depends on AM33_2 || AM33_3
  285. config MN10300_TTYSM1_TIMER3
  286. bool "Use timer 3 (8-bit)"
  287. depends on AM33_2 || AM33_3
  288. endchoice
  289. #
  290. # /dev/ttySM2
  291. #
  292. config MN10300_TTYSM2
  293. bool "Enable SIF2 (/dev/ttySM2)"
  294. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
  295. help
  296. Enable access to SIF2 through /dev/ttySM2 or gdb-stub
  297. choice
  298. prompt "Select the timer to supply the clock for SIF2"
  299. default MN10300_TTYSM2_TIMER3 \
  300. if !(AM33_2 || AM33_3)
  301. default MN10300_TTYSM2_TIMER10 \
  302. if AM33_2 || AM33_3
  303. depends on MN10300_TTYSM2
  304. config MN10300_TTYSM2_TIMER9
  305. bool "Use timer 9 (16-bit)"
  306. depends on !(AM33_2 || AM33_3)
  307. config MN10300_TTYSM2_TIMER1
  308. bool "Use timer 1 (8-bit)"
  309. depends on !(AM33_2 || AM33_3)
  310. config MN10300_TTYSM2_TIMER3
  311. bool "Use timer 3 (8-bit)"
  312. depends on !(AM33_2 || AM33_3)
  313. config MN10300_TTYSM2_TIMER10
  314. bool "Use timer 10 (16-bit)"
  315. depends on AM33_2 || AM33_3
  316. endchoice
  317. config MN10300_TTYSM2_CTS
  318. bool "Enable the use of the CTS line /dev/ttySM2"
  319. depends on MN10300_TTYSM2 && AM33_2
  320. endmenu
  321. menu "Interrupt request priority options"
  322. comment "[!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)"
  323. comment "____Non-maskable interrupt levels____"
  324. comment "The following must be set to a higher priority than local_irq_disable() and on-chip serial"
  325. config GDBSTUB_IRQ_LEVEL
  326. int "GDBSTUB interrupt priority"
  327. depends on GDBSTUB
  328. range 0 1 if LINUX_CLI_LEVEL = 2
  329. range 0 2 if LINUX_CLI_LEVEL = 3
  330. range 0 3 if LINUX_CLI_LEVEL = 4
  331. range 0 4 if LINUX_CLI_LEVEL = 5
  332. range 0 5 if LINUX_CLI_LEVEL = 6
  333. default 0
  334. comment "The following must be set to a higher priority than local_irq_disable()"
  335. config MN10300_SERIAL_IRQ_LEVEL
  336. int "MN10300 on-chip serial interrupt priority"
  337. depends on MN10300_TTYSM
  338. range 1 1 if LINUX_CLI_LEVEL = 2
  339. range 1 2 if LINUX_CLI_LEVEL = 3
  340. range 1 3 if LINUX_CLI_LEVEL = 4
  341. range 1 4 if LINUX_CLI_LEVEL = 5
  342. range 1 5 if LINUX_CLI_LEVEL = 6
  343. default 1
  344. comment "-"
  345. comment "____Maskable interrupt levels____"
  346. config LINUX_CLI_LEVEL
  347. int "The highest interrupt priority excluded by local_irq_disable() (2-6)"
  348. range 2 6
  349. default 2
  350. help
  351. local_irq_disable() doesn't actually disable maskable interrupts -
  352. what it does is restrict the levels of interrupt which are permitted
  353. (a lower level indicates a higher priority) by lowering the value in
  354. EPSW.IM from 7. Any interrupt is permitted for which the level is
  355. lower than EPSW.IM.
  356. Certain interrupts, such as GDBSTUB and virtual MN10300 on-chip
  357. serial DMA interrupts are allowed to interrupt normal disabled
  358. sections.
  359. comment "The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL"
  360. config TIMER_IRQ_LEVEL
  361. int "Kernel timer interrupt priority"
  362. range LINUX_CLI_LEVEL 6
  363. default 4
  364. config PCI_IRQ_LEVEL
  365. int "PCI interrupt priority"
  366. depends on PCI
  367. range LINUX_CLI_LEVEL 6
  368. default 5
  369. config ETHERNET_IRQ_LEVEL
  370. int "Ethernet interrupt priority"
  371. depends on SMC91X || SMC911X || SMSC911X
  372. range LINUX_CLI_LEVEL 6
  373. default 6
  374. config EXT_SERIAL_IRQ_LEVEL
  375. int "External serial port interrupt priority"
  376. depends on SERIAL_8250
  377. range LINUX_CLI_LEVEL 6
  378. default 6
  379. endmenu
  380. source "mm/Kconfig"
  381. menu "Power management options"
  382. source kernel/power/Kconfig
  383. endmenu
  384. endmenu
  385. menu "Executable formats"
  386. source "fs/Kconfig.binfmt"
  387. endmenu
  388. source "net/Kconfig"
  389. source "drivers/Kconfig"
  390. source "fs/Kconfig"
  391. source "arch/mn10300/Kconfig.debug"
  392. source "security/Kconfig"
  393. source "crypto/Kconfig"
  394. source "lib/Kconfig"