Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  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_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. config ETRAX_ARCH_V32
  111. bool
  112. default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
  113. default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
  114. config ETRAX_DRAM_SIZE
  115. int "DRAM size (dec, in MB)"
  116. default "8"
  117. help
  118. Size of DRAM (decimal in MB) typically 2, 8 or 16.
  119. config ETRAX_VMEM_SIZE
  120. int "Video memory size (dec, in MB)"
  121. depends on ETRAX_ARCH_V32 && !ETRAXFS
  122. default 8 if !ETRAXFS
  123. help
  124. Size of Video accessible memory (decimal, in MB).
  125. config ETRAX_FLASH_BUSWIDTH
  126. int "Buswidth of NOR flash in bytes"
  127. default "2"
  128. help
  129. Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
  130. config ETRAX_FLASH1_SIZE
  131. int "FLASH1 size (dec, in MB. 0 = Unknown)"
  132. default "0"
  133. choice
  134. prompt "Product debug-port"
  135. default ETRAX_DEBUG_PORT0
  136. config ETRAX_DEBUG_PORT0
  137. bool "Serial-0"
  138. help
  139. Choose a serial port for the ETRAX debug console. Default to
  140. port 0.
  141. config ETRAX_DEBUG_PORT1
  142. bool "Serial-1"
  143. help
  144. Use serial port 1 for the console.
  145. config ETRAX_DEBUG_PORT2
  146. bool "Serial-2"
  147. help
  148. Use serial port 2 for the console.
  149. config ETRAX_DEBUG_PORT3
  150. bool "Serial-3"
  151. help
  152. Use serial port 3 for the console.
  153. config ETRAX_DEBUG_PORT_NULL
  154. bool "disabled"
  155. help
  156. Disable serial-port debugging.
  157. endchoice
  158. choice
  159. prompt "Kernel GDB port"
  160. depends on ETRAX_KGDB
  161. default ETRAX_KGDB_PORT0
  162. help
  163. Choose a serial port for kernel debugging. NOTE: This port should
  164. not be enabled under Drivers for built-in interfaces (as it has its
  165. own initialization code) and should not be the same as the debug port.
  166. config ETRAX_KGDB_PORT0
  167. bool "Serial-0"
  168. help
  169. Use serial port 0 for kernel debugging.
  170. config ETRAX_KGDB_PORT1
  171. bool "Serial-1"
  172. help
  173. Use serial port 1 for kernel debugging.
  174. config ETRAX_KGDB_PORT2
  175. bool "Serial-2"
  176. help
  177. Use serial port 2 for kernel debugging.
  178. config ETRAX_KGDB_PORT3
  179. bool "Serial-3"
  180. help
  181. Use serial port 3 for kernel debugging.
  182. endchoice
  183. source arch/cris/arch-v10/Kconfig
  184. source arch/cris/arch-v32/Kconfig
  185. endmenu
  186. source "net/Kconfig"
  187. # bring in ETRAX built-in drivers
  188. menu "Drivers for built-in interfaces"
  189. source arch/cris/arch-v10/drivers/Kconfig
  190. source arch/cris/arch-v32/drivers/Kconfig
  191. config ETRAX_AXISFLASHMAP
  192. bool "Axis flash-map support"
  193. select MTD
  194. select MTD_CFI
  195. select MTD_CFI_AMDSTD
  196. select MTD_JEDECPROBE if ETRAX_ARCH_V32
  197. select MTD_BLOCK
  198. select MTD_COMPLEX_MAPPINGS
  199. help
  200. This option enables MTD mapping of flash devices. Needed to use
  201. flash memories. If unsure, say Y.
  202. config ETRAX_SYNCHRONOUS_SERIAL
  203. bool "Synchronous serial-port support"
  204. help
  205. Select this to enable the synchronous serial port driver.
  206. config ETRAX_SYNCHRONOUS_SERIAL_PORT0
  207. bool "Synchronous serial port 0 enabled"
  208. depends on ETRAX_SYNCHRONOUS_SERIAL
  209. help
  210. Enabled synchronous serial port 0.
  211. config ETRAX_SYNCHRONOUS_SERIAL0_DMA
  212. bool "Enable DMA on synchronous serial port 0."
  213. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
  214. help
  215. A synchronous serial port can run in manual or DMA mode.
  216. Selecting this option will make it run in DMA mode.
  217. config ETRAX_SYNCHRONOUS_SERIAL_PORT1
  218. bool "Synchronous serial port 1 enabled"
  219. depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
  220. help
  221. Enabled synchronous serial port 1.
  222. config ETRAX_SYNCHRONOUS_SERIAL1_DMA
  223. bool "Enable DMA on synchronous serial port 1."
  224. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
  225. help
  226. A synchronous serial port can run in manual or DMA mode.
  227. Selecting this option will make it run in DMA mode.
  228. choice
  229. prompt "Network LED behavior"
  230. depends on ETRAX_ETHERNET
  231. default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
  232. config ETRAX_NETWORK_LED_ON_WHEN_LINK
  233. bool "LED_on_when_link"
  234. help
  235. Selecting LED_on_when_link will light the LED when there is a
  236. connection and will flash off when there is activity.
  237. Selecting LED_on_when_activity will light the LED only when
  238. there is activity.
  239. This setting will also affect the behaviour of other activity LEDs
  240. e.g. Bluetooth.
  241. config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
  242. bool "LED_on_when_activity"
  243. help
  244. Selecting LED_on_when_link will light the LED when there is a
  245. connection and will flash off when there is activity.
  246. Selecting LED_on_when_activity will light the LED only when
  247. there is activity.
  248. This setting will also affect the behaviour of other activity LEDs
  249. e.g. Bluetooth.
  250. endchoice
  251. choice
  252. prompt "Ser0 DMA out channel"
  253. depends on ETRAX_SERIAL_PORT0
  254. default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
  255. default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
  256. config ETRAX_SERIAL_PORT0_NO_DMA_OUT
  257. bool "Ser0 uses no DMA for output"
  258. help
  259. Do not use DMA for ser0 output.
  260. config ETRAX_SERIAL_PORT0_DMA6_OUT
  261. bool "Ser0 uses DMA6 for output"
  262. depends on ETRAXFS
  263. help
  264. Enables the DMA6 output channel for ser0 (ttyS0).
  265. If you do not enable DMA, an interrupt for each character will be
  266. used when transmitting data.
  267. Normally you want to use DMA, unless you use the DMA channel for
  268. something else.
  269. config ETRAX_SERIAL_PORT0_DMA0_OUT
  270. bool "Ser0 uses DMA0 for output"
  271. depends on CRIS_MACH_ARTPEC3
  272. help
  273. Enables the DMA0 output channel for ser0 (ttyS0).
  274. If you do not enable DMA, an interrupt for each character will be
  275. used when transmitting data.
  276. Normally you want to use DMA, unless you use the DMA channel for
  277. something else.
  278. endchoice
  279. choice
  280. prompt "Ser0 DMA in channel "
  281. depends on ETRAX_SERIAL_PORT0
  282. default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
  283. default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
  284. help
  285. What DMA channel to use for ser0.
  286. config ETRAX_SERIAL_PORT0_NO_DMA_IN
  287. bool "Ser0 uses no DMA for input"
  288. help
  289. Do not use DMA for ser0 input.
  290. config ETRAX_SERIAL_PORT0_DMA7_IN
  291. bool "Ser0 uses DMA7 for input"
  292. depends on ETRAXFS
  293. help
  294. Enables the DMA7 input channel for ser0 (ttyS0).
  295. If you do not enable DMA, an interrupt for each character will be
  296. used when receiving data.
  297. Normally you want to use DMA, unless you use the DMA channel for
  298. something else.
  299. config ETRAX_SERIAL_PORT0_DMA1_IN
  300. bool "Ser0 uses DMA1 for input"
  301. depends on CRIS_MACH_ARTPEC3
  302. help
  303. Enables the DMA1 input channel for ser0 (ttyS0).
  304. If you do not enable DMA, an interrupt for each character will be
  305. used when receiving data.
  306. Normally you want to use DMA, unless you use the DMA channel for
  307. something else.
  308. endchoice
  309. choice
  310. prompt "Ser1 DMA in channel "
  311. depends on ETRAX_SERIAL_PORT1
  312. default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
  313. default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
  314. help
  315. What DMA channel to use for ser1.
  316. config ETRAX_SERIAL_PORT1_NO_DMA_IN
  317. bool "Ser1 uses no DMA for input"
  318. help
  319. Do not use DMA for ser1 input.
  320. config ETRAX_SERIAL_PORT1_DMA5_IN
  321. bool "Ser1 uses DMA5 for input"
  322. depends on ETRAX_ARCH_V32
  323. help
  324. Enables the DMA5 input channel for ser1 (ttyS1).
  325. If you do not enable DMA, an interrupt for each character will be
  326. used when receiving data.
  327. Normally you want this on, unless you use the DMA channel for
  328. something else.
  329. config ETRAX_SERIAL_PORT1_DMA9_IN
  330. depends on ETRAX_ARCH_V10
  331. bool "Ser1 uses DMA9 for input"
  332. endchoice
  333. choice
  334. prompt "Ser1 DMA out channel"
  335. depends on ETRAX_SERIAL_PORT1
  336. default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
  337. default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
  338. help
  339. What DMA channel to use for ser1.
  340. config ETRAX_SERIAL_PORT1_NO_DMA_OUT
  341. bool "Ser1 uses no DMA for output"
  342. help
  343. Do not use DMA for ser1 output.
  344. config ETRAX_SERIAL_PORT1_DMA8_OUT
  345. depends on ETRAX_ARCH_V10
  346. bool "Ser1 uses DMA8 for output"
  347. config ETRAX_SERIAL_PORT1_DMA4_OUT
  348. depends on ETRAX_ARCH_V32
  349. bool "Ser1 uses DMA4 for output"
  350. help
  351. Enables the DMA4 output channel for ser1 (ttyS1).
  352. If you do not enable DMA, an interrupt for each character will be
  353. used when transmitting data.
  354. Normally you want this on, unless you use the DMA channel for
  355. something else.
  356. endchoice
  357. choice
  358. prompt "Ser2 DMA out channel"
  359. depends on ETRAX_SERIAL_PORT2
  360. default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
  361. default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
  362. config ETRAX_SERIAL_PORT2_NO_DMA_OUT
  363. bool "Ser2 uses no DMA for output"
  364. help
  365. Do not use DMA for ser2 output.
  366. config ETRAX_SERIAL_PORT2_DMA2_OUT
  367. bool "Ser2 uses DMA2 for output"
  368. depends on ETRAXFS || ETRAX_ARCH_V10
  369. help
  370. Enables the DMA2 output channel for ser2 (ttyS2).
  371. If you do not enable DMA, an interrupt for each character will be
  372. used when transmitting data.
  373. Normally you want to use DMA, unless you use the DMA channel for
  374. something else.
  375. config ETRAX_SERIAL_PORT2_DMA6_OUT
  376. bool "Ser2 uses DMA6 for output"
  377. depends on CRIS_MACH_ARTPEC3
  378. help
  379. Enables the DMA6 output channel for ser2 (ttyS2).
  380. If you do not enable DMA, an interrupt for each character will be
  381. used when transmitting data.
  382. Normally you want to use DMA, unless you use the DMA channel for
  383. something else.
  384. endchoice
  385. choice
  386. prompt "Ser2 DMA in channel"
  387. depends on ETRAX_SERIAL_PORT2
  388. default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
  389. default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
  390. help
  391. What DMA channel to use for ser2.
  392. config ETRAX_SERIAL_PORT2_NO_DMA_IN
  393. bool "Ser2 uses no DMA for input"
  394. help
  395. Do not use DMA for ser2 input.
  396. config ETRAX_SERIAL_PORT2_DMA3_IN
  397. bool "Ser2 uses DMA3 for input"
  398. depends on ETRAXFS || ETRAX_ARCH_V10
  399. help
  400. Enables the DMA3 input channel for ser2 (ttyS2).
  401. If you do not enable DMA, an interrupt for each character will be
  402. used when receiving data.
  403. Normally you want to use DMA, unless you use the DMA channel for
  404. something else.
  405. config ETRAX_SERIAL_PORT2_DMA7_IN
  406. bool "Ser2 uses DMA7 for input"
  407. depends on CRIS_MACH_ARTPEC3
  408. help
  409. Enables the DMA7 input channel for ser2 (ttyS2).
  410. If you do not enable DMA, an interrupt for each character will be
  411. used when receiving data.
  412. Normally you want to use DMA, unless you use the DMA channel for
  413. something else.
  414. endchoice
  415. choice
  416. prompt "Ser3 DMA in channel"
  417. depends on ETRAX_SERIAL_PORT3
  418. default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
  419. default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
  420. help
  421. What DMA channel to use for ser3.
  422. config ETRAX_SERIAL_PORT3_NO_DMA_IN
  423. bool "Ser3 uses no DMA for input"
  424. help
  425. Do not use DMA for ser3 input.
  426. config ETRAX_SERIAL_PORT3_DMA5_IN
  427. depends on ETRAX_ARCH_V10
  428. bool "DMA 5"
  429. endchoice
  430. choice
  431. prompt "Ser3 DMA out channel"
  432. depends on ETRAX_SERIAL_PORT3
  433. default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
  434. default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
  435. config ETRAX_SERIAL_PORT3_NO_DMA_OUT
  436. bool "Ser3 uses no DMA for output"
  437. help
  438. Do not use DMA for ser3 output.
  439. config ETRAX_SERIAL_PORT3_DMA4_OUT
  440. depends on ETRAX_ARCH_V10
  441. bool "DMA 4"
  442. endchoice
  443. endmenu
  444. source "drivers/Kconfig"
  445. source "fs/Kconfig"
  446. source "arch/cris/Kconfig.debug"
  447. source "security/Kconfig"
  448. source "crypto/Kconfig"
  449. source "lib/Kconfig"