blob: daf5f19b61a12bd54e23acd09a0db76132228993 [file] [log] [blame]
Jesper Nilsson2d33d562008-02-04 22:30:31 -08001if ETRAX_ARCH_V10
2
Linus Torvalds1da177e2005-04-16 15:20:36 -07003config ETRAX_ETHERNET
4 bool "Ethernet support"
Ben Hutchings22062092013-06-18 03:37:05 +01005 depends on ETRAX_ARCH_V10 && NETDEVICES
Jesper Nilsson7b275522007-11-14 17:00:59 -08006 select MII
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 help
8 This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
9 controller.
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011config ETRAX_SERIAL
12 bool "Serial-port support"
13 depends on ETRAX_ARCH_V10
14 help
15 Enables the ETRAX 100 serial driver for ser0 (ttyS0)
16 You probably want this enabled.
17
18config ETRAX_SERIAL_FAST_TIMER
19 bool "Use fast timers for serial DMA flush (experimental)"
20 depends on ETRAX_SERIAL
21 help
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.
25 If unsure, say N.
26
27config ETRAX_SERIAL_FLUSH_DMA_FAST
28 bool "Fast serial port DMA flush"
29 depends on ETRAX_SERIAL && !ETRAX_SERIAL_FAST_TIMER
30 help
31 Select this to have the serial DMAs flushed at a higher rate than
32 normally possible through a fast timer interrupt (currently at
33 15360 Hz).
34 If unsure, say N.
35
36config 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
39 default "5"
40 help
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
44 day...
45
46config ETRAX_SERIAL_PORT0
47 bool "Serial port 0 enabled"
48 depends on ETRAX_SERIAL
49 help
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.
53
54choice
Linus Torvalds1da177e2005-04-16 15:20:36 -070055 prompt "Ser0 DTR, RI, DSR and CD assignment"
56 depends on ETRAX_SERIAL_PORT0
57 default ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE
58
59config ETRAX_SER0_DTR_RI_DSR_CD_ON_NONE
60 bool "No_DTR_RI_DSR_CD"
61
62config ETRAX_SER0_DTR_RI_DSR_CD_ON_PA
63 bool "DTR_RI_DSR_CD_on_PA"
64
65config ETRAX_SER0_DTR_RI_DSR_CD_ON_PB
66 bool "DTR_RI_DSR_CD_on_PB"
67 help
68 Enables the status and control signals DTR, RI, DSR and CD on PB for
69 ser0.
70
71config ETRAX_SER0_DTR_RI_DSR_CD_MIXED
72 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
73
74endchoice
75
76config 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
81
82config 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
87
88config 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
93
94config 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
99
100config 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
105 help
106 Specify the pin of the PB port to carry the DTR signal for serial
107 port 0.
108
109config 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
114 help
115 Specify the pin of the PB port to carry the RI signal for serial
116 port 0.
117
118config 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
123 help
124 Specify the pin of the PB port to carry the DSR signal for serial
125 port 0.
126
127config 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
132 help
133 Specify the pin of the PB port to carry the CD signal for serial
134 port 0.
135
136config ETRAX_SERIAL_PORT1
137 bool "Serial port 1 enabled"
138 depends on ETRAX_SERIAL
139 help
140 Enables the ETRAX 100 serial driver for ser1 (ttyS1).
141
142choice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143 prompt "Ser1 DTR, RI, DSR and CD assignment"
144 depends on ETRAX_SERIAL_PORT1
145 default ETRAX_SER1_DTR_RI_DSR_CD_ON_NONE
146
147config ETRAX_SER1_DTR_RI_DSR_CD_ON_NONE
148 bool "No_DTR_RI_DSR_CD"
149
150config ETRAX_SER1_DTR_RI_DSR_CD_ON_PA
151 bool "DTR_RI_DSR_CD_on_PA"
152
153config ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
154 bool "DTR_RI_DSR_CD_on_PB"
155 help
156 Enables the status and control signals DTR, RI, DSR and CD on PB for
157 ser1.
158
159config ETRAX_SER1_DTR_RI_DSR_CD_MIXED
160 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
161
162endchoice
163
164config 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
169
170config 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
175
176config 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
181
182config 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
187
188config 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
193 help
194 Specify the pin of the PB port to carry the DTR signal for serial
195 port 1.
196
197config 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
202 help
203 Specify the pin of the PB port to carry the RI signal for serial
204 port 1.
205
206config 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
211 help
212 Specify the pin of the PB port to carry the DSR signal for serial
213 port 1.
214
215config 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
220 help
221 Specify the pin of the PB port to carry the CD signal for serial
222 port 1.
223
Mikael Starvik3e41d652005-07-27 11:44:30 -0700224comment "Make sure you do not have the same PB bits more than once!"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700225 depends on ETRAX_SERIAL && ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
226
227config ETRAX_SERIAL_PORT2
228 bool "Serial port 2 enabled"
229 depends on ETRAX_SERIAL
230 help
231 Enables the ETRAX 100 serial driver for ser2 (ttyS2).
232
233choice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700234 prompt "Ser2 DTR, RI, DSR and CD assignment"
235 depends on ETRAX_SERIAL_PORT2
236 default ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE
237
238config ETRAX_SER2_DTR_RI_DSR_CD_ON_NONE
239 bool "No_DTR_RI_DSR_CD"
240
241config ETRAX_SER2_DTR_RI_DSR_CD_ON_PA
242 bool "DTR_RI_DSR_CD_on_PA"
243 help
244 Enables the status and control signals DTR, RI, DSR and CD on PA for
245 ser2.
246
247config ETRAX_SER2_DTR_RI_DSR_CD_ON_PB
248 bool "DTR_RI_DSR_CD_on_PB"
249
250config ETRAX_SER2_DTR_RI_DSR_CD_MIXED
251 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
252
253endchoice
254
255config 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
260 help
261 Specify the pin of the PA port to carry the DTR signal for serial
262 port 2.
263
264config 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
269 help
270 Specify the pin of the PA port to carry the RI signal for serial
271 port 2.
272
273config 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
278 help
279 Specify the pin of the PA port to carry the DTR signal for serial
280 port 2.
281
282config 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
287 help
288 Specify the pin of the PA port to carry the CD signal for serial
289 port 2.
290
291config 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
296
297config 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
302
303config 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
308
309config 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
314
315config ETRAX_SERIAL_PORT3
316 bool "Serial port 3 enabled"
317 depends on ETRAX_SERIAL
318 help
319 Enables the ETRAX 100 serial driver for ser3 (ttyS3).
320
321choice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322 prompt "Ser3 DTR, RI, DSR and CD assignment"
323 depends on ETRAX_SERIAL_PORT3
324 default ETRAX_SER3_DTR_RI_DSR_CD_ON_NONE
325
326config ETRAX_SER3_DTR_RI_DSR_CD_ON_NONE
327 bool "No_DTR_RI_DSR_CD"
328
329config ETRAX_SER3_DTR_RI_DSR_CD_ON_PA
330 bool "DTR_RI_DSR_CD_on_PA"
331
332config ETRAX_SER3_DTR_RI_DSR_CD_ON_PB
333 bool "DTR_RI_DSR_CD_on_PB"
334
335config ETRAX_SER3_DTR_RI_DSR_CD_MIXED
336 bool "DTR_RI_DSR_CD_mixed_on_PA_and_PB"
337
338endchoice
339
340config 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
343 default "-1"
344
345config 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
348 default "-1"
349
350config 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
353 default "-1"
354
355config 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
358 default "-1"
359
360config 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
363 default "-1"
364
365config 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
368 default "-1"
369
370config 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
373 default "-1"
374
375config 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
378 default "-1"
379
380config ETRAX_RS485
381 bool "RS-485 support"
382 depends on ETRAX_SERIAL
383 help
384 Enables support for RS-485 serial communication. For a primer on
Jesper Nilsson5866d7e2010-08-02 15:09:22 +0200385 RS-485, see <http://en.wikipedia.org/wiki/Rs485>
Linus Torvalds1da177e2005-04-16 15:20:36 -0700386
387config ETRAX_RS485_ON_PA
388 bool "RS-485 mode on PA"
389 depends on ETRAX_RS485
390 help
391 Control Driver Output Enable on RS485 transceiver using a pin on PA
392 port:
393 Axis 2400/2401 uses PA 3.
394
395config ETRAX_RS485_ON_PA_BIT
396 int "RS-485 mode on PA bit"
397 depends on ETRAX_RS485_ON_PA
398 default "3"
399 help
400 Control Driver Output Enable on RS485 transceiver using a this bit
401 on PA port.
402
403config ETRAX_RS485_DISABLE_RECEIVER
404 bool "Disable serial receiver"
405 depends on ETRAX_RS485
406 help
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.
410
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411config ETRAX_USB_HOST
412 bool "USB host"
Mikael Starvik3e41d652005-07-27 11:44:30 -0700413 select USB
Linus Torvalds1da177e2005-04-16 15:20:36 -0700414 help
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).
419
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420config ETRAX_USB_HOST_PORT1
Mikael Starvik3e41d652005-07-27 11:44:30 -0700421 bool "USB port 1 enabled"
422 depends on ETRAX_USB_HOST
423 default n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700424
425config ETRAX_USB_HOST_PORT2
Mikael Starvik3e41d652005-07-27 11:44:30 -0700426 bool "USB port 2 enabled"
427 depends on ETRAX_USB_HOST
428 default n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700429
Linus Torvalds1da177e2005-04-16 15:20:36 -0700430config ETRAX_PTABLE_SECTOR
431 int "Byte-offset of partition table sector"
432 depends on ETRAX_AXISFLASHMAP
433 default "65536"
434 help
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).
440
Linus Torvalds1da177e2005-04-16 15:20:36 -0700441config ETRAX_I2C
442 bool "I2C support"
443 depends on ETRAX_ARCH_V10
444 help
445 Enables an I2C driver on ETRAX100.
446 EXAMPLE usage:
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);
451
452# this is true for most products since PB-I2C seems to be somewhat
Mikael Starvik3e41d652005-07-27 11:44:30 -0700453# flawed..
Linus Torvalds1da177e2005-04-16 15:20:36 -0700454config ETRAX_I2C_USES_PB_NOT_PB_I2C
455 bool "I2C uses PB not PB-I2C"
456 depends on ETRAX_I2C
457 help
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.
463
464config ETRAX_I2C_DATA_PORT
465 int "I2C SDA bit number"
466 depends on ETRAX_I2C_USES_PB_NOT_PB_I2C
467 default "0"
468 help
469 Selects the pin on Port B where the data pin is connected
470
471config ETRAX_I2C_CLK_PORT
472 int "I2C SCL bit number"
473 depends on ETRAX_I2C_USES_PB_NOT_PB_I2C
474 default "1"
475 help
476 Select the pin on Port B where the clock pin is connected
477
478config ETRAX_I2C_EEPROM
479 bool "I2C EEPROM (non-volatile RAM) support"
480 depends on ETRAX_I2C
481 help
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)
485
486choice
487 prompt "EEPROM size"
488 depends on ETRAX_I2C_EEPROM
489 default ETRAX_I2C_EEPROM_PROBE
490
491config ETRAX_I2C_EEPROM_PROBE
492 bool "Probed"
493 help
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)
497
498config ETRAX_I2C_EEPROM_2KB
499 bool "2kB"
500 help
501 Use a 2kB EEPROM.
502
503config ETRAX_I2C_EEPROM_8KB
504 bool "8kB"
505 help
506 Use a 8kB EEPROM.
507
508config ETRAX_I2C_EEPROM_16KB
509 bool "16kB"
510 help
511 Use a 16kB EEPROM.
512
513endchoice
514
515config ETRAX_GPIO
516 bool "GPIO support"
517 depends on ETRAX_ARCH_V10
518 ---help---
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
521 these ioctl's:
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.
529
530config ETRAX_PA_BUTTON_BITMASK
531 hex "PA-buttons bitmask"
532 depends on ETRAX_GPIO
533 default "02"
534 help
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
538 use 02 here.
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.
542
543config ETRAX_PA_CHANGEABLE_DIR
544 hex "PA user changeable dir mask"
545 depends on ETRAX_GPIO
546 default "00"
547 help
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.
552
553config ETRAX_PA_CHANGEABLE_BITS
554 hex "PA user changeable bits mask"
555 depends on ETRAX_GPIO
556 default "FF"
557 help
558 This is a bitmask with information of what bits in PA that a user
Matt LaPlante44c09202006-10-03 22:34:14 +0200559 can change the value on using ioctl's.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700560 Bit set = changeable.
561 You probably want 00 here.
562
563config ETRAX_PB_CHANGEABLE_DIR
564 hex "PB user changeable dir mask"
565 depends on ETRAX_GPIO
566 default "00"
567 help
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.
572
573config ETRAX_PB_CHANGEABLE_BITS
574 hex "PB user changeable bits mask"
575 depends on ETRAX_GPIO
576 default "FF"
577 help
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.
582
Linus Torvalds1da177e2005-04-16 15:20:36 -0700583config ETRAX_DS1302_RST_ON_GENERIC_PORT
584 bool "DS1302 RST on Generic Port"
585 depends on ETRAX_DS1302
586 help
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).
591
592config ETRAX_DS1302_RSTBIT
593 int "DS1302 RST bit number"
594 depends on ETRAX_DS1302
595 default "2"
596 help
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.
600
601config ETRAX_DS1302_SCLBIT
602 int "DS1302 SCL bit number"
603 depends on ETRAX_DS1302
604 default "1"
605 help
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.
608
609config ETRAX_DS1302_SDABIT
610 int "DS1302 SDA bit number"
611 depends on ETRAX_DS1302
612 default "0"
613 help
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.
616
617config ETRAX_DS1302_TRICKLE_CHARGE
618 int "DS1302 Trickle charger value"
619 depends on ETRAX_DS1302
620 default "0"
621 help
622 This controls the initial value of the trickle charge register.
Matt LaPlante3cb2fcc2006-11-30 05:22:59 +0100623 0 = disabled (use this if you are unsure or have a non rechargeable battery)
Mikael Starvik3e41d652005-07-27 11:44:30 -0700624 Otherwise the following values can be OR:ed together to control the
Linus Torvalds1da177e2005-04-16 15:20:36 -0700625 charge current:
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
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800629
630endif