Kconfig 11 KB

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