Kconfig 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. if ETRAX_ARCH_V10
  2. config ETRAX_ETHERNET
  3. bool "Ethernet support"
  4. depends on ETRAX_ARCH_V10 && NETDEVICES
  5. select MII
  6. help
  7. This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
  8. controller.
  9. config ETRAX_SERIAL
  10. bool "Serial-port support"
  11. depends on ETRAX_ARCH_V10
  12. help
  13. Enables the ETRAX 100 serial driver for ser0 (ttyS0)
  14. You probably want this enabled.
  15. config ETRAX_SERIAL_FAST_TIMER
  16. bool "Use fast timers for serial DMA flush (experimental)"
  17. depends on ETRAX_SERIAL
  18. help
  19. Select this to have the serial DMAs flushed at a higher rate than
  20. normally, possible by using the fast timer API, the timeout is
  21. approx. 4 character times.
  22. If unsure, say N.
  23. config ETRAX_SERIAL_FLUSH_DMA_FAST
  24. bool "Fast serial port DMA flush"
  25. depends on ETRAX_SERIAL && !ETRAX_SERIAL_FAST_TIMER
  26. help
  27. Select this to have the serial DMAs flushed at a higher rate than
  28. normally possible through a fast timer interrupt (currently at
  29. 15360 Hz).
  30. If unsure, say N.
  31. config ETRAX_SERIAL_RX_TIMEOUT_TICKS
  32. int "Receive flush timeout (ticks) "
  33. depends on ETRAX_SERIAL && !ETRAX_SERIAL_FAST_TIMER && !ETRAX_SERIAL_FLUSH_DMA_FAST
  34. default "5"
  35. help
  36. Number of timer ticks between flush of receive fifo (1 tick = 10ms).
  37. Try 0-3 for low latency applications. Approx 5 for high load
  38. applications (e.g. PPP). Maybe this should be more adaptive some
  39. day...
  40. config ETRAX_SERIAL_PORT0
  41. bool "Serial port 0 enabled"
  42. depends on ETRAX_SERIAL
  43. help
  44. Enables the ETRAX 100 serial driver for ser0 (ttyS0)
  45. Normally you want this on, unless you use external DMA 1 that uses
  46. the same DMA channels.
  47. choice
  48. prompt "Ser0 DTR, RI, DSR and CD assignment"
  49. depends on ETRAX_SERIAL_PORT0
  50. default ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE
  51. config ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE
  52. bool "No_DTR_RI_DSR_CD"
  53. config ETRAX_SER0_DTR_RI_DSR_CD_ON_PA
  54. bool "DTR_RI_DSR_CD_on_PA"
  55. config ETRAX_SER0_DTR_RI_DSR_CD_ON_PB
  56. bool "DTR_RI_DSR_CD_on_PB"
  57. help
  58. Enables the status and control signals DTR, RI, DSR and CD on PB for
  59. ser0.
  60. config ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  61. bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
  62. endchoice
  63. config ETRAX_SER0_DTR_ON_PA_BIT
  64. int "Ser0 DTR on PA bit (-1 = not used)" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  65. depends on ETRAX_SERIAL_PORT0
  66. default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  67. default "4" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  68. config ETRAX_SER0_RI_ON_PA_BIT
  69. int "Ser0 RI on PA bit (-1 = not used)" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  70. depends on ETRAX_SERIAL_PORT0
  71. default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  72. default "5" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  73. config ETRAX_SER0_DSR_ON_PA_BIT
  74. int "Ser0 DSR on PA bit (-1 = not used)" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  75. depends on ETRAX_SERIAL_PORT0
  76. default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  77. default "6" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  78. config ETRAX_SER0_CD_ON_PA_BIT
  79. int "Ser0 CD on PA bit (-1 = not used)" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  80. depends on ETRAX_SERIAL_PORT0
  81. default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  82. default "7" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  83. config ETRAX_SER0_DTR_ON_PB_BIT
  84. int "Ser0 DTR on PB bit (-1 = not used)" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  85. depends on ETRAX_SERIAL_PORT0
  86. default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  87. default "4" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  88. help
  89. Specify the pin of the PB port to carry the DTR signal for serial
  90. port 0.
  91. config ETRAX_SER0_RI_ON_PB_BIT
  92. int "Ser0 RI on PB bit (-1 = not used)" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  93. depends on ETRAX_SERIAL_PORT0
  94. default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  95. default "5" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  96. help
  97. Specify the pin of the PB port to carry the RI signal for serial
  98. port 0.
  99. config ETRAX_SER0_DSR_ON_PB_BIT
  100. int "Ser0 DSR on PB bit (-1 = not used)" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  101. depends on ETRAX_SERIAL_PORT0
  102. default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  103. default "6" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  104. help
  105. Specify the pin of the PB port to carry the DSR signal for serial
  106. port 0.
  107. config ETRAX_SER0_CD_ON_PB_BIT
  108. int "Ser0 CD on PB bit (-1 = not used)" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  109. depends on ETRAX_SERIAL_PORT0
  110. default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  111. default "7" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
  112. help
  113. Specify the pin of the PB port to carry the CD signal for serial
  114. port 0.
  115. config ETRAX_SERIAL_PORT1
  116. bool "Serial port 1 enabled"
  117. depends on ETRAX_SERIAL
  118. help
  119. Enables the ETRAX 100 serial driver for ser1 (ttyS1).
  120. choice
  121. prompt "Ser1 DTR, RI, DSR and CD assignment"
  122. depends on ETRAX_SERIAL_PORT1
  123. default ETRAX_SER1_DTR_RI_DSR_CD_ON_NONE
  124. config ETRAX_SER1_DTR_RI_DSR_CD_ON_NONE
  125. bool "No_DTR_RI_DSR_CD"
  126. config ETRAX_SER1_DTR_RI_DSR_CD_ON_PA
  127. bool "DTR_RI_DSR_CD_on_PA"
  128. config ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
  129. bool "DTR_RI_DSR_CD_on_PB"
  130. help
  131. Enables the status and control signals DTR, RI, DSR and CD on PB for
  132. ser1.
  133. config ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  134. bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
  135. endchoice
  136. config ETRAX_SER1_DTR_ON_PA_BIT
  137. int "Ser1 DTR on PA bit (-1 = not used)" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  138. depends on ETRAX_SERIAL_PORT1
  139. default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  140. default "4" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  141. config ETRAX_SER1_RI_ON_PA_BIT
  142. int "Ser1 RI on PA bit (-1 = not used)" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  143. depends on ETRAX_SERIAL_PORT1
  144. default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  145. default "5" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  146. config ETRAX_SER1_DSR_ON_PA_BIT
  147. int "Ser1 DSR on PA bit (-1 = not used)" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  148. depends on ETRAX_SERIAL_PORT1
  149. default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  150. default "6" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  151. config ETRAX_SER1_CD_ON_PA_BIT
  152. int "Ser1 CD on PA bit (-1 = not used)" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  153. depends on ETRAX_SERIAL_PORT1
  154. default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  155. default "7" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  156. config ETRAX_SER1_DTR_ON_PB_BIT
  157. int "Ser1 DTR on PB bit (-1 = not used)" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  158. depends on ETRAX_SERIAL_PORT1
  159. default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  160. default "4" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  161. help
  162. Specify the pin of the PB port to carry the DTR signal for serial
  163. port 1.
  164. config ETRAX_SER1_RI_ON_PB_BIT
  165. int "Ser1 RI on PB bit (-1 = not used)" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  166. depends on ETRAX_SERIAL_PORT1
  167. default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  168. default "5" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  169. help
  170. Specify the pin of the PB port to carry the RI signal for serial
  171. port 1.
  172. config ETRAX_SER1_DSR_ON_PB_BIT
  173. int "Ser1 DSR on PB bit (-1 = not used)" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  174. depends on ETRAX_SERIAL_PORT1
  175. default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  176. default "6" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  177. help
  178. Specify the pin of the PB port to carry the DSR signal for serial
  179. port 1.
  180. config ETRAX_SER1_CD_ON_PB_BIT
  181. int "Ser1 CD on PB bit (-1 = not used)" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  182. depends on ETRAX_SERIAL_PORT1
  183. default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  184. default "7" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
  185. help
  186. Specify the pin of the PB port to carry the CD signal for serial
  187. port 1.
  188. comment "Make sure you do not have the same PB bits more than once!"
  189. depends on ETRAX_SERIAL && ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
  190. config ETRAX_SERIAL_PORT2
  191. bool "Serial port 2 enabled"
  192. depends on ETRAX_SERIAL
  193. help
  194. Enables the ETRAX 100 serial driver for ser2 (ttyS2).
  195. choice
  196. prompt "Ser2 DTR, RI, DSR and CD assignment"
  197. depends on ETRAX_SERIAL_PORT2
  198. default ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE
  199. config ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE
  200. bool "No_DTR_RI_DSR_CD"
  201. config ETRAX_SER2_DTR_RI_DSR_CD_ON_PA
  202. bool "DTR_RI_DSR_CD_on_PA"
  203. help
  204. Enables the status and control signals DTR, RI, DSR and CD on PA for
  205. ser2.
  206. config ETRAX_SER2_DTR_RI_DSR_CD_ON_PB
  207. bool "DTR_RI_DSR_CD_on_PB"
  208. config ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  209. bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
  210. endchoice
  211. config ETRAX_SER2_DTR_ON_PA_BIT
  212. int "Ser2 DTR on PA bit (-1 = not used)" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  213. depends on ETRAX_SERIAL_PORT2
  214. default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  215. default "4" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  216. help
  217. Specify the pin of the PA port to carry the DTR signal for serial
  218. port 2.
  219. config ETRAX_SER2_RI_ON_PA_BIT
  220. int "Ser2 RI on PA bit (-1 = not used)" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  221. depends on ETRAX_SERIAL_PORT2
  222. default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  223. default "5" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  224. help
  225. Specify the pin of the PA port to carry the RI signal for serial
  226. port 2.
  227. config ETRAX_SER2_DSR_ON_PA_BIT
  228. int "Ser2 DSR on PA bit (-1 = not used)" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  229. depends on ETRAX_SERIAL_PORT2
  230. default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  231. default "6" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  232. help
  233. Specify the pin of the PA port to carry the DTR signal for serial
  234. port 2.
  235. config ETRAX_SER2_CD_ON_PA_BIT
  236. int "Ser2 CD on PA bit (-1 = not used)" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  237. depends on ETRAX_SERIAL_PORT2
  238. default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  239. default "7" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  240. help
  241. Specify the pin of the PA port to carry the CD signal for serial
  242. port 2.
  243. config ETRAX_SER2_DTR_ON_PB_BIT
  244. int "Ser2 DTR on PB bit (-1 = not used)" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  245. depends on ETRAX_SERIAL_PORT2
  246. default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  247. default "4" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  248. config ETRAX_SER2_RI_ON_PB_BIT
  249. int "Ser2 RI on PB bit (-1 = not used)" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  250. depends on ETRAX_SERIAL_PORT2
  251. default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  252. default "5" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  253. config ETRAX_SER2_DSR_ON_PB_BIT
  254. int "Ser2 DSR on PB bit (-1 = not used)" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  255. depends on ETRAX_SERIAL_PORT2
  256. default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  257. default "6" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  258. config ETRAX_SER2_CD_ON_PB_BIT
  259. int "Ser2 CD on PB bit (-1 = not used)" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  260. depends on ETRAX_SERIAL_PORT2
  261. default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  262. default "7" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
  263. config ETRAX_SERIAL_PORT3
  264. bool "Serial port 3 enabled"
  265. depends on ETRAX_SERIAL
  266. help
  267. Enables the ETRAX 100 serial driver for ser3 (ttyS3).
  268. choice
  269. prompt "Ser3 DTR, RI, DSR and CD assignment"
  270. depends on ETRAX_SERIAL_PORT3
  271. default ETRAX_SER3_DTR_RI_DSR_CD_ON_NONE
  272. config ETRAX_SER3_DTR_RI_DSR_CD_ON_NONE
  273. bool "No_DTR_RI_DSR_CD"
  274. config ETRAX_SER3_DTR_RI_DSR_CD_ON_PA
  275. bool "DTR_RI_DSR_CD_on_PA"
  276. config ETRAX_SER3_DTR_RI_DSR_CD_ON_PB
  277. bool "DTR_RI_DSR_CD_on_PB"
  278. config ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  279. bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
  280. endchoice
  281. config ETRAX_SER3_DTR_ON_PA_BIT
  282. int "Ser3 DTR on PA bit (-1 = not used)" if ETRAX_SER3_DTR_RI_DSR_CD_ON_PA || ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  283. depends on ETRAX_SERIAL_PORT3
  284. default "-1"
  285. config ETRAX_SER3_RI_ON_PA_BIT
  286. int "Ser3 RI on PA bit (-1 = not used)" if ETRAX_SER3_DTR_RI_DSR_CD_ON_PA || ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  287. depends on ETRAX_SERIAL_PORT3
  288. default "-1"
  289. config ETRAX_SER3_DSR_ON_PA_BIT
  290. int "Ser3 DSR on PA bit (-1 = not used)" if ETRAX_SER3_DTR_RI_DSR_CD_ON_PA || ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  291. depends on ETRAX_SERIAL_PORT3
  292. default "-1"
  293. config ETRAX_SER3_CD_ON_PA_BIT
  294. int "Ser3 CD on PA bit (-1 = not used)" if ETRAX_SER3_DTR_RI_DSR_CD_ON_PA || ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  295. depends on ETRAX_SERIAL_PORT3
  296. default "-1"
  297. config ETRAX_SER3_DTR_ON_PB_BIT
  298. int "Ser3 DTR on PB bit (-1 = not used)" if ETRAX_SER3_DTR_RI_DSR_CD_ON_PB || ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  299. depends on ETRAX_SERIAL_PORT3
  300. default "-1"
  301. config ETRAX_SER3_RI_ON_PB_BIT
  302. int "Ser3 RI on PB bit (-1 = not used)" if ETRAX_SER3_DTR_RI_DSR_CD_ON_PB || ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  303. depends on ETRAX_SERIAL_PORT3
  304. default "-1"
  305. config ETRAX_SER3_DSR_ON_PB_BIT
  306. int "Ser3 DSR on PB bit (-1 = not used)" if ETRAX_SER3_DTR_RI_DSR_CD_ON_PB || ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  307. depends on ETRAX_SERIAL_PORT3
  308. default "-1"
  309. config ETRAX_SER3_CD_ON_PB_BIT
  310. int "Ser3 CD on PB bit (-1 = not used)" if ETRAX_SER3_DTR_RI_DSR_CD_ON_PB || ETRAX_SER3_DTR_RI_DSR_CD_MIXED
  311. depends on ETRAX_SERIAL_PORT3
  312. default "-1"
  313. config ETRAX_RS485
  314. bool "RS-485 support"
  315. depends on ETRAX_SERIAL
  316. help
  317. Enables support for RS-485 serial communication. For a primer on
  318. RS-485, see <http://en.wikipedia.org/wiki/Rs485>
  319. config ETRAX_RS485_ON_PA
  320. bool "RS-485 mode on PA"
  321. depends on ETRAX_RS485
  322. help
  323. Control Driver Output Enable on RS485 transceiver using a pin on PA
  324. port:
  325. Axis 2400/2401 uses PA 3.
  326. config ETRAX_RS485_ON_PA_BIT
  327. int "RS-485 mode on PA bit"
  328. depends on ETRAX_RS485_ON_PA
  329. default "3"
  330. help
  331. Control Driver Output Enable on RS485 transceiver using a this bit
  332. on PA port.
  333. config ETRAX_RS485_DISABLE_RECEIVER
  334. bool "Disable serial receiver"
  335. depends on ETRAX_RS485
  336. help
  337. It's necessary to disable the serial receiver to avoid serial
  338. loopback. Not all products are able to do this in software only.
  339. Axis 2400/2401 must disable receiver.
  340. config ETRAX_USB_HOST
  341. bool "USB host"
  342. select USB
  343. help
  344. This option enables the host functionality of the ETRAX 100LX
  345. built-in USB controller. In host mode the controller is designed
  346. for CTRL and BULK traffic only, INTR traffic may work as well
  347. however (depending on the requirements of timeliness).
  348. config ETRAX_PTABLE_SECTOR
  349. int "Byte-offset of partition table sector"
  350. depends on ETRAX_AXISFLASHMAP
  351. default "65536"
  352. help
  353. Byte-offset of the partition table in the first flash chip.
  354. The default value is 64kB and should not be changed unless
  355. you know exactly what you are doing. The only valid reason
  356. for changing this is when the flash block size is bigger
  357. than 64kB (e.g. when using two parallel 16 bit flashes).
  358. config ETRAX_I2C
  359. bool "I2C support"
  360. depends on ETRAX_ARCH_V10
  361. help
  362. Enables an I2C driver on ETRAX100.
  363. EXAMPLE usage:
  364. i2c_arg = I2C_WRITEARG(STA013_WRITE_ADDR, reg, val);
  365. ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_WRITEREG), i2c_arg);
  366. i2c_arg = I2C_READARG(STA013_READ_ADDR, reg);
  367. val = ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_READREG), i2c_arg);
  368. # this is true for most products since PB-I2C seems to be somewhat
  369. # flawed..
  370. config ETRAX_I2C_USES_PB_NOT_PB_I2C
  371. bool "I2C uses PB not PB-I2C"
  372. depends on ETRAX_I2C
  373. help
  374. Select whether to use the special I2C mode in the PB I/O register or
  375. not. This option needs to be selected in order to use some drivers
  376. that access the I2C I/O pins directly instead of going through the
  377. I2C driver, like the DS1302 realtime-clock driver. If you are
  378. uncertain, choose Y here.
  379. config ETRAX_I2C_DATA_PORT
  380. int "I2C SDA bit number"
  381. depends on ETRAX_I2C_USES_PB_NOT_PB_I2C
  382. default "0"
  383. help
  384. Selects the pin on Port B where the data pin is connected
  385. config ETRAX_I2C_CLK_PORT
  386. int "I2C SCL bit number"
  387. depends on ETRAX_I2C_USES_PB_NOT_PB_I2C
  388. default "1"
  389. help
  390. Select the pin on Port B where the clock pin is connected
  391. config ETRAX_I2C_EEPROM
  392. bool "I2C EEPROM (non-volatile RAM) support"
  393. depends on ETRAX_I2C
  394. help
  395. Enables I2C EEPROM (non-volatile RAM) on PB0 and PB1 using the I2C
  396. driver. Select size option: Probed, 2k, 8k, 16k.
  397. (Probing works for 2k and 8k but not that well for 16k)
  398. choice
  399. prompt "EEPROM size"
  400. depends on ETRAX_I2C_EEPROM
  401. default ETRAX_I2C_EEPROM_PROBE
  402. config ETRAX_I2C_EEPROM_PROBE
  403. bool "Probed"
  404. help
  405. Specifies size or auto probe of the EEPROM size.
  406. Options: Probed, 2k, 8k, 16k.
  407. (Probing works for 2k and 8k but not that well for 16k)
  408. config ETRAX_I2C_EEPROM_2KB
  409. bool "2kB"
  410. help
  411. Use a 2kB EEPROM.
  412. config ETRAX_I2C_EEPROM_8KB
  413. bool "8kB"
  414. help
  415. Use a 8kB EEPROM.
  416. config ETRAX_I2C_EEPROM_16KB
  417. bool "16kB"
  418. help
  419. Use a 16kB EEPROM.
  420. endchoice
  421. config ETRAX_GPIO
  422. bool "GPIO support"
  423. depends on ETRAX_ARCH_V10
  424. ---help---
  425. Enables the ETRAX general port device (major 120, minors 0 and 1).
  426. You can use this driver to access the general port bits. It supports
  427. these ioctl's:
  428. #include <linux/etraxgpio.h>
  429. fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob
  430. ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set);
  431. ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear);
  432. val = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READBITS), NULL);
  433. Remember that you need to setup the port directions appropriately in
  434. the General configuration.
  435. config ETRAX_PA_CHANGEABLE_DIR
  436. hex "PA user changeable dir mask"
  437. depends on ETRAX_GPIO
  438. default "00"
  439. help
  440. This is a bitmask with information of what bits in PA that a user
  441. can change direction on using ioctl's.
  442. Bit set = changeable.
  443. You probably want 00 here.
  444. config ETRAX_PA_CHANGEABLE_BITS
  445. hex "PA user changeable bits mask"
  446. depends on ETRAX_GPIO
  447. default "FF"
  448. help
  449. This is a bitmask with information of what bits in PA that a user
  450. can change the value on using ioctl's.
  451. Bit set = changeable.
  452. You probably want 00 here.
  453. config ETRAX_PB_CHANGEABLE_DIR
  454. hex "PB user changeable dir mask"
  455. depends on ETRAX_GPIO
  456. default "00"
  457. help
  458. This is a bitmask with information of what bits in PB that a user
  459. can change direction on using ioctl's.
  460. Bit set = changeable.
  461. You probably want 00 here.
  462. config ETRAX_PB_CHANGEABLE_BITS
  463. hex "PB user changeable bits mask"
  464. depends on ETRAX_GPIO
  465. default "FF"
  466. help
  467. This is a bitmask with information of what bits in PB that a user
  468. can change the value on using ioctl's.
  469. Bit set = changeable.
  470. You probably want 00 here.
  471. endif