Kconfig 11 KB

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