Kconfig 16 KB

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