Kconfig 11 KB

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