Kconfig 14 KB

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