Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. config MMU
  2. bool
  3. default y
  4. config ZONE_DMA
  5. bool
  6. default y
  7. config RWSEM_GENERIC_SPINLOCK
  8. bool
  9. default y
  10. config RWSEM_XCHGADD_ALGORITHM
  11. bool
  12. config ARCH_HAS_ILOG2_U32
  13. bool
  14. default n
  15. config ARCH_HAS_ILOG2_U64
  16. bool
  17. default n
  18. config GENERIC_HWEIGHT
  19. bool
  20. default y
  21. config GENERIC_CALIBRATE_DELAY
  22. bool
  23. default y
  24. config NO_IOPORT_MAP
  25. def_bool y
  26. config FORCE_MAX_ZONEORDER
  27. int
  28. default 6
  29. config CRIS
  30. bool
  31. default y
  32. select HAVE_IDE
  33. select GENERIC_ATOMIC64
  34. select HAVE_UID16
  35. select VIRT_TO_BUS
  36. select ARCH_WANT_IPC_PARSE_VERSION
  37. select GENERIC_IRQ_SHOW
  38. select GENERIC_IOMAP
  39. select GENERIC_SMP_IDLE_THREAD if ETRAX_ARCH_V32
  40. select GENERIC_CMOS_UPDATE
  41. select MODULES_USE_ELF_RELA
  42. select CLONE_BACKWARDS2
  43. select OLD_SIGSUSPEND
  44. select OLD_SIGACTION
  45. config HZ
  46. int
  47. default 100
  48. source "init/Kconfig"
  49. source "kernel/Kconfig.freezer"
  50. menu "General setup"
  51. source "fs/Kconfig.binfmt"
  52. config ETRAX_CMDLINE
  53. string "Kernel command line"
  54. default "root=/dev/mtdblock3"
  55. help
  56. Pass additional commands to the kernel.
  57. config ETRAX_WATCHDOG
  58. bool "Enable ETRAX watchdog"
  59. help
  60. Enable the built-in watchdog timer support on ETRAX based embedded
  61. network computers.
  62. config ETRAX_WATCHDOG_NICE_DOGGY
  63. bool "Disable watchdog during Oops printouts"
  64. depends on ETRAX_WATCHDOG
  65. help
  66. By enabling this you make sure that the watchdog does not bite while
  67. printing oopses. Recommended for development systems but not for
  68. production releases.
  69. config ETRAX_FAST_TIMER
  70. bool "Enable ETRAX fast timer API"
  71. help
  72. This options enables the API to a fast timer implementation using
  73. timer1 to get sub jiffie resolution timers (primarily one-shot
  74. timers).
  75. This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
  76. config ETRAX_KMALLOCED_MODULES
  77. bool "Enable module allocation with kmalloc"
  78. help
  79. Enable module allocation with kmalloc instead of vmalloc.
  80. source "kernel/Kconfig.preempt"
  81. source mm/Kconfig
  82. endmenu
  83. menu "Hardware setup"
  84. choice
  85. prompt "Processor type"
  86. default ETRAX100LX
  87. config ETRAX100LX
  88. bool "ETRAX-100LX-v1"
  89. select ARCH_USES_GETTIMEOFFSET
  90. help
  91. Support version 1 of the ETRAX 100LX.
  92. config ETRAX100LX_V2
  93. bool "ETRAX-100LX-v2"
  94. select ARCH_USES_GETTIMEOFFSET
  95. help
  96. Support version 2 of the ETRAX 100LX.
  97. config ETRAXFS
  98. bool "ETRAX-FS-V32"
  99. help
  100. Support CRIS V32.
  101. config CRIS_MACH_ARTPEC3
  102. bool "ARTPEC-3"
  103. help
  104. Support Axis ARTPEC-3.
  105. endchoice
  106. config ETRAX_ARCH_V10
  107. bool
  108. default y if ETRAX100LX || ETRAX100LX_V2
  109. default n if !(ETRAX100LX || ETRAX100LX_V2)
  110. select TTY
  111. config ETRAX_ARCH_V32
  112. bool
  113. default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
  114. default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
  115. config ETRAX_DRAM_SIZE
  116. int "DRAM size (dec, in MB)"
  117. default "8"
  118. help
  119. Size of DRAM (decimal in MB) typically 2, 8 or 16.
  120. config ETRAX_VMEM_SIZE
  121. int "Video memory size (dec, in MB)"
  122. depends on ETRAX_ARCH_V32 && !ETRAXFS
  123. default 8 if !ETRAXFS
  124. help
  125. Size of Video accessible memory (decimal, in MB).
  126. config ETRAX_FLASH_BUSWIDTH
  127. int "Buswidth of NOR flash in bytes"
  128. default "2"
  129. help
  130. Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
  131. config ETRAX_FLASH1_SIZE
  132. int "FLASH1 size (dec, in MB. 0 = Unknown)"
  133. default "0"
  134. choice
  135. prompt "Product debug-port"
  136. default ETRAX_DEBUG_PORT0
  137. config ETRAX_DEBUG_PORT0
  138. bool "Serial-0"
  139. help
  140. Choose a serial port for the ETRAX debug console. Default to
  141. port 0.
  142. config ETRAX_DEBUG_PORT1
  143. bool "Serial-1"
  144. help
  145. Use serial port 1 for the console.
  146. config ETRAX_DEBUG_PORT2
  147. bool "Serial-2"
  148. help
  149. Use serial port 2 for the console.
  150. config ETRAX_DEBUG_PORT3
  151. bool "Serial-3"
  152. help
  153. Use serial port 3 for the console.
  154. config ETRAX_DEBUG_PORT_NULL
  155. bool "disabled"
  156. help
  157. Disable serial-port debugging.
  158. endchoice
  159. choice
  160. prompt "Kernel GDB port"
  161. depends on ETRAX_KGDB
  162. default ETRAX_KGDB_PORT0
  163. help
  164. Choose a serial port for kernel debugging. NOTE: This port should
  165. not be enabled under Drivers for built-in interfaces (as it has its
  166. own initialization code) and should not be the same as the debug port.
  167. config ETRAX_KGDB_PORT0
  168. bool "Serial-0"
  169. help
  170. Use serial port 0 for kernel debugging.
  171. config ETRAX_KGDB_PORT1
  172. bool "Serial-1"
  173. help
  174. Use serial port 1 for kernel debugging.
  175. config ETRAX_KGDB_PORT2
  176. bool "Serial-2"
  177. help
  178. Use serial port 2 for kernel debugging.
  179. config ETRAX_KGDB_PORT3
  180. bool "Serial-3"
  181. help
  182. Use serial port 3 for kernel debugging.
  183. endchoice
  184. source arch/cris/arch-v10/Kconfig
  185. source arch/cris/arch-v32/Kconfig
  186. endmenu
  187. source "net/Kconfig"
  188. # bring in ETRAX built-in drivers
  189. menu "Drivers for built-in interfaces"
  190. source arch/cris/arch-v10/drivers/Kconfig
  191. source arch/cris/arch-v32/drivers/Kconfig
  192. config ETRAX_AXISFLASHMAP
  193. bool "Axis flash-map support"
  194. select MTD
  195. select MTD_CFI
  196. select MTD_CFI_AMDSTD
  197. select MTD_JEDECPROBE if ETRAX_ARCH_V32
  198. select MTD_BLOCK
  199. select MTD_COMPLEX_MAPPINGS
  200. help
  201. This option enables MTD mapping of flash devices. Needed to use
  202. flash memories. If unsure, say Y.
  203. config ETRAX_SYNCHRONOUS_SERIAL
  204. bool "Synchronous serial-port support"
  205. help
  206. Select this to enable the synchronous serial port driver.
  207. config ETRAX_SYNCHRONOUS_SERIAL_PORT0
  208. bool "Synchronous serial port 0 enabled"
  209. depends on ETRAX_SYNCHRONOUS_SERIAL
  210. help
  211. Enabled synchronous serial port 0.
  212. config ETRAX_SYNCHRONOUS_SERIAL0_DMA
  213. bool "Enable DMA on synchronous serial port 0."
  214. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
  215. help
  216. A synchronous serial port can run in manual or DMA mode.
  217. Selecting this option will make it run in DMA mode.
  218. config ETRAX_SYNCHRONOUS_SERIAL_PORT1
  219. bool "Synchronous serial port 1 enabled"
  220. depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
  221. help
  222. Enabled synchronous serial port 1.
  223. config ETRAX_SYNCHRONOUS_SERIAL1_DMA
  224. bool "Enable DMA on synchronous serial port 1."
  225. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
  226. help
  227. A synchronous serial port can run in manual or DMA mode.
  228. Selecting this option will make it run in DMA mode.
  229. choice
  230. prompt "Network LED behavior"
  231. depends on ETRAX_ETHERNET
  232. default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
  233. config ETRAX_NETWORK_LED_ON_WHEN_LINK
  234. bool "LED_on_when_link"
  235. help
  236. Selecting LED_on_when_link will light the LED when there is a
  237. connection and will flash off when there is activity.
  238. Selecting LED_on_when_activity will light the LED only when
  239. there is activity.
  240. This setting will also affect the behaviour of other activity LEDs
  241. e.g. Bluetooth.
  242. config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
  243. bool "LED_on_when_activity"
  244. help
  245. Selecting LED_on_when_link will light the LED when there is a
  246. connection and will flash off when there is activity.
  247. Selecting LED_on_when_activity will light the LED only when
  248. there is activity.
  249. This setting will also affect the behaviour of other activity LEDs
  250. e.g. Bluetooth.
  251. endchoice
  252. choice
  253. prompt "Ser0 DMA out channel"
  254. depends on ETRAX_SERIAL_PORT0
  255. default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
  256. default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
  257. config ETRAX_SERIAL_PORT0_NO_DMA_OUT
  258. bool "Ser0 uses no DMA for output"
  259. help
  260. Do not use DMA for ser0 output.
  261. config ETRAX_SERIAL_PORT0_DMA6_OUT
  262. bool "Ser0 uses DMA6 for output"
  263. depends on ETRAXFS
  264. help
  265. Enables the DMA6 output channel for ser0 (ttyS0).
  266. If you do not enable DMA, an interrupt for each character will be
  267. used when transmitting data.
  268. Normally you want to use DMA, unless you use the DMA channel for
  269. something else.
  270. config ETRAX_SERIAL_PORT0_DMA0_OUT
  271. bool "Ser0 uses DMA0 for output"
  272. depends on CRIS_MACH_ARTPEC3
  273. help
  274. Enables the DMA0 output channel for ser0 (ttyS0).
  275. If you do not enable DMA, an interrupt for each character will be
  276. used when transmitting data.
  277. Normally you want to use DMA, unless you use the DMA channel for
  278. something else.
  279. endchoice
  280. choice
  281. prompt "Ser0 DMA in channel "
  282. depends on ETRAX_SERIAL_PORT0
  283. default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
  284. default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
  285. help
  286. What DMA channel to use for ser0.
  287. config ETRAX_SERIAL_PORT0_NO_DMA_IN
  288. bool "Ser0 uses no DMA for input"
  289. help
  290. Do not use DMA for ser0 input.
  291. config ETRAX_SERIAL_PORT0_DMA7_IN
  292. bool "Ser0 uses DMA7 for input"
  293. depends on ETRAXFS
  294. help
  295. Enables the DMA7 input channel for ser0 (ttyS0).
  296. If you do not enable DMA, an interrupt for each character will be
  297. used when receiving data.
  298. Normally you want to use DMA, unless you use the DMA channel for
  299. something else.
  300. config ETRAX_SERIAL_PORT0_DMA1_IN
  301. bool "Ser0 uses DMA1 for input"
  302. depends on CRIS_MACH_ARTPEC3
  303. help
  304. Enables the DMA1 input channel for ser0 (ttyS0).
  305. If you do not enable DMA, an interrupt for each character will be
  306. used when receiving data.
  307. Normally you want to use DMA, unless you use the DMA channel for
  308. something else.
  309. endchoice
  310. choice
  311. prompt "Ser1 DMA in channel "
  312. depends on ETRAX_SERIAL_PORT1
  313. default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
  314. default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
  315. help
  316. What DMA channel to use for ser1.
  317. config ETRAX_SERIAL_PORT1_NO_DMA_IN
  318. bool "Ser1 uses no DMA for input"
  319. help
  320. Do not use DMA for ser1 input.
  321. config ETRAX_SERIAL_PORT1_DMA5_IN
  322. bool "Ser1 uses DMA5 for input"
  323. depends on ETRAX_ARCH_V32
  324. help
  325. Enables the DMA5 input channel for ser1 (ttyS1).
  326. If you do not enable DMA, an interrupt for each character will be
  327. used when receiving data.
  328. Normally you want this on, unless you use the DMA channel for
  329. something else.
  330. config ETRAX_SERIAL_PORT1_DMA9_IN
  331. depends on ETRAX_ARCH_V10
  332. bool "Ser1 uses DMA9 for input"
  333. endchoice
  334. choice
  335. prompt "Ser1 DMA out channel"
  336. depends on ETRAX_SERIAL_PORT1
  337. default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
  338. default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
  339. help
  340. What DMA channel to use for ser1.
  341. config ETRAX_SERIAL_PORT1_NO_DMA_OUT
  342. bool "Ser1 uses no DMA for output"
  343. help
  344. Do not use DMA for ser1 output.
  345. config ETRAX_SERIAL_PORT1_DMA8_OUT
  346. depends on ETRAX_ARCH_V10
  347. bool "Ser1 uses DMA8 for output"
  348. config ETRAX_SERIAL_PORT1_DMA4_OUT
  349. depends on ETRAX_ARCH_V32
  350. bool "Ser1 uses DMA4 for output"
  351. help
  352. Enables the DMA4 output channel for ser1 (ttyS1).
  353. If you do not enable DMA, an interrupt for each character will be
  354. used when transmitting data.
  355. Normally you want this on, unless you use the DMA channel for
  356. something else.
  357. endchoice
  358. choice
  359. prompt "Ser2 DMA out channel"
  360. depends on ETRAX_SERIAL_PORT2
  361. default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
  362. default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
  363. config ETRAX_SERIAL_PORT2_NO_DMA_OUT
  364. bool "Ser2 uses no DMA for output"
  365. help
  366. Do not use DMA for ser2 output.
  367. config ETRAX_SERIAL_PORT2_DMA2_OUT
  368. bool "Ser2 uses DMA2 for output"
  369. depends on ETRAXFS || ETRAX_ARCH_V10
  370. help
  371. Enables the DMA2 output channel for ser2 (ttyS2).
  372. If you do not enable DMA, an interrupt for each character will be
  373. used when transmitting data.
  374. Normally you want to use DMA, unless you use the DMA channel for
  375. something else.
  376. config ETRAX_SERIAL_PORT2_DMA6_OUT
  377. bool "Ser2 uses DMA6 for output"
  378. depends on CRIS_MACH_ARTPEC3
  379. help
  380. Enables the DMA6 output channel for ser2 (ttyS2).
  381. If you do not enable DMA, an interrupt for each character will be
  382. used when transmitting data.
  383. Normally you want to use DMA, unless you use the DMA channel for
  384. something else.
  385. endchoice
  386. choice
  387. prompt "Ser2 DMA in channel"
  388. depends on ETRAX_SERIAL_PORT2
  389. default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
  390. default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
  391. help
  392. What DMA channel to use for ser2.
  393. config ETRAX_SERIAL_PORT2_NO_DMA_IN
  394. bool "Ser2 uses no DMA for input"
  395. help
  396. Do not use DMA for ser2 input.
  397. config ETRAX_SERIAL_PORT2_DMA3_IN
  398. bool "Ser2 uses DMA3 for input"
  399. depends on ETRAXFS || ETRAX_ARCH_V10
  400. help
  401. Enables the DMA3 input channel for ser2 (ttyS2).
  402. If you do not enable DMA, an interrupt for each character will be
  403. used when receiving data.
  404. Normally you want to use DMA, unless you use the DMA channel for
  405. something else.
  406. config ETRAX_SERIAL_PORT2_DMA7_IN
  407. bool "Ser2 uses DMA7 for input"
  408. depends on CRIS_MACH_ARTPEC3
  409. help
  410. Enables the DMA7 input channel for ser2 (ttyS2).
  411. If you do not enable DMA, an interrupt for each character will be
  412. used when receiving data.
  413. Normally you want to use DMA, unless you use the DMA channel for
  414. something else.
  415. endchoice
  416. choice
  417. prompt "Ser3 DMA in channel"
  418. depends on ETRAX_SERIAL_PORT3
  419. default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
  420. default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
  421. help
  422. What DMA channel to use for ser3.
  423. config ETRAX_SERIAL_PORT3_NO_DMA_IN
  424. bool "Ser3 uses no DMA for input"
  425. help
  426. Do not use DMA for ser3 input.
  427. config ETRAX_SERIAL_PORT3_DMA5_IN
  428. depends on ETRAX_ARCH_V10
  429. bool "DMA 5"
  430. endchoice
  431. choice
  432. prompt "Ser3 DMA out channel"
  433. depends on ETRAX_SERIAL_PORT3
  434. default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
  435. default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
  436. config ETRAX_SERIAL_PORT3_NO_DMA_OUT
  437. bool "Ser3 uses no DMA for output"
  438. help
  439. Do not use DMA for ser3 output.
  440. config ETRAX_SERIAL_PORT3_DMA4_OUT
  441. depends on ETRAX_ARCH_V10
  442. bool "DMA 4"
  443. endchoice
  444. endmenu
  445. source "drivers/Kconfig"
  446. source "fs/Kconfig"
  447. source "arch/cris/Kconfig.debug"
  448. source "security/Kconfig"
  449. source "crypto/Kconfig"
  450. source "lib/Kconfig"