Kconfig 11 KB

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