Kconfig 13 KB

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