Kconfig 11 KB

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