Kconfig 11 KB

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