1 # SPDX-License-Identifier: GPL-2.0
5 bool "Ethernet support"
6 depends on ETRAX_ARCH_V10 && NETDEVICES
9 This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
13 bool "Serial-port support"
14 depends on ETRAX_ARCH_V10
16 Enables the ETRAX 100 serial driver for ser0 (ttyS0)
17 You probably want this enabled.
19 config ETRAX_SERIAL_FAST_TIMER
20 bool "Use fast timers for serial DMA flush (experimental)"
21 depends on ETRAX_SERIAL
23 Select this to have the serial DMAs flushed at a higher rate than
24 normally, possible by using the fast timer API, the timeout is
25 approx. 4 character times.
28 config ETRAX_SERIAL_FLUSH_DMA_FAST
29 bool "Fast serial port DMA flush"
30 depends on ETRAX_SERIAL && !ETRAX_SERIAL_FAST_TIMER
32 Select this to have the serial DMAs flushed at a higher rate than
33 normally possible through a fast timer interrupt (currently at
37 config ETRAX_SERIAL_RX_TIMEOUT_TICKS
38 int "Receive flush timeout (ticks) "
39 depends on ETRAX_SERIAL && !ETRAX_SERIAL_FAST_TIMER && !ETRAX_SERIAL_FLUSH_DMA_FAST
42 Number of timer ticks between flush of receive fifo (1 tick = 10ms).
43 Try 0-3 for low latency applications. Approx 5 for high load
44 applications (e.g. PPP). Maybe this should be more adaptive some
47 config ETRAX_SERIAL_PORT0
48 bool "Serial port 0 enabled"
49 depends on ETRAX_SERIAL
51 Enables the ETRAX 100 serial driver for ser0 (ttyS0)
52 Normally you want this on, unless you use external DMA 1 that uses
53 the same DMA channels.
56 prompt "Ser0 DTR, RI, DSR and CD assignment"
57 depends on ETRAX_SERIAL_PORT0
58 default ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE
60 config ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE
61 bool "No_DTR_RI_DSR_CD"
63 config ETRAX_SER0_DTR_RI_DSR_CD_ON_PA
64 bool "DTR_RI_DSR_CD_on_PA"
66 config ETRAX_SER0_DTR_RI_DSR_CD_ON_PB
67 bool "DTR_RI_DSR_CD_on_PB"
69 Enables the status and control signals DTR, RI, DSR and CD on PB for
72 config ETRAX_SER0_DTR_RI_DSR_CD_MIXED
73 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
77 config ETRAX_SER0_DTR_ON_PA_BIT
78 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
79 depends on ETRAX_SERIAL_PORT0
80 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
81 default "4" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
83 config ETRAX_SER0_RI_ON_PA_BIT
84 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
85 depends on ETRAX_SERIAL_PORT0
86 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
87 default "5" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
89 config ETRAX_SER0_DSR_ON_PA_BIT
90 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
91 depends on ETRAX_SERIAL_PORT0
92 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
93 default "6" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
95 config ETRAX_SER0_CD_ON_PA_BIT
96 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
97 depends on ETRAX_SERIAL_PORT0
98 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
99 default "7" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
101 config ETRAX_SER0_DTR_ON_PB_BIT
102 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
103 depends on ETRAX_SERIAL_PORT0
104 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
105 default "4" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
107 Specify the pin of the PB port to carry the DTR signal for serial
110 config ETRAX_SER0_RI_ON_PB_BIT
111 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
112 depends on ETRAX_SERIAL_PORT0
113 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
114 default "5" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
116 Specify the pin of the PB port to carry the RI signal for serial
119 config ETRAX_SER0_DSR_ON_PB_BIT
120 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
121 depends on ETRAX_SERIAL_PORT0
122 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
123 default "6" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
125 Specify the pin of the PB port to carry the DSR signal for serial
128 config ETRAX_SER0_CD_ON_PB_BIT
129 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
130 depends on ETRAX_SERIAL_PORT0
131 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
132 default "7" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
134 Specify the pin of the PB port to carry the CD signal for serial
137 config ETRAX_SERIAL_PORT1
138 bool "Serial port 1 enabled"
139 depends on ETRAX_SERIAL
141 Enables the ETRAX 100 serial driver for ser1 (ttyS1).
144 prompt "Ser1 DTR, RI, DSR and CD assignment"
145 depends on ETRAX_SERIAL_PORT1
146 default ETRAX_SER1_DTR_RI_DSR_CD_ON_NONE
148 config ETRAX_SER1_DTR_RI_DSR_CD_ON_NONE
149 bool "No_DTR_RI_DSR_CD"
151 config ETRAX_SER1_DTR_RI_DSR_CD_ON_PA
152 bool "DTR_RI_DSR_CD_on_PA"
154 config ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
155 bool "DTR_RI_DSR_CD_on_PB"
157 Enables the status and control signals DTR, RI, DSR and CD on PB for
160 config ETRAX_SER1_DTR_RI_DSR_CD_MIXED
161 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
165 config ETRAX_SER1_DTR_ON_PA_BIT
166 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
167 depends on ETRAX_SERIAL_PORT1
168 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
169 default "4" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
171 config ETRAX_SER1_RI_ON_PA_BIT
172 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
173 depends on ETRAX_SERIAL_PORT1
174 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
175 default "5" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
177 config ETRAX_SER1_DSR_ON_PA_BIT
178 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
179 depends on ETRAX_SERIAL_PORT1
180 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
181 default "6" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
183 config ETRAX_SER1_CD_ON_PA_BIT
184 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
185 depends on ETRAX_SERIAL_PORT1
186 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
187 default "7" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
189 config ETRAX_SER1_DTR_ON_PB_BIT
190 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
191 depends on ETRAX_SERIAL_PORT1
192 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
193 default "4" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
195 Specify the pin of the PB port to carry the DTR signal for serial
198 config ETRAX_SER1_RI_ON_PB_BIT
199 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
200 depends on ETRAX_SERIAL_PORT1
201 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
202 default "5" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
204 Specify the pin of the PB port to carry the RI signal for serial
207 config ETRAX_SER1_DSR_ON_PB_BIT
208 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
209 depends on ETRAX_SERIAL_PORT1
210 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
211 default "6" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
213 Specify the pin of the PB port to carry the DSR signal for serial
216 config ETRAX_SER1_CD_ON_PB_BIT
217 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
218 depends on ETRAX_SERIAL_PORT1
219 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
220 default "7" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
222 Specify the pin of the PB port to carry the CD signal for serial
225 comment "Make sure you do not have the same PB bits more than once!"
226 depends on ETRAX_SERIAL && ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
228 config ETRAX_SERIAL_PORT2
229 bool "Serial port 2 enabled"
230 depends on ETRAX_SERIAL
232 Enables the ETRAX 100 serial driver for ser2 (ttyS2).
235 prompt "Ser2 DTR, RI, DSR and CD assignment"
236 depends on ETRAX_SERIAL_PORT2
237 default ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE
239 config ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE
240 bool "No_DTR_RI_DSR_CD"
242 config ETRAX_SER2_DTR_RI_DSR_CD_ON_PA
243 bool "DTR_RI_DSR_CD_on_PA"
245 Enables the status and control signals DTR, RI, DSR and CD on PA for
248 config ETRAX_SER2_DTR_RI_DSR_CD_ON_PB
249 bool "DTR_RI_DSR_CD_on_PB"
251 config ETRAX_SER2_DTR_RI_DSR_CD_MIXED
252 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
256 config ETRAX_SER2_DTR_ON_PA_BIT
257 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
258 depends on ETRAX_SERIAL_PORT2
259 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
260 default "4" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
262 Specify the pin of the PA port to carry the DTR signal for serial
265 config ETRAX_SER2_RI_ON_PA_BIT
266 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
267 depends on ETRAX_SERIAL_PORT2
268 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
269 default "5" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
271 Specify the pin of the PA port to carry the RI signal for serial
274 config ETRAX_SER2_DSR_ON_PA_BIT
275 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
276 depends on ETRAX_SERIAL_PORT2
277 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
278 default "6" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
280 Specify the pin of the PA port to carry the DTR signal for serial
283 config ETRAX_SER2_CD_ON_PA_BIT
284 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
285 depends on ETRAX_SERIAL_PORT2
286 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
287 default "7" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
289 Specify the pin of the PA port to carry the CD signal for serial
292 config ETRAX_SER2_DTR_ON_PB_BIT
293 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
294 depends on ETRAX_SERIAL_PORT2
295 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
296 default "4" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
298 config ETRAX_SER2_RI_ON_PB_BIT
299 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
300 depends on ETRAX_SERIAL_PORT2
301 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
302 default "5" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
304 config ETRAX_SER2_DSR_ON_PB_BIT
305 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
306 depends on ETRAX_SERIAL_PORT2
307 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
308 default "6" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
310 config ETRAX_SER2_CD_ON_PB_BIT
311 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
312 depends on ETRAX_SERIAL_PORT2
313 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
314 default "7" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
316 config ETRAX_SERIAL_PORT3
317 bool "Serial port 3 enabled"
318 depends on ETRAX_SERIAL
320 Enables the ETRAX 100 serial driver for ser3 (ttyS3).
323 prompt "Ser3 DTR, RI, DSR and CD assignment"
324 depends on ETRAX_SERIAL_PORT3
325 default ETRAX_SER3_DTR_RI_DSR_CD_ON_NONE
327 config ETRAX_SER3_DTR_RI_DSR_CD_ON_NONE
328 bool "No_DTR_RI_DSR_CD"
330 config ETRAX_SER3_DTR_RI_DSR_CD_ON_PA
331 bool "DTR_RI_DSR_CD_on_PA"
333 config ETRAX_SER3_DTR_RI_DSR_CD_ON_PB
334 bool "DTR_RI_DSR_CD_on_PB"
336 config ETRAX_SER3_DTR_RI_DSR_CD_MIXED
337 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
341 config ETRAX_SER3_DTR_ON_PA_BIT
342 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
343 depends on ETRAX_SERIAL_PORT3
346 config ETRAX_SER3_RI_ON_PA_BIT
347 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
348 depends on ETRAX_SERIAL_PORT3
351 config ETRAX_SER3_DSR_ON_PA_BIT
352 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
353 depends on ETRAX_SERIAL_PORT3
356 config ETRAX_SER3_CD_ON_PA_BIT
357 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
358 depends on ETRAX_SERIAL_PORT3
361 config ETRAX_SER3_DTR_ON_PB_BIT
362 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
363 depends on ETRAX_SERIAL_PORT3
366 config ETRAX_SER3_RI_ON_PB_BIT
367 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
368 depends on ETRAX_SERIAL_PORT3
371 config ETRAX_SER3_DSR_ON_PB_BIT
372 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
373 depends on ETRAX_SERIAL_PORT3
376 config ETRAX_SER3_CD_ON_PB_BIT
377 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
378 depends on ETRAX_SERIAL_PORT3
382 bool "RS-485 support"
383 depends on ETRAX_SERIAL
385 Enables support for RS-485 serial communication. For a primer on
386 RS-485, see <http://en.wikipedia.org/wiki/Rs485>
388 config ETRAX_RS485_ON_PA
389 bool "RS-485 mode on PA"
390 depends on ETRAX_RS485
392 Control Driver Output Enable on RS485 transceiver using a pin on PA
394 Axis 2400/2401 uses PA 3.
396 config ETRAX_RS485_ON_PA_BIT
397 int "RS-485 mode on PA bit"
398 depends on ETRAX_RS485_ON_PA
401 Control Driver Output Enable on RS485 transceiver using a this bit
404 config ETRAX_RS485_DISABLE_RECEIVER
405 bool "Disable serial receiver"
406 depends on ETRAX_RS485
408 It's necessary to disable the serial receiver to avoid serial
409 loopback. Not all products are able to do this in software only.
410 Axis 2400/2401 must disable receiver.
412 config ETRAX_USB_HOST
416 This option enables the host functionality of the ETRAX 100LX
417 built-in USB controller. In host mode the controller is designed
418 for CTRL and BULK traffic only, INTR traffic may work as well
419 however (depending on the requirements of timeliness).
421 config ETRAX_PTABLE_SECTOR
422 int "Byte-offset of partition table sector"
423 depends on ETRAX_AXISFLASHMAP
426 Byte-offset of the partition table in the first flash chip.
427 The default value is 64kB and should not be changed unless
428 you know exactly what you are doing. The only valid reason
429 for changing this is when the flash block size is bigger
430 than 64kB (e.g. when using two parallel 16 bit flashes).
434 depends on ETRAX_ARCH_V10
436 Enables an I2C driver on ETRAX100.
438 i2c_arg = I2C_WRITEARG(STA013_WRITE_ADDR, reg, val);
439 ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_WRITEREG), i2c_arg);
440 i2c_arg = I2C_READARG(STA013_READ_ADDR, reg);
441 val = ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_READREG), i2c_arg);
443 # this is true for most products since PB-I2C seems to be somewhat
445 config ETRAX_I2C_USES_PB_NOT_PB_I2C
446 bool "I2C uses PB not PB-I2C"
449 Select whether to use the special I2C mode in the PB I/O register or
450 not. This option needs to be selected in order to use some drivers
451 that access the I2C I/O pins directly instead of going through the
452 I2C driver, like the DS1302 realtime-clock driver. If you are
453 uncertain, choose Y here.
455 config ETRAX_I2C_DATA_PORT
456 int "I2C SDA bit number"
457 depends on ETRAX_I2C_USES_PB_NOT_PB_I2C
460 Selects the pin on Port B where the data pin is connected
462 config ETRAX_I2C_CLK_PORT
463 int "I2C SCL bit number"
464 depends on ETRAX_I2C_USES_PB_NOT_PB_I2C
467 Select the pin on Port B where the clock pin is connected
469 config ETRAX_I2C_EEPROM
470 bool "I2C EEPROM (non-volatile RAM) support"
473 Enables I2C EEPROM (non-volatile RAM) on PB0 and PB1 using the I2C
474 driver. Select size option: Probed, 2k, 8k, 16k.
475 (Probing works for 2k and 8k but not that well for 16k)
479 depends on ETRAX_I2C_EEPROM
480 default ETRAX_I2C_EEPROM_PROBE
482 config ETRAX_I2C_EEPROM_PROBE
485 Specifies size or auto probe of the EEPROM size.
486 Options: Probed, 2k, 8k, 16k.
487 (Probing works for 2k and 8k but not that well for 16k)
489 config ETRAX_I2C_EEPROM_2KB
494 config ETRAX_I2C_EEPROM_8KB
499 config ETRAX_I2C_EEPROM_16KB
508 depends on ETRAX_ARCH_V10
510 Enables the ETRAX general port device (major 120, minors 0 and 1).
511 You can use this driver to access the general port bits. It supports
513 #include <linux/etraxgpio.h>
514 fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob
515 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set);
516 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear);
517 val = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READBITS), NULL);
518 Remember that you need to setup the port directions appropriately in
519 the General configuration.
521 config ETRAX_PA_CHANGEABLE_DIR
522 hex "PA user changeable dir mask"
523 depends on ETRAX_GPIO
526 This is a bitmask with information of what bits in PA that a user
527 can change direction on using ioctl's.
528 Bit set = changeable.
529 You probably want 00 here.
531 config ETRAX_PA_CHANGEABLE_BITS
532 hex "PA user changeable bits mask"
533 depends on ETRAX_GPIO
536 This is a bitmask with information of what bits in PA that a user
537 can change the value on using ioctl's.
538 Bit set = changeable.
539 You probably want 00 here.
541 config ETRAX_PB_CHANGEABLE_DIR
542 hex "PB user changeable dir mask"
543 depends on ETRAX_GPIO
546 This is a bitmask with information of what bits in PB that a user
547 can change direction on using ioctl's.
548 Bit set = changeable.
549 You probably want 00 here.
551 config ETRAX_PB_CHANGEABLE_BITS
552 hex "PB user changeable bits mask"
553 depends on ETRAX_GPIO
556 This is a bitmask with information of what bits in PB that a user
557 can change the value on using ioctl's.
558 Bit set = changeable.
559 You probably want 00 here.