4 bool "Ethernet support"
5 depends on ETRAX_ARCH_V10 && NETDEVICES
8 This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
12 bool "Serial-port support"
13 depends on ETRAX_ARCH_V10
15 Enables the ETRAX 100 serial driver for ser0 (ttyS0)
16 You probably want this enabled.
18 config ETRAX_SERIAL_FAST_TIMER
19 bool "Use fast timers for serial DMA flush (experimental)"
20 depends on ETRAX_SERIAL
22 Select this to have the serial DMAs flushed at a higher rate than
23 normally, possible by using the fast timer API, the timeout is
24 approx. 4 character times.
27 config ETRAX_SERIAL_FLUSH_DMA_FAST
28 bool "Fast serial port DMA flush"
29 depends on ETRAX_SERIAL && !ETRAX_SERIAL_FAST_TIMER
31 Select this to have the serial DMAs flushed at a higher rate than
32 normally possible through a fast timer interrupt (currently at
36 config ETRAX_SERIAL_RX_TIMEOUT_TICKS
37 int "Receive flush timeout (ticks) "
38 depends on ETRAX_SERIAL && !ETRAX_SERIAL_FAST_TIMER && !ETRAX_SERIAL_FLUSH_DMA_FAST
41 Number of timer ticks between flush of receive fifo (1 tick = 10ms).
42 Try 0-3 for low latency applications. Approx 5 for high load
43 applications (e.g. PPP). Maybe this should be more adaptive some
46 config ETRAX_SERIAL_PORT0
47 bool "Serial port 0 enabled"
48 depends on ETRAX_SERIAL
50 Enables the ETRAX 100 serial driver for ser0 (ttyS0)
51 Normally you want this on, unless you use external DMA 1 that uses
52 the same DMA channels.
55 prompt "Ser0 DTR, RI, DSR and CD assignment"
56 depends on ETRAX_SERIAL_PORT0
57 default ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE
59 config ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE
60 bool "No_DTR_RI_DSR_CD"
62 config ETRAX_SER0_DTR_RI_DSR_CD_ON_PA
63 bool "DTR_RI_DSR_CD_on_PA"
65 config ETRAX_SER0_DTR_RI_DSR_CD_ON_PB
66 bool "DTR_RI_DSR_CD_on_PB"
68 Enables the status and control signals DTR, RI, DSR and CD on PB for
71 config ETRAX_SER0_DTR_RI_DSR_CD_MIXED
72 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
76 config ETRAX_SER0_DTR_ON_PA_BIT
77 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
78 depends on ETRAX_SERIAL_PORT0
79 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
80 default "4" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
82 config ETRAX_SER0_RI_ON_PA_BIT
83 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
84 depends on ETRAX_SERIAL_PORT0
85 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
86 default "5" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
88 config ETRAX_SER0_DSR_ON_PA_BIT
89 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
90 depends on ETRAX_SERIAL_PORT0
91 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
92 default "6" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
94 config ETRAX_SER0_CD_ON_PA_BIT
95 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
96 depends on ETRAX_SERIAL_PORT0
97 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
98 default "7" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PA || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
100 config ETRAX_SER0_DTR_ON_PB_BIT
101 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
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 "4" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
106 Specify the pin of the PB port to carry the DTR signal for serial
109 config ETRAX_SER0_RI_ON_PB_BIT
110 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
111 depends on ETRAX_SERIAL_PORT0
112 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
113 default "5" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
115 Specify the pin of the PB port to carry the RI signal for serial
118 config ETRAX_SER0_DSR_ON_PB_BIT
119 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
120 depends on ETRAX_SERIAL_PORT0
121 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
122 default "6" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
124 Specify the pin of the PB port to carry the DSR signal for serial
127 config ETRAX_SER0_CD_ON_PB_BIT
128 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
129 depends on ETRAX_SERIAL_PORT0
130 default "-1" if !ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER0_DTR_RI_DSR_CD_MIXED
131 default "7" if ETRAX_SER0_DTR_RI_DSR_CD_ON_PB || ETRAX_SER0_DTR_RI_DSR_CD_MIXED
133 Specify the pin of the PB port to carry the CD signal for serial
136 config ETRAX_SERIAL_PORT1
137 bool "Serial port 1 enabled"
138 depends on ETRAX_SERIAL
140 Enables the ETRAX 100 serial driver for ser1 (ttyS1).
143 prompt "Ser1 DTR, RI, DSR and CD assignment"
144 depends on ETRAX_SERIAL_PORT1
145 default ETRAX_SER1_DTR_RI_DSR_CD_ON_NONE
147 config ETRAX_SER1_DTR_RI_DSR_CD_ON_NONE
148 bool "No_DTR_RI_DSR_CD"
150 config ETRAX_SER1_DTR_RI_DSR_CD_ON_PA
151 bool "DTR_RI_DSR_CD_on_PA"
153 config ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
154 bool "DTR_RI_DSR_CD_on_PB"
156 Enables the status and control signals DTR, RI, DSR and CD on PB for
159 config ETRAX_SER1_DTR_RI_DSR_CD_MIXED
160 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
164 config ETRAX_SER1_DTR_ON_PA_BIT
165 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
166 depends on ETRAX_SERIAL_PORT1
167 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
168 default "4" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
170 config ETRAX_SER1_RI_ON_PA_BIT
171 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
172 depends on ETRAX_SERIAL_PORT1
173 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
174 default "5" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
176 config ETRAX_SER1_DSR_ON_PA_BIT
177 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
178 depends on ETRAX_SERIAL_PORT1
179 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
180 default "6" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
182 config ETRAX_SER1_CD_ON_PA_BIT
183 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
184 depends on ETRAX_SERIAL_PORT1
185 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
186 default "7" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PA || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
188 config ETRAX_SER1_DTR_ON_PB_BIT
189 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
190 depends on ETRAX_SERIAL_PORT1
191 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
192 default "4" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
194 Specify the pin of the PB port to carry the DTR signal for serial
197 config ETRAX_SER1_RI_ON_PB_BIT
198 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
199 depends on ETRAX_SERIAL_PORT1
200 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
201 default "5" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
203 Specify the pin of the PB port to carry the RI signal for serial
206 config ETRAX_SER1_DSR_ON_PB_BIT
207 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
208 depends on ETRAX_SERIAL_PORT1
209 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
210 default "6" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
212 Specify the pin of the PB port to carry the DSR signal for serial
215 config ETRAX_SER1_CD_ON_PB_BIT
216 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
217 depends on ETRAX_SERIAL_PORT1
218 default "-1" if !ETRAX_SER1_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER1_DTR_RI_DSR_CD_MIXED
219 default "7" if ETRAX_SER1_DTR_RI_DSR_CD_ON_PB || ETRAX_SER1_DTR_RI_DSR_CD_MIXED
221 Specify the pin of the PB port to carry the CD signal for serial
224 comment "Make sure you do not have the same PB bits more than once!"
225 depends on ETRAX_SERIAL && ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
227 config ETRAX_SERIAL_PORT2
228 bool "Serial port 2 enabled"
229 depends on ETRAX_SERIAL
231 Enables the ETRAX 100 serial driver for ser2 (ttyS2).
234 prompt "Ser2 DTR, RI, DSR and CD assignment"
235 depends on ETRAX_SERIAL_PORT2
236 default ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE
238 config ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE
239 bool "No_DTR_RI_DSR_CD"
241 config ETRAX_SER2_DTR_RI_DSR_CD_ON_PA
242 bool "DTR_RI_DSR_CD_on_PA"
244 Enables the status and control signals DTR, RI, DSR and CD on PA for
247 config ETRAX_SER2_DTR_RI_DSR_CD_ON_PB
248 bool "DTR_RI_DSR_CD_on_PB"
250 config ETRAX_SER2_DTR_RI_DSR_CD_MIXED
251 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
255 config ETRAX_SER2_DTR_ON_PA_BIT
256 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
257 depends on ETRAX_SERIAL_PORT2
258 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
259 default "4" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
261 Specify the pin of the PA port to carry the DTR signal for serial
264 config ETRAX_SER2_RI_ON_PA_BIT
265 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
266 depends on ETRAX_SERIAL_PORT2
267 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
268 default "5" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
270 Specify the pin of the PA port to carry the RI signal for serial
273 config ETRAX_SER2_DSR_ON_PA_BIT
274 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
275 depends on ETRAX_SERIAL_PORT2
276 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
277 default "6" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
279 Specify the pin of the PA port to carry the DTR signal for serial
282 config ETRAX_SER2_CD_ON_PA_BIT
283 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
284 depends on ETRAX_SERIAL_PORT2
285 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PA && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
286 default "7" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PA || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
288 Specify the pin of the PA port to carry the CD signal for serial
291 config ETRAX_SER2_DTR_ON_PB_BIT
292 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
293 depends on ETRAX_SERIAL_PORT2
294 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
295 default "4" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
297 config ETRAX_SER2_RI_ON_PB_BIT
298 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
299 depends on ETRAX_SERIAL_PORT2
300 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
301 default "5" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
303 config ETRAX_SER2_DSR_ON_PB_BIT
304 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
305 depends on ETRAX_SERIAL_PORT2
306 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
307 default "6" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
309 config ETRAX_SER2_CD_ON_PB_BIT
310 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
311 depends on ETRAX_SERIAL_PORT2
312 default "-1" if !ETRAX_SER2_DTR_RI_DSR_CD_ON_PB && !ETRAX_SER2_DTR_RI_DSR_CD_MIXED
313 default "7" if ETRAX_SER2_DTR_RI_DSR_CD_ON_PB || ETRAX_SER2_DTR_RI_DSR_CD_MIXED
315 config ETRAX_SERIAL_PORT3
316 bool "Serial port 3 enabled"
317 depends on ETRAX_SERIAL
319 Enables the ETRAX 100 serial driver for ser3 (ttyS3).
322 prompt "Ser3 DTR, RI, DSR and CD assignment"
323 depends on ETRAX_SERIAL_PORT3
324 default ETRAX_SER3_DTR_RI_DSR_CD_ON_NONE
326 config ETRAX_SER3_DTR_RI_DSR_CD_ON_NONE
327 bool "No_DTR_RI_DSR_CD"
329 config ETRAX_SER3_DTR_RI_DSR_CD_ON_PA
330 bool "DTR_RI_DSR_CD_on_PA"
332 config ETRAX_SER3_DTR_RI_DSR_CD_ON_PB
333 bool "DTR_RI_DSR_CD_on_PB"
335 config ETRAX_SER3_DTR_RI_DSR_CD_MIXED
336 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
340 config ETRAX_SER3_DTR_ON_PA_BIT
341 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
342 depends on ETRAX_SERIAL_PORT3
345 config ETRAX_SER3_RI_ON_PA_BIT
346 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
347 depends on ETRAX_SERIAL_PORT3
350 config ETRAX_SER3_DSR_ON_PA_BIT
351 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
352 depends on ETRAX_SERIAL_PORT3
355 config ETRAX_SER3_CD_ON_PA_BIT
356 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
357 depends on ETRAX_SERIAL_PORT3
360 config ETRAX_SER3_DTR_ON_PB_BIT
361 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
362 depends on ETRAX_SERIAL_PORT3
365 config ETRAX_SER3_RI_ON_PB_BIT
366 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
367 depends on ETRAX_SERIAL_PORT3
370 config ETRAX_SER3_DSR_ON_PB_BIT
371 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
372 depends on ETRAX_SERIAL_PORT3
375 config ETRAX_SER3_CD_ON_PB_BIT
376 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
377 depends on ETRAX_SERIAL_PORT3
381 bool "RS-485 support"
382 depends on ETRAX_SERIAL
384 Enables support for RS-485 serial communication. For a primer on
385 RS-485, see <http://en.wikipedia.org/wiki/Rs485>
387 config ETRAX_RS485_ON_PA
388 bool "RS-485 mode on PA"
389 depends on ETRAX_RS485
391 Control Driver Output Enable on RS485 transceiver using a pin on PA
393 Axis 2400/2401 uses PA 3.
395 config ETRAX_RS485_ON_PA_BIT
396 int "RS-485 mode on PA bit"
397 depends on ETRAX_RS485_ON_PA
400 Control Driver Output Enable on RS485 transceiver using a this bit
403 config ETRAX_RS485_DISABLE_RECEIVER
404 bool "Disable serial receiver"
405 depends on ETRAX_RS485
407 It's necessary to disable the serial receiver to avoid serial
408 loopback. Not all products are able to do this in software only.
409 Axis 2400/2401 must disable receiver.
411 config ETRAX_USB_HOST
415 This option enables the host functionality of the ETRAX 100LX
416 built-in USB controller. In host mode the controller is designed
417 for CTRL and BULK traffic only, INTR traffic may work as well
418 however (depending on the requirements of timeliness).
420 config ETRAX_USB_HOST_PORT1
421 bool "USB port 1 enabled"
422 depends on ETRAX_USB_HOST
425 config ETRAX_USB_HOST_PORT2
426 bool "USB port 2 enabled"
427 depends on ETRAX_USB_HOST
430 config ETRAX_PTABLE_SECTOR
431 int "Byte-offset of partition table sector"
432 depends on ETRAX_AXISFLASHMAP
435 Byte-offset of the partition table in the first flash chip.
436 The default value is 64kB and should not be changed unless
437 you know exactly what you are doing. The only valid reason
438 for changing this is when the flash block size is bigger
439 than 64kB (e.g. when using two parallel 16 bit flashes).
443 depends on ETRAX_ARCH_V10
445 Enables an I2C driver on ETRAX100.
447 i2c_arg = I2C_WRITEARG(STA013_WRITE_ADDR, reg, val);
448 ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_WRITEREG), i2c_arg);
449 i2c_arg = I2C_READARG(STA013_READ_ADDR, reg);
450 val = ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_READREG), i2c_arg);
452 # this is true for most products since PB-I2C seems to be somewhat
454 config ETRAX_I2C_USES_PB_NOT_PB_I2C
455 bool "I2C uses PB not PB-I2C"
458 Select whether to use the special I2C mode in the PB I/O register or
459 not. This option needs to be selected in order to use some drivers
460 that access the I2C I/O pins directly instead of going through the
461 I2C driver, like the DS1302 realtime-clock driver. If you are
462 uncertain, choose Y here.
464 config ETRAX_I2C_DATA_PORT
465 int "I2C SDA bit number"
466 depends on ETRAX_I2C_USES_PB_NOT_PB_I2C
469 Selects the pin on Port B where the data pin is connected
471 config ETRAX_I2C_CLK_PORT
472 int "I2C SCL bit number"
473 depends on ETRAX_I2C_USES_PB_NOT_PB_I2C
476 Select the pin on Port B where the clock pin is connected
478 config ETRAX_I2C_EEPROM
479 bool "I2C EEPROM (non-volatile RAM) support"
482 Enables I2C EEPROM (non-volatile RAM) on PB0 and PB1 using the I2C
483 driver. Select size option: Probed, 2k, 8k, 16k.
484 (Probing works for 2k and 8k but not that well for 16k)
488 depends on ETRAX_I2C_EEPROM
489 default ETRAX_I2C_EEPROM_PROBE
491 config ETRAX_I2C_EEPROM_PROBE
494 Specifies size or auto probe of the EEPROM size.
495 Options: Probed, 2k, 8k, 16k.
496 (Probing works for 2k and 8k but not that well for 16k)
498 config ETRAX_I2C_EEPROM_2KB
503 config ETRAX_I2C_EEPROM_8KB
508 config ETRAX_I2C_EEPROM_16KB
517 depends on ETRAX_ARCH_V10
519 Enables the ETRAX general port device (major 120, minors 0 and 1).
520 You can use this driver to access the general port bits. It supports
522 #include <linux/etraxgpio.h>
523 fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob
524 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set);
525 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear);
526 val = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READBITS), NULL);
527 Remember that you need to setup the port directions appropriately in
528 the General configuration.
530 config ETRAX_PA_BUTTON_BITMASK
531 hex "PA-buttons bitmask"
532 depends on ETRAX_GPIO
535 This is a bitmask with information about what bits on PA that
536 are used for buttons.
537 Most products has a so called TEST button on PA1, if that's true
539 Use 00 if there are no buttons on PA.
540 If the bitmask is <> 00 a button driver will be included in the gpio
541 driver. ETRAX general I/O support must be enabled.
543 config ETRAX_PA_CHANGEABLE_DIR
544 hex "PA user changeable dir mask"
545 depends on ETRAX_GPIO
548 This is a bitmask with information of what bits in PA that a user
549 can change direction on using ioctl's.
550 Bit set = changeable.
551 You probably want 00 here.
553 config ETRAX_PA_CHANGEABLE_BITS
554 hex "PA user changeable bits mask"
555 depends on ETRAX_GPIO
558 This is a bitmask with information of what bits in PA that a user
559 can change the value on using ioctl's.
560 Bit set = changeable.
561 You probably want 00 here.
563 config ETRAX_PB_CHANGEABLE_DIR
564 hex "PB user changeable dir mask"
565 depends on ETRAX_GPIO
568 This is a bitmask with information of what bits in PB that a user
569 can change direction on using ioctl's.
570 Bit set = changeable.
571 You probably want 00 here.
573 config ETRAX_PB_CHANGEABLE_BITS
574 hex "PB user changeable bits mask"
575 depends on ETRAX_GPIO
578 This is a bitmask with information of what bits in PB that a user
579 can change the value on using ioctl's.
580 Bit set = changeable.
581 You probably want 00 here.
583 config ETRAX_DS1302_RST_ON_GENERIC_PORT
584 bool "DS1302 RST on Generic Port"
585 depends on ETRAX_DS1302
587 If your product has the RST signal line for the DS1302 RTC on the
588 Generic Port then say Y here, otherwise leave it as N in which
589 case the RST signal line is assumed to be connected to Port PB
590 (just like the SCL and SDA lines).
592 config ETRAX_DS1302_RSTBIT
593 int "DS1302 RST bit number"
594 depends on ETRAX_DS1302
597 This is the bit number for the RST signal line of the DS1302 RTC on
598 the selected port. If you have selected the generic port then it
599 should be bit 27, otherwise your best bet is bit 5.
601 config ETRAX_DS1302_SCLBIT
602 int "DS1302 SCL bit number"
603 depends on ETRAX_DS1302
606 This is the bit number for the SCL signal line of the DS1302 RTC on
607 Port PB. This is probably best left at 3.
609 config ETRAX_DS1302_SDABIT
610 int "DS1302 SDA bit number"
611 depends on ETRAX_DS1302
614 This is the bit number for the SDA signal line of the DS1302 RTC on
615 Port PB. This is probably best left at 2.
617 config ETRAX_DS1302_TRICKLE_CHARGE
618 int "DS1302 Trickle charger value"
619 depends on ETRAX_DS1302
622 This controls the initial value of the trickle charge register.
623 0 = disabled (use this if you are unsure or have a non rechargeable battery)
624 Otherwise the following values can be OR:ed together to control the
626 1 = 2kohm, 2 = 4kohm, 3 = 4kohm
627 4 = 1 diode, 8 = 2 diodes
628 Allowed values are (increasing current): 0, 11, 10, 9, 7, 6, 5