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 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. source "kernel/time/Kconfig"
  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"