Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  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. config ETRAX_RTC
  202. bool "Real Time Clock support"
  203. depends on ETRAX_I2C
  204. help
  205. Enables drivers for the Real-Time Clock battery-backed chips on
  206. some products. The kernel reads the time when booting, and
  207. the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a
  208. rtc_time struct (see <file:include/asm-cris/rtc.h>) on the /dev/rtc
  209. device. You can check the time with cat /proc/rtc, but
  210. normal time reading should be done using libc function time and
  211. friends.
  212. choice
  213. prompt "RTC chip"
  214. depends on ETRAX_RTC
  215. default ETRAX_PCF8563 if ETRAX_ARCH_V32
  216. default ETRAX_DS1302 if ETRAX_ARCH_V10
  217. config ETRAX_DS1302
  218. depends on ETRAX_ARCH_V10
  219. bool "DS1302"
  220. help
  221. Enables the driver for the DS1302 Real-Time Clock battery-backed
  222. chip on some products.
  223. config ETRAX_PCF8563
  224. bool "PCF8563"
  225. help
  226. Enables the driver for the PCF8563 Real-Time Clock battery-backed
  227. chip on some products.
  228. endchoice
  229. config ETRAX_SYNCHRONOUS_SERIAL
  230. bool "Synchronous serial-port support"
  231. help
  232. Select this to enable the synchronous serial port driver.
  233. config ETRAX_SYNCHRONOUS_SERIAL_PORT0
  234. bool "Synchronous serial port 0 enabled"
  235. depends on ETRAX_SYNCHRONOUS_SERIAL
  236. help
  237. Enabled synchronous serial port 0.
  238. config ETRAX_SYNCHRONOUS_SERIAL0_DMA
  239. bool "Enable DMA on synchronous serial port 0."
  240. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
  241. help
  242. A synchronous serial port can run in manual or DMA mode.
  243. Selecting this option will make it run in DMA mode.
  244. config ETRAX_SYNCHRONOUS_SERIAL_PORT1
  245. bool "Synchronous serial port 1 enabled"
  246. depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
  247. help
  248. Enabled synchronous serial port 1.
  249. config ETRAX_SYNCHRONOUS_SERIAL1_DMA
  250. bool "Enable DMA on synchronous serial port 1."
  251. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
  252. help
  253. A synchronous serial port can run in manual or DMA mode.
  254. Selecting this option will make it run in DMA mode.
  255. choice
  256. prompt "Network LED behavior"
  257. depends on ETRAX_ETHERNET
  258. default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
  259. config ETRAX_NETWORK_LED_ON_WHEN_LINK
  260. bool "LED_on_when_link"
  261. help
  262. Selecting LED_on_when_link will light the LED when there is a
  263. connection and will flash off when there is activity.
  264. Selecting LED_on_when_activity will light the LED only when
  265. there is activity.
  266. This setting will also affect the behaviour of other activity LEDs
  267. e.g. Bluetooth.
  268. config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
  269. bool "LED_on_when_activity"
  270. help
  271. Selecting LED_on_when_link will light the LED when there is a
  272. connection and will flash off when there is activity.
  273. Selecting LED_on_when_activity will light the LED only when
  274. there is activity.
  275. This setting will also affect the behaviour of other activity LEDs
  276. e.g. Bluetooth.
  277. endchoice
  278. choice
  279. prompt "Ser0 DMA out channel"
  280. depends on ETRAX_SERIAL_PORT0
  281. default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
  282. default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
  283. config ETRAX_SERIAL_PORT0_NO_DMA_OUT
  284. bool "Ser0 uses no DMA for output"
  285. help
  286. Do not use DMA for ser0 output.
  287. config ETRAX_SERIAL_PORT0_DMA6_OUT
  288. bool "Ser0 uses DMA6 for output"
  289. depends on ETRAXFS
  290. help
  291. Enables the DMA6 output channel for ser0 (ttyS0).
  292. If you do not enable DMA, an interrupt for each character will be
  293. used when transmitting data.
  294. Normally you want to use DMA, unless you use the DMA channel for
  295. something else.
  296. config ETRAX_SERIAL_PORT0_DMA0_OUT
  297. bool "Ser0 uses DMA0 for output"
  298. depends on CRIS_MACH_ARTPEC3
  299. help
  300. Enables the DMA0 output channel for ser0 (ttyS0).
  301. If you do not enable DMA, an interrupt for each character will be
  302. used when transmitting data.
  303. Normally you want to use DMA, unless you use the DMA channel for
  304. something else.
  305. endchoice
  306. choice
  307. prompt "Ser0 DMA in channel "
  308. depends on ETRAX_SERIAL_PORT0
  309. default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
  310. default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
  311. help
  312. What DMA channel to use for ser0.
  313. config ETRAX_SERIAL_PORT0_NO_DMA_IN
  314. bool "Ser0 uses no DMA for input"
  315. help
  316. Do not use DMA for ser0 input.
  317. config ETRAX_SERIAL_PORT0_DMA7_IN
  318. bool "Ser0 uses DMA7 for input"
  319. depends on ETRAXFS
  320. help
  321. Enables the DMA7 input channel for ser0 (ttyS0).
  322. If you do not enable DMA, an interrupt for each character will be
  323. used when receiving data.
  324. Normally you want to use DMA, unless you use the DMA channel for
  325. something else.
  326. config ETRAX_SERIAL_PORT0_DMA1_IN
  327. bool "Ser0 uses DMA1 for input"
  328. depends on CRIS_MACH_ARTPEC3
  329. help
  330. Enables the DMA1 input channel for ser0 (ttyS0).
  331. If you do not enable DMA, an interrupt for each character will be
  332. used when receiveing data.
  333. Normally you want to use DMA, unless you use the DMA channel for
  334. something else.
  335. endchoice
  336. choice
  337. prompt "Ser1 DMA in channel "
  338. depends on ETRAX_SERIAL_PORT1
  339. default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
  340. default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
  341. help
  342. What DMA channel to use for ser1.
  343. config ETRAX_SERIAL_PORT1_NO_DMA_IN
  344. bool "Ser1 uses no DMA for input"
  345. help
  346. Do not use DMA for ser1 input.
  347. config ETRAX_SERIAL_PORT1_DMA5_IN
  348. bool "Ser1 uses DMA5 for input"
  349. depends on ETRAX_ARCH_V32
  350. help
  351. Enables the DMA5 input channel for ser1 (ttyS1).
  352. If you do not enable DMA, an interrupt for each character will be
  353. used when receiving data.
  354. Normally you want this on, unless you use the DMA channel for
  355. something else.
  356. config ETRAX_SERIAL_PORT1_DMA9_IN
  357. depends on ETRAX_ARCH_V10
  358. bool "Ser1 uses DMA9 for input"
  359. endchoice
  360. choice
  361. prompt "Ser1 DMA out channel"
  362. depends on ETRAX_SERIAL_PORT1
  363. default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
  364. default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
  365. help
  366. What DMA channel to use for ser1.
  367. config ETRAX_SERIAL_PORT1_NO_DMA_OUT
  368. bool "Ser1 uses no DMA for output"
  369. help
  370. Do not use DMA for ser1 output.
  371. config ETRAX_SERIAL_PORT1_DMA8_OUT
  372. depends on ETRAX_ARCH_V10
  373. bool "Ser1 uses DMA8 for output"
  374. config ETRAX_SERIAL_PORT1_DMA4_OUT
  375. depends on ETRAX_ARCH_V32
  376. bool "Ser1 uses DMA4 for output"
  377. help
  378. Enables the DMA4 output channel for ser1 (ttyS1).
  379. If you do not enable DMA, an interrupt for each character will be
  380. used when transmitting data.
  381. Normally you want this on, unless you use the DMA channel for
  382. something else.
  383. endchoice
  384. choice
  385. prompt "Ser2 DMA out channel"
  386. depends on ETRAX_SERIAL_PORT2
  387. default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
  388. default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
  389. config ETRAX_SERIAL_PORT2_NO_DMA_OUT
  390. bool "Ser2 uses no DMA for output"
  391. help
  392. Do not use DMA for ser2 output.
  393. config ETRAX_SERIAL_PORT2_DMA2_OUT
  394. bool "Ser2 uses DMA2 for output"
  395. depends on ETRAXFS || ETRAX_ARCH_V10
  396. help
  397. Enables the DMA2 output channel for ser2 (ttyS2).
  398. If you do not enable DMA, an interrupt for each character will be
  399. used when transmitting data.
  400. Normally you want to use DMA, unless you use the DMA channel for
  401. something else.
  402. config ETRAX_SERIAL_PORT2_DMA6_OUT
  403. bool "Ser2 uses DMA6 for output"
  404. depends on CRIS_MACH_ARTPEC3
  405. help
  406. Enables the DMA6 output channel for ser2 (ttyS2).
  407. If you do not enable DMA, an interrupt for each character will be
  408. used when transmitting data.
  409. Normally you want to use DMA, unless you use the DMA channel for
  410. something else.
  411. endchoice
  412. choice
  413. prompt "Ser2 DMA in channel"
  414. depends on ETRAX_SERIAL_PORT2
  415. default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
  416. default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
  417. help
  418. What DMA channel to use for ser2.
  419. config ETRAX_SERIAL_PORT2_NO_DMA_IN
  420. bool "Ser2 uses no DMA for input"
  421. help
  422. Do not use DMA for ser2 input.
  423. config ETRAX_SERIAL_PORT2_DMA3_IN
  424. bool "Ser2 uses DMA3 for input"
  425. depends on ETRAXFS || ETRAX_ARCH_V10
  426. help
  427. Enables the DMA3 input channel for ser2 (ttyS2).
  428. If you do not enable DMA, an interrupt for each character will be
  429. used when receiving data.
  430. Normally you want to use DMA, unless you use the DMA channel for
  431. something else.
  432. config ETRAX_SERIAL_PORT2_DMA7_IN
  433. bool "Ser2 uses DMA7 for input"
  434. depends on CRIS_MACH_ARTPEC3
  435. help
  436. Enables the DMA7 input channel for ser2 (ttyS2).
  437. If you do not enable DMA, an interrupt for each character will be
  438. used when receiveing data.
  439. Normally you want to use DMA, unless you use the DMA channel for
  440. something else.
  441. endchoice
  442. choice
  443. prompt "Ser3 DMA in channel"
  444. depends on ETRAX_SERIAL_PORT3
  445. default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
  446. default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
  447. help
  448. What DMA channel to use for ser3.
  449. config ETRAX_SERIAL_PORT3_NO_DMA_IN
  450. bool "Ser3 uses no DMA for input"
  451. help
  452. Do not use DMA for ser3 input.
  453. config ETRAX_SERIAL_PORT3_DMA5_IN
  454. depends on ETRAX_ARCH_V10
  455. bool "DMA 5"
  456. config ETRAX_SERIAL_PORT3_DMA9_IN
  457. bool "Ser3 uses DMA9 for input"
  458. depends on ETRAXFS
  459. help
  460. Enables the DMA9 input channel for ser3 (ttyS3).
  461. If you do not enable DMA, an interrupt for each character will be
  462. used when receiving data.
  463. Normally you want to use DMA, unless you use the DMA channel for
  464. something else.
  465. config ETRAX_SERIAL_PORT3_DMA3_IN
  466. bool "Ser3 uses DMA3 for input"
  467. depends on CRIS_MACH_ARTPEC3
  468. help
  469. Enables the DMA3 input channel for ser3 (ttyS3).
  470. If you do not enable DMA, an interrupt for each character will be
  471. used when receiveing data.
  472. Normally you want to use DMA, unless you use the DMA channel for
  473. something else.
  474. endchoice
  475. choice
  476. prompt "Ser3 DMA out channel"
  477. depends on ETRAX_SERIAL_PORT3
  478. default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
  479. default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
  480. config ETRAX_SERIAL_PORT3_NO_DMA_OUT
  481. bool "Ser3 uses no DMA for output"
  482. help
  483. Do not use DMA for ser3 output.
  484. config ETRAX_SERIAL_PORT3_DMA4_OUT
  485. depends on ETRAX_ARCH_V10
  486. bool "DMA 4"
  487. config ETRAX_SERIAL_PORT3_DMA8_OUT
  488. bool "Ser3 uses DMA8 for output"
  489. depends on ETRAXFS
  490. help
  491. Enables the DMA8 output channel for ser3 (ttyS3).
  492. If you do not enable DMA, an interrupt for each character will be
  493. used when transmitting data.
  494. Normally you want to use DMA, unless you use the DMA channel for
  495. something else.
  496. config ETRAX_SERIAL_PORT3_DMA2_OUT
  497. bool "Ser3 uses DMA2 for output"
  498. depends on CRIS_MACH_ARTPEC3
  499. help
  500. Enables the DMA2 output channel for ser3 (ttyS3).
  501. If you do not enable DMA, an interrupt for each character will be
  502. used when transmitting data.
  503. Normally you want to use DMA, unless you use the DMA channel for
  504. something else.
  505. endchoice
  506. endmenu
  507. source "drivers/base/Kconfig"
  508. # standard linux drivers
  509. source "drivers/mtd/Kconfig"
  510. source "drivers/parport/Kconfig"
  511. source "drivers/pnp/Kconfig"
  512. source "drivers/block/Kconfig"
  513. source "drivers/ide/Kconfig"
  514. source "drivers/net/Kconfig"
  515. source "drivers/i2c/Kconfig"
  516. source "drivers/rtc/Kconfig"
  517. #
  518. # input before char - char/joystick depends on it. As does USB.
  519. #
  520. source "drivers/input/Kconfig"
  521. source "drivers/char/Kconfig"
  522. source "fs/Kconfig"
  523. source "drivers/usb/Kconfig"
  524. source "arch/cris/Kconfig.debug"
  525. source "security/Kconfig"
  526. source "crypto/Kconfig"
  527. source "lib/Kconfig"