Kconfig 22 KB

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