Kconfig 12 KB

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