Kconfig 14 KB

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