Kconfig 11 KB

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