Kconfig 13 KB

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