Kconfig 14 KB

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