Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  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. 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 receiveing 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 receiveing 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. config ETRAX_SERIAL_PORT3_DMA9_IN
  431. bool "Ser3 uses DMA9 for input"
  432. depends on ETRAXFS
  433. help
  434. Enables the DMA9 input channel for ser3 (ttyS3).
  435. If you do not enable DMA, an interrupt for each character will be
  436. used when receiving data.
  437. Normally you want to use DMA, unless you use the DMA channel for
  438. something else.
  439. config ETRAX_SERIAL_PORT3_DMA3_IN
  440. bool "Ser3 uses DMA3 for input"
  441. depends on CRIS_MACH_ARTPEC3
  442. help
  443. Enables the DMA3 input channel for ser3 (ttyS3).
  444. If you do not enable DMA, an interrupt for each character will be
  445. used when receiveing data.
  446. Normally you want to use DMA, unless you use the DMA channel for
  447. something else.
  448. endchoice
  449. choice
  450. prompt "Ser3 DMA out channel"
  451. depends on ETRAX_SERIAL_PORT3
  452. default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
  453. default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
  454. config ETRAX_SERIAL_PORT3_NO_DMA_OUT
  455. bool "Ser3 uses no DMA for output"
  456. help
  457. Do not use DMA for ser3 output.
  458. config ETRAX_SERIAL_PORT3_DMA4_OUT
  459. depends on ETRAX_ARCH_V10
  460. bool "DMA 4"
  461. config ETRAX_SERIAL_PORT3_DMA8_OUT
  462. bool "Ser3 uses DMA8 for output"
  463. depends on ETRAXFS
  464. help
  465. Enables the DMA8 output channel for ser3 (ttyS3).
  466. If you do not enable DMA, an interrupt for each character will be
  467. used when transmitting data.
  468. Normally you want to use DMA, unless you use the DMA channel for
  469. something else.
  470. config ETRAX_SERIAL_PORT3_DMA2_OUT
  471. bool "Ser3 uses DMA2 for output"
  472. depends on CRIS_MACH_ARTPEC3
  473. help
  474. Enables the DMA2 output channel for ser3 (ttyS3).
  475. If you do not enable DMA, an interrupt for each character will be
  476. used when transmitting data.
  477. Normally you want to use DMA, unless you use the DMA channel for
  478. something else.
  479. endchoice
  480. endmenu
  481. source "drivers/base/Kconfig"
  482. # standard linux drivers
  483. source "drivers/mtd/Kconfig"
  484. source "drivers/parport/Kconfig"
  485. source "drivers/pnp/Kconfig"
  486. source "drivers/block/Kconfig"
  487. source "drivers/ide/Kconfig"
  488. source "drivers/net/Kconfig"
  489. source "drivers/i2c/Kconfig"
  490. source "drivers/rtc/Kconfig"
  491. #
  492. # input before char - char/joystick depends on it. As does USB.
  493. #
  494. source "drivers/input/Kconfig"
  495. source "drivers/char/Kconfig"
  496. source "fs/Kconfig"
  497. source "drivers/usb/Kconfig"
  498. source "arch/cris/Kconfig.debug"
  499. source "security/Kconfig"
  500. source "crypto/Kconfig"
  501. source "lib/Kconfig"