Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. if ETRAX_ARCH_V32
  2. config ETRAX_ETHERNET
  3. bool "Ethernet support"
  4. depends on ETRAX_ARCH_V32
  5. select NET_ETHERNET
  6. help
  7. This option enables the ETRAX FS built-in 10/100Mbit Ethernet
  8. controller.
  9. config ETRAX_ETHERNET_HW_CSUM
  10. bool "Hardware accelerated ethernet checksum and scatter/gather"
  11. depends on ETRAX_ETHERNET
  12. depends on ETRAX_STREAMCOPROC
  13. default y
  14. help
  15. Hardware acceleration of checksumming and scatter/gather
  16. config ETRAX_ETHERNET_IFACE0
  17. depends on ETRAX_ETHERNET
  18. bool "Enable network interface 0"
  19. config ETRAX_ETHERNET_IFACE1
  20. depends on ETRAX_ETHERNET
  21. bool "Enable network interface 1 (uses DMA6 and DMA7)"
  22. choice
  23. prompt "Network LED behavior"
  24. depends on ETRAX_ETHERNET
  25. default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
  26. config ETRAX_NETWORK_LED_ON_WHEN_LINK
  27. bool "LED_on_when_link"
  28. help
  29. Selecting LED_on_when_link will light the LED when there is a
  30. connection and will flash off when there is activity.
  31. Selecting LED_on_when_activity will light the LED only when
  32. there is activity.
  33. This setting will also affect the behaviour of other activity LEDs
  34. e.g. Bluetooth.
  35. config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
  36. bool "LED_on_when_activity"
  37. help
  38. Selecting LED_on_when_link will light the LED when there is a
  39. connection and will flash off when there is activity.
  40. Selecting LED_on_when_activity will light the LED only when
  41. there is activity.
  42. This setting will also affect the behaviour of other activity LEDs
  43. e.g. Bluetooth.
  44. endchoice
  45. config ETRAXFS_SERIAL
  46. bool "Serial-port support"
  47. depends on ETRAX_ARCH_V32
  48. help
  49. Enables the ETRAX FS serial driver for ser0 (ttyS0)
  50. You probably want this enabled.
  51. config ETRAX_SERIAL_PORT0
  52. bool "Serial port 0 enabled"
  53. depends on ETRAXFS_SERIAL
  54. help
  55. Enables the ETRAX FS serial driver for ser0 (ttyS0)
  56. Normally you want this on. You can control what DMA channels to use
  57. if you do not need DMA to something else.
  58. ser0 can use dma4 or dma6 for output and dma5 or dma7 for input.
  59. choice
  60. prompt "Ser0 DMA in channel "
  61. depends on ETRAX_SERIAL_PORT0
  62. default ETRAX_SERIAL_PORT0_NO_DMA_IN
  63. help
  64. What DMA channel to use for ser0.
  65. config ETRAX_SERIAL_PORT0_NO_DMA_IN
  66. bool "Ser0 uses no DMA for input"
  67. help
  68. Do not use DMA for ser0 input.
  69. config ETRAX_SERIAL_PORT0_DMA7_IN
  70. bool "Ser0 uses DMA7 for input"
  71. depends on ETRAX_SERIAL_PORT0
  72. help
  73. Enables the DMA7 input channel for ser0 (ttyS0).
  74. If you do not enable DMA, an interrupt for each character will be
  75. used when receiving data.
  76. Normally you want to use DMA, unless you use the DMA channel for
  77. something else.
  78. endchoice
  79. choice
  80. prompt "Ser0 DMA out channel"
  81. depends on ETRAX_SERIAL_PORT0
  82. default ETRAX_SERIAL_PORT0_NO_DMA_OUT
  83. config ETRAX_SERIAL_PORT0_NO_DMA_OUT
  84. bool "Ser0 uses no DMA for output"
  85. help
  86. Do not use DMA for ser0 output.
  87. config ETRAX_SERIAL_PORT0_DMA6_OUT
  88. bool "Ser0 uses DMA6 for output"
  89. depends on ETRAX_SERIAL_PORT0
  90. help
  91. Enables the DMA6 output channel for ser0 (ttyS0).
  92. If you do not enable DMA, an interrupt for each character will be
  93. used when transmitting data.
  94. Normally you want to use DMA, unless you use the DMA channel for
  95. something else.
  96. endchoice
  97. config ETRAX_SER0_DTR_BIT
  98. string "Ser 0 DTR bit (empty = not used)"
  99. depends on ETRAX_SERIAL_PORT0
  100. config ETRAX_SER0_RI_BIT
  101. string "Ser 0 RI bit (empty = not used)"
  102. depends on ETRAX_SERIAL_PORT0
  103. config ETRAX_SER0_DSR_BIT
  104. string "Ser 0 DSR bit (empty = not used)"
  105. depends on ETRAX_SERIAL_PORT0
  106. config ETRAX_SER0_CD_BIT
  107. string "Ser 0 CD bit (empty = not used)"
  108. depends on ETRAX_SERIAL_PORT0
  109. config ETRAX_SERIAL_PORT1
  110. bool "Serial port 1 enabled"
  111. depends on ETRAXFS_SERIAL
  112. help
  113. Enables the ETRAX FS serial driver for ser1 (ttyS1).
  114. choice
  115. prompt "Ser1 DMA in channel "
  116. depends on ETRAX_SERIAL_PORT1
  117. default ETRAX_SERIAL_PORT1_NO_DMA_IN
  118. help
  119. What DMA channel to use for ser1.
  120. config ETRAX_SERIAL_PORT1_NO_DMA_IN
  121. bool "Ser1 uses no DMA for input"
  122. help
  123. Do not use DMA for ser1 input.
  124. config ETRAX_SERIAL_PORT1_DMA5_IN
  125. bool "Ser1 uses DMA5 for input"
  126. depends on ETRAX_SERIAL_PORT1
  127. help
  128. Enables the DMA5 input channel for ser1 (ttyS1).
  129. If you do not enable DMA, an interrupt for each character will be
  130. used when receiving data.
  131. Normally you want this on, unless you use the DMA channel for
  132. something else.
  133. endchoice
  134. choice
  135. prompt "Ser1 DMA out channel "
  136. depends on ETRAX_SERIAL_PORT1
  137. default ETRAX_SERIAL_PORT1_NO_DMA_OUT
  138. help
  139. What DMA channel to use for ser1.
  140. config ETRAX_SERIAL_PORT1_NO_DMA_OUT
  141. bool "Ser1 uses no DMA for output"
  142. help
  143. Do not use DMA for ser1 output.
  144. config ETRAX_SERIAL_PORT1_DMA4_OUT
  145. bool "Ser1 uses DMA4 for output"
  146. depends on ETRAX_SERIAL_PORT1
  147. help
  148. Enables the DMA4 output channel for ser1 (ttyS1).
  149. If you do not enable DMA, an interrupt for each character will be
  150. used when transmitting data.
  151. Normally you want this on, unless you use the DMA channel for
  152. something else.
  153. endchoice
  154. config ETRAX_SER1_DTR_BIT
  155. string "Ser 1 DTR bit (empty = not used)"
  156. depends on ETRAX_SERIAL_PORT1
  157. config ETRAX_SER1_RI_BIT
  158. string "Ser 1 RI bit (empty = not used)"
  159. depends on ETRAX_SERIAL_PORT1
  160. config ETRAX_SER1_DSR_BIT
  161. string "Ser 1 DSR bit (empty = not used)"
  162. depends on ETRAX_SERIAL_PORT1
  163. config ETRAX_SER1_CD_BIT
  164. string "Ser 1 CD bit (empty = not used)"
  165. depends on ETRAX_SERIAL_PORT1
  166. config ETRAX_SERIAL_PORT2
  167. bool "Serial port 2 enabled"
  168. depends on ETRAXFS_SERIAL
  169. help
  170. Enables the ETRAX FS serial driver for ser2 (ttyS2).
  171. choice
  172. prompt "Ser2 DMA in channel "
  173. depends on ETRAX_SERIAL_PORT2
  174. default ETRAX_SERIAL_PORT2_NO_DMA_IN
  175. help
  176. What DMA channel to use for ser2.
  177. config ETRAX_SERIAL_PORT2_NO_DMA_IN
  178. bool "Ser2 uses no DMA for input"
  179. help
  180. Do not use DMA for ser2 input.
  181. config ETRAX_SERIAL_PORT2_DMA3_IN
  182. bool "Ser2 uses DMA3 for input"
  183. depends on ETRAX_SERIAL_PORT2
  184. help
  185. Enables the DMA3 input channel for ser2 (ttyS2).
  186. If you do not enable DMA, an interrupt for each character will be
  187. used when receiving data.
  188. Normally you want to use DMA, unless you use the DMA channel for
  189. something else.
  190. endchoice
  191. choice
  192. prompt "Ser2 DMA out channel"
  193. depends on ETRAX_SERIAL_PORT2
  194. default ETRAX_SERIAL_PORT2_NO_DMA_OUT
  195. config ETRAX_SERIAL_PORT2_NO_DMA_OUT
  196. bool "Ser2 uses no DMA for output"
  197. help
  198. Do not use DMA for ser2 output.
  199. config ETRAX_SERIAL_PORT2_DMA2_OUT
  200. bool "Ser2 uses DMA2 for output"
  201. depends on ETRAX_SERIAL_PORT2
  202. help
  203. Enables the DMA2 output channel for ser2 (ttyS2).
  204. If you do not enable DMA, an interrupt for each character will be
  205. used when transmitting data.
  206. Normally you want to use DMA, unless you use the DMA channel for
  207. something else.
  208. endchoice
  209. config ETRAX_SER2_DTR_BIT
  210. string "Ser 2 DTR bit (empty = not used)"
  211. depends on ETRAX_SERIAL_PORT2
  212. config ETRAX_SER2_RI_BIT
  213. string "Ser 2 RI bit (empty = not used)"
  214. depends on ETRAX_SERIAL_PORT2
  215. config ETRAX_SER2_DSR_BIT
  216. string "Ser 2 DSR bit (empty = not used)"
  217. depends on ETRAX_SERIAL_PORT2
  218. config ETRAX_SER2_CD_BIT
  219. string "Ser 2 CD bit (empty = not used)"
  220. depends on ETRAX_SERIAL_PORT2
  221. config ETRAX_SERIAL_PORT3
  222. bool "Serial port 3 enabled"
  223. depends on ETRAXFS_SERIAL
  224. help
  225. Enables the ETRAX FS serial driver for ser3 (ttyS3).
  226. choice
  227. prompt "Ser3 DMA in channel "
  228. depends on ETRAX_SERIAL_PORT3
  229. default ETRAX_SERIAL_PORT3_NO_DMA_IN
  230. help
  231. What DMA channel to use for ser3.
  232. config ETRAX_SERIAL_PORT3_NO_DMA_IN
  233. bool "Ser3 uses no DMA for input"
  234. help
  235. Do not use DMA for ser3 input.
  236. config ETRAX_SERIAL_PORT3_DMA9_IN
  237. bool "Ser3 uses DMA9 for input"
  238. depends on ETRAX_SERIAL_PORT3
  239. help
  240. Enables the DMA9 input channel for ser3 (ttyS3).
  241. If you do not enable DMA, an interrupt for each character will be
  242. used when receiving data.
  243. Normally you want to use DMA, unless you use the DMA channel for
  244. something else.
  245. endchoice
  246. choice
  247. prompt "Ser3 DMA out channel"
  248. depends on ETRAX_SERIAL_PORT3
  249. default ETRAX_SERIAL_PORT3_NO_DMA_OUT
  250. config ETRAX_SERIAL_PORT3_NO_DMA_OUT
  251. bool "Ser3 uses no DMA for output"
  252. help
  253. Do not use DMA for ser3 output.
  254. config ETRAX_SERIAL_PORT3_DMA8_OUT
  255. bool "Ser3 uses DMA8 for output"
  256. depends on ETRAX_SERIAL_PORT3
  257. help
  258. Enables the DMA8 output channel for ser3 (ttyS3).
  259. If you do not enable DMA, an interrupt for each character will be
  260. used when transmitting data.
  261. Normally you want to use DMA, unless you use the DMA channel for
  262. something else.
  263. endchoice
  264. config ETRAX_SER3_DTR_BIT
  265. string "Ser 3 DTR bit (empty = not used)"
  266. depends on ETRAX_SERIAL_PORT3
  267. config ETRAX_SER3_RI_BIT
  268. string "Ser 3 RI bit (empty = not used)"
  269. depends on ETRAX_SERIAL_PORT3
  270. config ETRAX_SER3_DSR_BIT
  271. string "Ser 3 DSR bit (empty = not used)"
  272. depends on ETRAX_SERIAL_PORT3
  273. config ETRAX_SER3_CD_BIT
  274. string "Ser 3 CD bit (empty = not used)"
  275. depends on ETRAX_SERIAL_PORT3
  276. config ETRAX_RS485
  277. bool "RS-485 support"
  278. depends on ETRAX_SERIAL
  279. help
  280. Enables support for RS-485 serial communication. For a primer on
  281. RS-485, see <http://www.hw.cz/english/docs/rs485/rs485.html>.
  282. config ETRAX_RS485_DISABLE_RECEIVER
  283. bool "Disable serial receiver"
  284. depends on ETRAX_RS485
  285. help
  286. It is necessary to disable the serial receiver to avoid serial
  287. loopback. Not all products are able to do this in software only.
  288. Axis 2400/2401 must disable receiver.
  289. config ETRAX_AXISFLASHMAP
  290. bool "Axis flash-map support"
  291. depends on ETRAX_ARCH_V32
  292. select MTD
  293. select MTD_CFI
  294. select MTD_CFI_AMDSTD
  295. select MTD_CHAR
  296. select MTD_BLOCK
  297. select MTD_PARTITIONS
  298. select MTD_CONCAT
  299. select MTD_COMPLEX_MAPPINGS
  300. help
  301. This option enables MTD mapping of flash devices. Needed to use
  302. flash memories. If unsure, say Y.
  303. config ETRAX_SYNCHRONOUS_SERIAL
  304. bool "Synchronous serial-port support"
  305. depends on ETRAX_ARCH_V32
  306. help
  307. Enables the ETRAX FS synchronous serial driver.
  308. config ETRAX_SYNCHRONOUS_SERIAL_PORT0
  309. bool "Synchronous serial port 0 enabled"
  310. depends on ETRAX_SYNCHRONOUS_SERIAL
  311. help
  312. Enabled synchronous serial port 0.
  313. config ETRAX_SYNCHRONOUS_SERIAL0_DMA
  314. bool "Enable DMA on synchronous serial port 0."
  315. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
  316. help
  317. A synchronous serial port can run in manual or DMA mode.
  318. Selecting this option will make it run in DMA mode.
  319. config ETRAX_SYNCHRONOUS_SERIAL_PORT1
  320. bool "Synchronous serial port 1 enabled"
  321. depends on ETRAX_SYNCHRONOUS_SERIAL
  322. help
  323. Enabled synchronous serial port 1.
  324. config ETRAX_SYNCHRONOUS_SERIAL1_DMA
  325. bool "Enable DMA on synchronous serial port 1."
  326. depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
  327. help
  328. A synchronous serial port can run in manual or DMA mode.
  329. Selecting this option will make it run in DMA mode.
  330. config ETRAX_PTABLE_SECTOR
  331. int "Byte-offset of partition table sector"
  332. depends on ETRAX_AXISFLASHMAP
  333. default "65536"
  334. help
  335. Byte-offset of the partition table in the first flash chip.
  336. The default value is 64kB and should not be changed unless
  337. you know exactly what you are doing. The only valid reason
  338. for changing this is when the flash block size is bigger
  339. than 64kB (e.g. when using two parallel 16 bit flashes).
  340. config ETRAX_NANDFLASH
  341. bool "NAND flash support"
  342. depends on ETRAX_ARCH_V32
  343. select MTD_NAND
  344. select MTD_NAND_IDS
  345. help
  346. This option enables MTD mapping of NAND flash devices. Needed to use
  347. NAND flash memories. If unsure, say Y.
  348. config ETRAX_I2C
  349. bool "I2C driver"
  350. depends on ETRAX_ARCH_V32
  351. help
  352. This option enabled the I2C driver used by e.g. the RTC driver.
  353. config ETRAX_I2C_DATA_PORT
  354. string "I2C data pin"
  355. depends on ETRAX_I2C
  356. help
  357. The pin to use for I2C data.
  358. config ETRAX_I2C_CLK_PORT
  359. string "I2C clock pin"
  360. depends on ETRAX_I2C
  361. help
  362. The pin to use for I2C clock.
  363. config ETRAX_RTC
  364. bool "Real Time Clock support"
  365. depends on ETRAX_ARCH_V32
  366. help
  367. Enabled RTC support.
  368. choice
  369. prompt "RTC chip"
  370. depends on ETRAX_RTC
  371. default ETRAX_PCF8563
  372. config ETRAX_PCF8563
  373. bool "PCF8563"
  374. help
  375. Philips PCF8563 RTC
  376. endchoice
  377. config ETRAX_GPIO
  378. bool "GPIO support"
  379. depends on ETRAX_ARCH_V32
  380. ---help---
  381. Enables the ETRAX general port device (major 120, minors 0-4).
  382. You can use this driver to access the general port bits. It supports
  383. these ioctl's:
  384. #include <linux/etraxgpio.h>
  385. fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob
  386. ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set);
  387. ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear);
  388. err = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READ_INBITS), &val);
  389. Remember that you need to setup the port directions appropriately in
  390. the General configuration.
  391. config ETRAX_PA_BUTTON_BITMASK
  392. hex "PA-buttons bitmask"
  393. depends on ETRAX_GPIO
  394. default "0x02"
  395. help
  396. This is a bitmask (8 bits) with information about what bits on PA
  397. that are used for buttons.
  398. Most products has a so called TEST button on PA1, if that is true
  399. use 0x02 here.
  400. Use 00 if there are no buttons on PA.
  401. If the bitmask is <> 00 a button driver will be included in the gpio
  402. driver. ETRAX general I/O support must be enabled.
  403. config ETRAX_PA_CHANGEABLE_DIR
  404. hex "PA user changeable dir mask"
  405. depends on ETRAX_GPIO
  406. default "0x00"
  407. help
  408. This is a bitmask (8 bits) with information of what bits in PA that a
  409. user can change direction on using ioctl's.
  410. Bit set = changeable.
  411. You probably want 0x00 here, but it depends on your hardware.
  412. config ETRAX_PA_CHANGEABLE_BITS
  413. hex "PA user changeable bits mask"
  414. depends on ETRAX_GPIO
  415. default "0x00"
  416. help
  417. This is a bitmask (8 bits) with information of what bits in PA
  418. that a user can change the value on using ioctl's.
  419. Bit set = changeable.
  420. config ETRAX_PB_CHANGEABLE_DIR
  421. hex "PB user changeable dir mask"
  422. depends on ETRAX_GPIO
  423. default "0x00000"
  424. help
  425. This is a bitmask (18 bits) with information of what bits in PB
  426. that a user can change direction on using ioctl's.
  427. Bit set = changeable.
  428. You probably want 0x00000 here, but it depends on your hardware.
  429. config ETRAX_PB_CHANGEABLE_BITS
  430. hex "PB user changeable bits mask"
  431. depends on ETRAX_GPIO
  432. default "0x00000"
  433. help
  434. This is a bitmask (18 bits) with information of what bits in PB
  435. that a user can change the value on using ioctl's.
  436. Bit set = changeable.
  437. config ETRAX_PC_CHANGEABLE_DIR
  438. hex "PC user changeable dir mask"
  439. depends on ETRAX_GPIO
  440. default "0x00000"
  441. help
  442. This is a bitmask (18 bits) with information of what bits in PC
  443. that a user can change direction on using ioctl's.
  444. Bit set = changeable.
  445. You probably want 0x00000 here, but it depends on your hardware.
  446. config ETRAX_PC_CHANGEABLE_BITS
  447. hex "PC user changeable bits mask"
  448. depends on ETRAX_GPIO
  449. default "0x00000"
  450. help
  451. This is a bitmask (18 bits) with information of what bits in PC
  452. that a user can change the value on using ioctl's.
  453. Bit set = changeable.
  454. config ETRAX_PD_CHANGEABLE_DIR
  455. hex "PD user changeable dir mask"
  456. depends on ETRAX_GPIO
  457. default "0x00000"
  458. help
  459. This is a bitmask (18 bits) with information of what bits in PD
  460. that a user can change direction on using ioctl's.
  461. Bit set = changeable.
  462. You probably want 0x00000 here, but it depends on your hardware.
  463. config ETRAX_PD_CHANGEABLE_BITS
  464. hex "PD user changeable bits mask"
  465. depends on ETRAX_GPIO
  466. default "0x00000"
  467. help
  468. This is a bitmask (18 bits) with information of what bits in PD
  469. that a user can change the value on using ioctl's.
  470. Bit set = changeable.
  471. config ETRAX_PE_CHANGEABLE_DIR
  472. hex "PE user changeable dir mask"
  473. depends on ETRAX_GPIO
  474. default "0x00000"
  475. help
  476. This is a bitmask (18 bits) with information of what bits in PE
  477. that a user can change direction on using ioctl's.
  478. Bit set = changeable.
  479. You probably want 0x00000 here, but it depends on your hardware.
  480. config ETRAX_PE_CHANGEABLE_BITS
  481. hex "PE user changeable bits mask"
  482. depends on ETRAX_GPIO
  483. default "0x00000"
  484. help
  485. This is a bitmask (18 bits) with information of what bits in PE
  486. that a user can change the value on using ioctl's.
  487. Bit set = changeable.
  488. config ETRAX_CARDBUS
  489. bool "Cardbus support"
  490. depends on ETRAX_ARCH_V32
  491. select PCCARD
  492. select CARDBUS
  493. select HOTPLUG
  494. select PCCARD_NONSTATIC
  495. help
  496. Enabled the ETRAX Cardbus driver.
  497. config PCI
  498. bool
  499. depends on ETRAX_CARDBUS
  500. default y
  501. config ETRAX_IOP_FW_LOAD
  502. tristate "IO-processor hotplug firmware loading support"
  503. depends on ETRAX_ARCH_V32
  504. select FW_LOADER
  505. help
  506. Enables IO-processor hotplug firmware loading support.
  507. config ETRAX_STREAMCOPROC
  508. tristate "Stream co-processor driver enabled"
  509. depends on ETRAX_ARCH_V32
  510. help
  511. This option enables a driver for the stream co-processor
  512. for cryptographic operations.
  513. endif