Kconfig 13 KB

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