Kconfig 11 KB

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