Kconfig 11 KB

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