Kconfig 11 KB

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