Kconfig 14 KB

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