diff options
Diffstat (limited to 'arch/cris/arch-v32/drivers/Kconfig')
-rw-r--r-- | arch/cris/arch-v32/drivers/Kconfig | 711 |
1 files changed, 476 insertions, 235 deletions
diff --git a/arch/cris/arch-v32/drivers/Kconfig b/arch/cris/arch-v32/drivers/Kconfig index c329cce2a0c3..2a92cb1886ca 100644 --- a/arch/cris/arch-v32/drivers/Kconfig +++ b/arch/cris/arch-v32/drivers/Kconfig | |||
@@ -4,64 +4,102 @@ config ETRAX_ETHERNET | |||
4 | bool "Ethernet support" | 4 | bool "Ethernet support" |
5 | depends on ETRAX_ARCH_V32 | 5 | depends on ETRAX_ARCH_V32 |
6 | select NET_ETHERNET | 6 | select NET_ETHERNET |
7 | select MII | ||
7 | help | 8 | help |
8 | This option enables the ETRAX FS built-in 10/100Mbit Ethernet | 9 | This option enables the ETRAX FS built-in 10/100Mbit Ethernet |
9 | controller. | 10 | controller. |
10 | 11 | ||
11 | config ETRAX_ETHERNET_HW_CSUM | 12 | config ETRAX_NO_PHY |
12 | bool "Hardware accelerated ethernet checksum and scatter/gather" | 13 | bool "PHY not present" |
13 | depends on ETRAX_ETHERNET | 14 | depends on ETRAX_ETHERNET |
14 | depends on ETRAX_STREAMCOPROC | 15 | default N |
15 | default y | ||
16 | help | 16 | help |
17 | Hardware acceleration of checksumming and scatter/gather | 17 | This option disables all MDIO communication with an ethernet |
18 | transceiver connected to the MII interface. This option shall | ||
19 | typically be enabled if the MII interface is connected to a | ||
20 | switch. This option should normally be disabled. If enabled, | ||
21 | speed and duplex will be locked to 100 Mbit and full duplex. | ||
18 | 22 | ||
19 | config ETRAX_ETHERNET_IFACE0 | 23 | config ETRAX_ETHERNET_IFACE0 |
20 | depends on ETRAX_ETHERNET | 24 | depends on ETRAX_ETHERNET |
21 | bool "Enable network interface 0" | 25 | bool "Enable network interface 0" |
22 | 26 | ||
23 | config ETRAX_ETHERNET_IFACE1 | 27 | config ETRAX_ETHERNET_IFACE1 |
24 | depends on ETRAX_ETHERNET | 28 | depends on (ETRAX_ETHERNET && ETRAXFS) |
25 | bool "Enable network interface 1 (uses DMA6 and DMA7)" | 29 | bool "Enable network interface 1 (uses DMA6 and DMA7)" |
26 | 30 | ||
31 | config ETRAX_ETHERNET_GBIT | ||
32 | depends on (ETRAX_ETHERNET && CRIS_MACH_ARTPEC3) | ||
33 | bool "Enable gigabit Ethernet support" | ||
34 | |||
27 | choice | 35 | choice |
28 | prompt "Network LED behavior" | 36 | prompt "Eth0 led group" |
29 | depends on ETRAX_ETHERNET | 37 | depends on ETRAX_ETHERNET_IFACE0 |
30 | default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY | 38 | default ETRAX_ETH0_USE_LEDGRP0 |
31 | 39 | ||
32 | config ETRAX_NETWORK_LED_ON_WHEN_LINK | 40 | config ETRAX_ETH0_USE_LEDGRP0 |
33 | bool "LED_on_when_link" | 41 | bool "Use LED grp 0" |
42 | depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO | ||
34 | help | 43 | help |
35 | Selecting LED_on_when_link will light the LED when there is a | 44 | Use LED grp 0 for eth0 |
36 | connection and will flash off when there is activity. | ||
37 | 45 | ||
38 | Selecting LED_on_when_activity will light the LED only when | 46 | config ETRAX_ETH0_USE_LEDGRP1 |
39 | there is activity. | 47 | bool "Use LED grp 1" |
40 | 48 | depends on ETRAX_NBR_LED_GRP_TWO | |
41 | This setting will also affect the behaviour of other activity LEDs | 49 | help |
42 | e.g. Bluetooth. | 50 | Use LED grp 1 for eth0 |
43 | 51 | ||
44 | config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY | 52 | config ETRAX_ETH0_USE_LEDGRPNULL |
45 | bool "LED_on_when_activity" | 53 | bool "Use no LEDs for eth0" |
46 | help | 54 | help |
47 | Selecting LED_on_when_link will light the LED when there is a | 55 | Use no LEDs for eth0 |
48 | connection and will flash off when there is activity. | 56 | endchoice |
49 | 57 | ||
50 | Selecting LED_on_when_activity will light the LED only when | 58 | choice |
51 | there is activity. | 59 | prompt "Eth1 led group" |
60 | depends on ETRAX_ETHERNET_IFACE1 | ||
61 | default ETRAX_ETH1_USE_LEDGRP1 | ||
62 | |||
63 | config ETRAX_ETH1_USE_LEDGRP0 | ||
64 | bool "Use LED grp 0" | ||
65 | depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO | ||
66 | help | ||
67 | Use LED grp 0 for eth1 | ||
52 | 68 | ||
53 | This setting will also affect the behaviour of other activity LEDs | 69 | config ETRAX_ETH1_USE_LEDGRP1 |
54 | e.g. Bluetooth. | 70 | bool "Use LED grp 1" |
71 | depends on ETRAX_NBR_LED_GRP_TWO | ||
72 | help | ||
73 | Use LED grp 1 for eth1 | ||
55 | 74 | ||
75 | config ETRAX_ETH1_USE_LEDGRPNULL | ||
76 | bool "Use no LEDs for eth1" | ||
77 | help | ||
78 | Use no LEDs for eth1 | ||
56 | endchoice | 79 | endchoice |
57 | 80 | ||
58 | config ETRAXFS_SERIAL | 81 | config ETRAXFS_SERIAL |
59 | bool "Serial-port support" | 82 | bool "Serial-port support" |
60 | depends on ETRAX_ARCH_V32 | 83 | depends on ETRAX_ARCH_V32 |
84 | select SERIAL_CORE | ||
85 | select SERIAL_CORE_CONSOLE | ||
61 | help | 86 | help |
62 | Enables the ETRAX FS serial driver for ser0 (ttyS0) | 87 | Enables the ETRAX FS serial driver for ser0 (ttyS0) |
63 | You probably want this enabled. | 88 | You probably want this enabled. |
64 | 89 | ||
90 | config ETRAX_RS485 | ||
91 | bool "RS-485 support" | ||
92 | depends on ETRAXFS_SERIAL | ||
93 | help | ||
94 | Enables support for RS-485 serial communication. | ||
95 | |||
96 | config ETRAX_RS485_DISABLE_RECEIVER | ||
97 | bool "Disable serial receiver" | ||
98 | depends on ETRAX_RS485 | ||
99 | help | ||
100 | It is necessary to disable the serial receiver to avoid serial | ||
101 | loopback. Not all products are able to do this in software only. | ||
102 | |||
65 | config ETRAX_SERIAL_PORT0 | 103 | config ETRAX_SERIAL_PORT0 |
66 | bool "Serial port 0 enabled" | 104 | bool "Serial port 0 enabled" |
67 | depends on ETRAXFS_SERIAL | 105 | depends on ETRAXFS_SERIAL |
@@ -72,50 +110,28 @@ config ETRAX_SERIAL_PORT0 | |||
72 | ser0 can use dma4 or dma6 for output and dma5 or dma7 for input. | 110 | ser0 can use dma4 or dma6 for output and dma5 or dma7 for input. |
73 | 111 | ||
74 | choice | 112 | choice |
75 | prompt "Ser0 DMA in channel " | 113 | prompt "Ser0 default port type " |
76 | depends on ETRAX_SERIAL_PORT0 | 114 | depends on ETRAX_SERIAL_PORT0 |
77 | default ETRAX_SERIAL_PORT0_NO_DMA_IN | 115 | default ETRAX_SERIAL_PORT0_TYPE_232 |
78 | help | 116 | help |
79 | What DMA channel to use for ser0. | 117 | Type of serial port. |
80 | |||
81 | 118 | ||
82 | config ETRAX_SERIAL_PORT0_NO_DMA_IN | 119 | config ETRAX_SERIAL_PORT0_TYPE_232 |
83 | bool "Ser0 uses no DMA for input" | 120 | bool "Ser0 is a RS-232 port" |
84 | help | 121 | help |
85 | Do not use DMA for ser0 input. | 122 | Configure serial port 0 to be a RS-232 port. |
86 | 123 | ||
87 | config ETRAX_SERIAL_PORT0_DMA7_IN | 124 | config ETRAX_SERIAL_PORT0_TYPE_485HD |
88 | bool "Ser0 uses DMA7 for input" | 125 | bool "Ser0 is a half duplex RS-485 port" |
89 | depends on ETRAX_SERIAL_PORT0 | 126 | depends on ETRAX_RS485 |
90 | help | ||
91 | Enables the DMA7 input channel for ser0 (ttyS0). | ||
92 | If you do not enable DMA, an interrupt for each character will be | ||
93 | used when receiving data. | ||
94 | Normally you want to use DMA, unless you use the DMA channel for | ||
95 | something else. | ||
96 | |||
97 | endchoice | ||
98 | |||
99 | choice | ||
100 | prompt "Ser0 DMA out channel" | ||
101 | depends on ETRAX_SERIAL_PORT0 | ||
102 | default ETRAX_SERIAL_PORT0_NO_DMA_OUT | ||
103 | |||
104 | config ETRAX_SERIAL_PORT0_NO_DMA_OUT | ||
105 | bool "Ser0 uses no DMA for output" | ||
106 | help | 127 | help |
107 | Do not use DMA for ser0 output. | 128 | Configure serial port 0 to be a half duplex (two wires) RS-485 port. |
108 | 129 | ||
109 | config ETRAX_SERIAL_PORT0_DMA6_OUT | 130 | config ETRAX_SERIAL_PORT0_TYPE_485FD |
110 | bool "Ser0 uses DMA6 for output" | 131 | bool "Ser0 is a full duplex RS-485 port" |
111 | depends on ETRAX_SERIAL_PORT0 | 132 | depends on ETRAX_RS485 |
112 | help | 133 | help |
113 | Enables the DMA6 output channel for ser0 (ttyS0). | 134 | Configure serial port 0 to be a full duplex (four wires) RS-485 port. |
114 | If you do not enable DMA, an interrupt for each character will be | ||
115 | used when transmitting data. | ||
116 | Normally you want to use DMA, unless you use the DMA channel for | ||
117 | something else. | ||
118 | |||
119 | endchoice | 135 | endchoice |
120 | 136 | ||
121 | config ETRAX_SER0_DTR_BIT | 137 | config ETRAX_SER0_DTR_BIT |
@@ -141,52 +157,28 @@ config ETRAX_SERIAL_PORT1 | |||
141 | Enables the ETRAX FS serial driver for ser1 (ttyS1). | 157 | Enables the ETRAX FS serial driver for ser1 (ttyS1). |
142 | 158 | ||
143 | choice | 159 | choice |
144 | prompt "Ser1 DMA in channel " | 160 | prompt "Ser1 default port type" |
145 | depends on ETRAX_SERIAL_PORT1 | 161 | depends on ETRAX_SERIAL_PORT1 |
146 | default ETRAX_SERIAL_PORT1_NO_DMA_IN | 162 | default ETRAX_SERIAL_PORT1_TYPE_232 |
147 | help | ||
148 | What DMA channel to use for ser1. | ||
149 | |||
150 | |||
151 | config ETRAX_SERIAL_PORT1_NO_DMA_IN | ||
152 | bool "Ser1 uses no DMA for input" | ||
153 | help | 163 | help |
154 | Do not use DMA for ser1 input. | 164 | Type of serial port. |
155 | 165 | ||
156 | config ETRAX_SERIAL_PORT1_DMA5_IN | 166 | config ETRAX_SERIAL_PORT1_TYPE_232 |
157 | bool "Ser1 uses DMA5 for input" | 167 | bool "Ser1 is a RS-232 port" |
158 | depends on ETRAX_SERIAL_PORT1 | ||
159 | help | 168 | help |
160 | Enables the DMA5 input channel for ser1 (ttyS1). | 169 | Configure serial port 1 to be a RS-232 port. |
161 | If you do not enable DMA, an interrupt for each character will be | ||
162 | used when receiving data. | ||
163 | Normally you want this on, unless you use the DMA channel for | ||
164 | something else. | ||
165 | |||
166 | endchoice | ||
167 | 170 | ||
168 | choice | 171 | config ETRAX_SERIAL_PORT1_TYPE_485HD |
169 | prompt "Ser1 DMA out channel " | 172 | bool "Ser1 is a half duplex RS-485 port" |
170 | depends on ETRAX_SERIAL_PORT1 | 173 | depends on ETRAX_RS485 |
171 | default ETRAX_SERIAL_PORT1_NO_DMA_OUT | ||
172 | help | ||
173 | What DMA channel to use for ser1. | ||
174 | |||
175 | config ETRAX_SERIAL_PORT1_NO_DMA_OUT | ||
176 | bool "Ser1 uses no DMA for output" | ||
177 | help | 174 | help |
178 | Do not use DMA for ser1 output. | 175 | Configure serial port 1 to be a half duplex (two wires) RS-485 port. |
179 | 176 | ||
180 | config ETRAX_SERIAL_PORT1_DMA4_OUT | 177 | config ETRAX_SERIAL_PORT1_TYPE_485FD |
181 | bool "Ser1 uses DMA4 for output" | 178 | bool "Ser1 is a full duplex RS-485 port" |
182 | depends on ETRAX_SERIAL_PORT1 | 179 | depends on ETRAX_RS485 |
183 | help | 180 | help |
184 | Enables the DMA4 output channel for ser1 (ttyS1). | 181 | Configure serial port 1 to be a full duplex (four wires) RS-485 port. |
185 | If you do not enable DMA, an interrupt for each character will be | ||
186 | used when transmitting data. | ||
187 | Normally you want this on, unless you use the DMA channel for | ||
188 | something else. | ||
189 | |||
190 | endchoice | 182 | endchoice |
191 | 183 | ||
192 | config ETRAX_SER1_DTR_BIT | 184 | config ETRAX_SER1_DTR_BIT |
@@ -212,52 +204,31 @@ config ETRAX_SERIAL_PORT2 | |||
212 | Enables the ETRAX FS serial driver for ser2 (ttyS2). | 204 | Enables the ETRAX FS serial driver for ser2 (ttyS2). |
213 | 205 | ||
214 | choice | 206 | choice |
215 | prompt "Ser2 DMA in channel " | 207 | prompt "Ser2 default port type" |
216 | depends on ETRAX_SERIAL_PORT2 | 208 | depends on ETRAX_SERIAL_PORT2 |
217 | default ETRAX_SERIAL_PORT2_NO_DMA_IN | 209 | default ETRAX_SERIAL_PORT2_TYPE_232 |
218 | help | 210 | help |
219 | What DMA channel to use for ser2. | 211 | What DMA channel to use for ser2 |
220 | 212 | ||
221 | 213 | config ETRAX_SERIAL_PORT2_TYPE_232 | |
222 | config ETRAX_SERIAL_PORT2_NO_DMA_IN | 214 | bool "Ser2 is a RS-232 port" |
223 | bool "Ser2 uses no DMA for input" | ||
224 | help | 215 | help |
225 | Do not use DMA for ser2 input. | 216 | Configure serial port 2 to be a RS-232 port. |
226 | 217 | ||
227 | config ETRAX_SERIAL_PORT2_DMA3_IN | 218 | config ETRAX_SERIAL_PORT2_TYPE_485HD |
228 | bool "Ser2 uses DMA3 for input" | 219 | bool "Ser2 is a half duplex RS-485 port" |
229 | depends on ETRAX_SERIAL_PORT2 | 220 | depends on ETRAX_RS485 |
230 | help | ||
231 | Enables the DMA3 input channel for ser2 (ttyS2). | ||
232 | If you do not enable DMA, an interrupt for each character will be | ||
233 | used when receiving data. | ||
234 | Normally you want to use DMA, unless you use the DMA channel for | ||
235 | something else. | ||
236 | |||
237 | endchoice | ||
238 | |||
239 | choice | ||
240 | prompt "Ser2 DMA out channel" | ||
241 | depends on ETRAX_SERIAL_PORT2 | ||
242 | default ETRAX_SERIAL_PORT2_NO_DMA_OUT | ||
243 | |||
244 | config ETRAX_SERIAL_PORT2_NO_DMA_OUT | ||
245 | bool "Ser2 uses no DMA for output" | ||
246 | help | 221 | help |
247 | Do not use DMA for ser2 output. | 222 | Configure serial port 2 to be a half duplex (two wires) RS-485 port. |
248 | 223 | ||
249 | config ETRAX_SERIAL_PORT2_DMA2_OUT | 224 | config ETRAX_SERIAL_PORT2_TYPE_485FD |
250 | bool "Ser2 uses DMA2 for output" | 225 | bool "Ser2 is a full duplex RS-485 port" |
251 | depends on ETRAX_SERIAL_PORT2 | 226 | depends on ETRAX_RS485 |
252 | help | 227 | help |
253 | Enables the DMA2 output channel for ser2 (ttyS2). | 228 | Configure serial port 2 to be a full duplex (four wires) RS-485 port. |
254 | If you do not enable DMA, an interrupt for each character will be | ||
255 | used when transmitting data. | ||
256 | Normally you want to use DMA, unless you use the DMA channel for | ||
257 | something else. | ||
258 | |||
259 | endchoice | 229 | endchoice |
260 | 230 | ||
231 | |||
261 | config ETRAX_SER2_DTR_BIT | 232 | config ETRAX_SER2_DTR_BIT |
262 | string "Ser 2 DTR bit (empty = not used)" | 233 | string "Ser 2 DTR bit (empty = not used)" |
263 | depends on ETRAX_SERIAL_PORT2 | 234 | depends on ETRAX_SERIAL_PORT2 |
@@ -281,71 +252,121 @@ config ETRAX_SERIAL_PORT3 | |||
281 | Enables the ETRAX FS serial driver for ser3 (ttyS3). | 252 | Enables the ETRAX FS serial driver for ser3 (ttyS3). |
282 | 253 | ||
283 | choice | 254 | choice |
284 | prompt "Ser3 DMA in channel " | 255 | prompt "Ser3 default port type" |
285 | depends on ETRAX_SERIAL_PORT3 | 256 | depends on ETRAX_SERIAL_PORT3 |
286 | default ETRAX_SERIAL_PORT3_NO_DMA_IN | 257 | default ETRAX_SERIAL_PORT3_TYPE_232 |
287 | help | 258 | help |
288 | What DMA channel to use for ser3. | 259 | What DMA channel to use for ser3. |
289 | 260 | ||
261 | config ETRAX_SERIAL_PORT3_TYPE_232 | ||
262 | bool "Ser3 is a RS-232 port" | ||
263 | help | ||
264 | Configure serial port 3 to be a RS-232 port. | ||
290 | 265 | ||
291 | config ETRAX_SERIAL_PORT3_NO_DMA_IN | 266 | config ETRAX_SERIAL_PORT3_TYPE_485HD |
292 | bool "Ser3 uses no DMA for input" | 267 | bool "Ser3 is a half duplex RS-485 port" |
268 | depends on ETRAX_RS485 | ||
293 | help | 269 | help |
294 | Do not use DMA for ser3 input. | 270 | Configure serial port 3 to be a half duplex (two wires) RS-485 port. |
295 | 271 | ||
296 | config ETRAX_SERIAL_PORT3_DMA9_IN | 272 | config ETRAX_SERIAL_PORT3_TYPE_485FD |
297 | bool "Ser3 uses DMA9 for input" | 273 | bool "Ser3 is a full duplex RS-485 port" |
274 | depends on ETRAX_RS485 | ||
275 | help | ||
276 | Configure serial port 3 to be a full duplex (four wires) RS-485 port. | ||
277 | endchoice | ||
278 | |||
279 | config ETRAX_SER3_DTR_BIT | ||
280 | string "Ser 3 DTR bit (empty = not used)" | ||
281 | depends on ETRAX_SERIAL_PORT3 | ||
282 | |||
283 | config ETRAX_SER3_RI_BIT | ||
284 | string "Ser 3 RI bit (empty = not used)" | ||
285 | depends on ETRAX_SERIAL_PORT3 | ||
286 | |||
287 | config ETRAX_SER3_DSR_BIT | ||
288 | string "Ser 3 DSR bit (empty = not used)" | ||
289 | depends on ETRAX_SERIAL_PORT3 | ||
290 | |||
291 | config ETRAX_SER3_CD_BIT | ||
292 | string "Ser 3 CD bit (empty = not used)" | ||
298 | depends on ETRAX_SERIAL_PORT3 | 293 | depends on ETRAX_SERIAL_PORT3 |
294 | |||
295 | config ETRAX_SERIAL_PORT4 | ||
296 | bool "Serial port 4 enabled" | ||
297 | depends on ETRAXFS_SERIAL && CRIS_MACH_ARTPEC3 | ||
299 | help | 298 | help |
300 | Enables the DMA9 input channel for ser3 (ttyS3). | 299 | Enables the ETRAX FS serial driver for ser4 (ttyS4). |
301 | If you do not enable DMA, an interrupt for each character will be | 300 | |
302 | used when receiving data. | 301 | choice |
303 | Normally you want to use DMA, unless you use the DMA channel for | 302 | prompt "Ser4 default port type" |
304 | something else. | 303 | depends on ETRAX_SERIAL_PORT4 |
304 | default ETRAX_SERIAL_PORT4_TYPE_232 | ||
305 | help | ||
306 | What DMA channel to use for ser4. | ||
305 | 307 | ||
308 | config ETRAX_SERIAL_PORT4_TYPE_232 | ||
309 | bool "Ser4 is a RS-232 port" | ||
310 | help | ||
311 | Configure serial port 4 to be a RS-232 port. | ||
312 | |||
313 | config ETRAX_SERIAL_PORT4_TYPE_485HD | ||
314 | bool "Ser4 is a half duplex RS-485 port" | ||
315 | depends on ETRAX_RS485 | ||
316 | help | ||
317 | Configure serial port 4 to be a half duplex (two wires) RS-485 port. | ||
318 | |||
319 | config ETRAX_SERIAL_PORT4_TYPE_485FD | ||
320 | bool "Ser4 is a full duplex RS-485 port" | ||
321 | depends on ETRAX_RS485 | ||
322 | help | ||
323 | Configure serial port 4 to be a full duplex (four wires) RS-485 port. | ||
306 | endchoice | 324 | endchoice |
307 | 325 | ||
308 | choice | 326 | choice |
309 | prompt "Ser3 DMA out channel" | 327 | prompt "Ser4 DMA in channel " |
310 | depends on ETRAX_SERIAL_PORT3 | 328 | depends on ETRAX_SERIAL_PORT4 |
311 | default ETRAX_SERIAL_PORT3_NO_DMA_OUT | 329 | default ETRAX_SERIAL_PORT4_NO_DMA_IN |
330 | help | ||
331 | What DMA channel to use for ser4. | ||
332 | |||
312 | 333 | ||
313 | config ETRAX_SERIAL_PORT3_NO_DMA_OUT | 334 | config ETRAX_SERIAL_PORT4_NO_DMA_IN |
314 | bool "Ser3 uses no DMA for output" | 335 | bool "Ser4 uses no DMA for input" |
315 | help | 336 | help |
316 | Do not use DMA for ser3 output. | 337 | Do not use DMA for ser4 input. |
317 | 338 | ||
318 | config ETRAX_SERIAL_PORT3_DMA8_OUT | 339 | config ETRAX_SERIAL_PORT4_DMA9_IN |
319 | bool "Ser3 uses DMA8 for output" | 340 | bool "Ser4 uses DMA9 for input" |
320 | depends on ETRAX_SERIAL_PORT3 | 341 | depends on ETRAX_SERIAL_PORT4 |
321 | help | 342 | help |
322 | Enables the DMA8 output channel for ser3 (ttyS3). | 343 | Enables the DMA9 input channel for ser4 (ttyS4). |
323 | If you do not enable DMA, an interrupt for each character will be | 344 | If you do not enable DMA, an interrupt for each character will be |
324 | used when transmitting data. | 345 | used when receiveing data. |
325 | Normally you want to use DMA, unless you use the DMA channel for | 346 | Normally you want to use DMA, unless you use the DMA channel for |
326 | something else. | 347 | something else. |
327 | 348 | ||
328 | endchoice | 349 | endchoice |
329 | 350 | ||
330 | config ETRAX_SER3_DTR_BIT | 351 | config ETRAX_SER4_DTR_BIT |
331 | string "Ser 3 DTR bit (empty = not used)" | 352 | string "Ser 4 DTR bit (empty = not used)" |
332 | depends on ETRAX_SERIAL_PORT3 | 353 | depends on ETRAX_SERIAL_PORT4 |
333 | 354 | ||
334 | config ETRAX_SER3_RI_BIT | 355 | config ETRAX_SER4_RI_BIT |
335 | string "Ser 3 RI bit (empty = not used)" | 356 | string "Ser 4 RI bit (empty = not used)" |
336 | depends on ETRAX_SERIAL_PORT3 | 357 | depends on ETRAX_SERIAL_PORT4 |
337 | 358 | ||
338 | config ETRAX_SER3_DSR_BIT | 359 | config ETRAX_SER4_DSR_BIT |
339 | string "Ser 3 DSR bit (empty = not used)" | 360 | string "Ser 4 DSR bit (empty = not used)" |
340 | depends on ETRAX_SERIAL_PORT3 | 361 | depends on ETRAX_SERIAL_PORT4 |
341 | 362 | ||
342 | config ETRAX_SER3_CD_BIT | 363 | config ETRAX_SER3_CD_BIT |
343 | string "Ser 3 CD bit (empty = not used)" | 364 | string "Ser 4 CD bit (empty = not used)" |
344 | depends on ETRAX_SERIAL_PORT3 | 365 | depends on ETRAX_SERIAL_PORT4 |
345 | 366 | ||
346 | config ETRAX_RS485 | 367 | config ETRAX_RS485 |
347 | bool "RS-485 support" | 368 | bool "RS-485 support" |
348 | depends on ETRAX_SERIAL | 369 | depends on ETRAXFS_SERIAL |
349 | help | 370 | help |
350 | Enables support for RS-485 serial communication. For a primer on | 371 | Enables support for RS-485 serial communication. For a primer on |
351 | RS-485, see <http://www.hw.cz/english/docs/rs485/rs485.html>. | 372 | RS-485, see <http://www.hw.cz/english/docs/rs485/rs485.html>. |
@@ -356,22 +377,6 @@ config ETRAX_RS485_DISABLE_RECEIVER | |||
356 | help | 377 | help |
357 | It is necessary to disable the serial receiver to avoid serial | 378 | It is necessary to disable the serial receiver to avoid serial |
358 | loopback. Not all products are able to do this in software only. | 379 | loopback. Not all products are able to do this in software only. |
359 | Axis 2400/2401 must disable receiver. | ||
360 | |||
361 | config ETRAX_AXISFLASHMAP | ||
362 | bool "Axis flash-map support" | ||
363 | depends on ETRAX_ARCH_V32 | ||
364 | select MTD | ||
365 | select MTD_CFI | ||
366 | select MTD_CFI_AMDSTD | ||
367 | select MTD_CHAR | ||
368 | select MTD_BLOCK | ||
369 | select MTD_PARTITIONS | ||
370 | select MTD_CONCAT | ||
371 | select MTD_COMPLEX_MAPPINGS | ||
372 | help | ||
373 | This option enables MTD mapping of flash devices. Needed to use | ||
374 | flash memories. If unsure, say Y. | ||
375 | 380 | ||
376 | config ETRAX_SYNCHRONOUS_SERIAL | 381 | config ETRAX_SYNCHRONOUS_SERIAL |
377 | bool "Synchronous serial-port support" | 382 | bool "Synchronous serial-port support" |
@@ -394,7 +399,7 @@ config ETRAX_SYNCHRONOUS_SERIAL0_DMA | |||
394 | 399 | ||
395 | config ETRAX_SYNCHRONOUS_SERIAL_PORT1 | 400 | config ETRAX_SYNCHRONOUS_SERIAL_PORT1 |
396 | bool "Synchronous serial port 1 enabled" | 401 | bool "Synchronous serial port 1 enabled" |
397 | depends on ETRAX_SYNCHRONOUS_SERIAL | 402 | depends on ETRAX_SYNCHRONOUS_SERIAL && ETRAXFS |
398 | help | 403 | help |
399 | Enabled synchronous serial port 1. | 404 | Enabled synchronous serial port 1. |
400 | 405 | ||
@@ -405,6 +410,31 @@ config ETRAX_SYNCHRONOUS_SERIAL1_DMA | |||
405 | A synchronous serial port can run in manual or DMA mode. | 410 | A synchronous serial port can run in manual or DMA mode. |
406 | Selecting this option will make it run in DMA mode. | 411 | Selecting this option will make it run in DMA mode. |
407 | 412 | ||
413 | config ETRAX_AXISFLASHMAP | ||
414 | bool "Axis flash-map support" | ||
415 | depends on ETRAX_ARCH_V32 | ||
416 | select MTD | ||
417 | select MTD_CFI | ||
418 | select MTD_CFI_AMDSTD | ||
419 | select MTD_JEDECPROBE | ||
420 | select MTD_CHAR | ||
421 | select MTD_BLOCK | ||
422 | select MTD_PARTITIONS | ||
423 | select MTD_CONCAT | ||
424 | select MTD_COMPLEX_MAPPINGS | ||
425 | help | ||
426 | This option enables MTD mapping of flash devices. Needed to use | ||
427 | flash memories. If unsure, say Y. | ||
428 | |||
429 | config ETRAX_AXISFLASHMAP_MTD0WHOLE | ||
430 | bool "MTD0 is whole boot flash device" | ||
431 | depends on ETRAX_AXISFLASHMAP | ||
432 | default N | ||
433 | help | ||
434 | When this option is not set, mtd0 refers to the first partition | ||
435 | on the boot flash device. When set, mtd0 refers to the whole | ||
436 | device, with mtd1 referring to the first partition etc. | ||
437 | |||
408 | config ETRAX_PTABLE_SECTOR | 438 | config ETRAX_PTABLE_SECTOR |
409 | int "Byte-offset of partition table sector" | 439 | int "Byte-offset of partition table sector" |
410 | depends on ETRAX_AXISFLASHMAP | 440 | depends on ETRAX_AXISFLASHMAP |
@@ -425,42 +455,32 @@ config ETRAX_NANDFLASH | |||
425 | This option enables MTD mapping of NAND flash devices. Needed to use | 455 | This option enables MTD mapping of NAND flash devices. Needed to use |
426 | NAND flash memories. If unsure, say Y. | 456 | NAND flash memories. If unsure, say Y. |
427 | 457 | ||
458 | config ETRAX_NANDBOOT | ||
459 | bool "Boot from NAND flash" | ||
460 | depends on ETRAX_NANDFLASH | ||
461 | help | ||
462 | This options enables booting from NAND flash devices. | ||
463 | Say Y if your boot code, kernel and root file system is in | ||
464 | NAND flash. Say N if they are in NOR flash. | ||
465 | |||
428 | config ETRAX_I2C | 466 | config ETRAX_I2C |
429 | bool "I2C driver" | 467 | bool "I2C driver" |
430 | depends on ETRAX_ARCH_V32 | 468 | depends on ETRAX_ARCH_V32 |
431 | help | 469 | help |
432 | This option enabled the I2C driver used by e.g. the RTC driver. | 470 | This option enables the I2C driver used by e.g. the RTC driver. |
433 | 471 | ||
434 | config ETRAX_I2C_DATA_PORT | 472 | config ETRAX_V32_I2C_DATA_PORT |
435 | string "I2C data pin" | 473 | string "I2C data pin" |
436 | depends on ETRAX_I2C | 474 | depends on ETRAX_I2C |
437 | help | 475 | help |
438 | The pin to use for I2C data. | 476 | The pin to use for I2C data. |
439 | 477 | ||
440 | config ETRAX_I2C_CLK_PORT | 478 | config ETRAX_V32_I2C_CLK_PORT |
441 | string "I2C clock pin" | 479 | string "I2C clock pin" |
442 | depends on ETRAX_I2C | 480 | depends on ETRAX_I2C |
443 | help | 481 | help |
444 | The pin to use for I2C clock. | 482 | The pin to use for I2C clock. |
445 | 483 | ||
446 | config ETRAX_RTC | ||
447 | bool "Real Time Clock support" | ||
448 | depends on ETRAX_ARCH_V32 | ||
449 | help | ||
450 | Enabled RTC support. | ||
451 | |||
452 | choice | ||
453 | prompt "RTC chip" | ||
454 | depends on ETRAX_RTC | ||
455 | default ETRAX_PCF8563 | ||
456 | |||
457 | config ETRAX_PCF8563 | ||
458 | bool "PCF8563" | ||
459 | help | ||
460 | Philips PCF8563 RTC | ||
461 | |||
462 | endchoice | ||
463 | |||
464 | config ETRAX_GPIO | 484 | config ETRAX_GPIO |
465 | bool "GPIO support" | 485 | bool "GPIO support" |
466 | depends on ETRAX_ARCH_V32 | 486 | depends on ETRAX_ARCH_V32 |
@@ -476,33 +496,36 @@ config ETRAX_GPIO | |||
476 | Remember that you need to setup the port directions appropriately in | 496 | Remember that you need to setup the port directions appropriately in |
477 | the General configuration. | 497 | the General configuration. |
478 | 498 | ||
479 | config ETRAX_PA_BUTTON_BITMASK | 499 | config ETRAX_VIRTUAL_GPIO |
480 | hex "PA-buttons bitmask" | 500 | bool "Virtual GPIO support" |
481 | depends on ETRAX_GPIO | 501 | depends on ETRAX_GPIO |
482 | default "0x02" | ||
483 | help | 502 | help |
484 | This is a bitmask (8 bits) with information about what bits on PA | 503 | Enables the virtual Etrax general port device (major 120, minor 6). |
485 | that are used for buttons. | 504 | It uses an I/O expander for the I2C-bus. |
486 | Most products has a so called TEST button on PA1, if that is true | 505 | |
487 | use 0x02 here. | 506 | config ETRAX_VIRTUAL_GPIO_INTERRUPT_PA_PIN |
488 | Use 00 if there are no buttons on PA. | 507 | int "Virtual GPIO interrupt pin on PA pin" |
489 | If the bitmask is <> 00 a button driver will be included in the gpio | 508 | range 0 7 |
490 | driver. ETRAX general I/O support must be enabled. | 509 | depends on ETRAX_VIRTUAL_GPIO |
510 | help | ||
511 | The pin to use on PA for virtual gpio interrupt. | ||
491 | 512 | ||
492 | config ETRAX_PA_CHANGEABLE_DIR | 513 | config ETRAX_PA_CHANGEABLE_DIR |
493 | hex "PA user changeable dir mask" | 514 | hex "PA user changeable dir mask" |
494 | depends on ETRAX_GPIO | 515 | depends on ETRAX_GPIO |
495 | default "0x00" | 516 | default "0x00" if ETRAXFS |
517 | default "0x00000000" if !ETRAXFS | ||
496 | help | 518 | help |
497 | This is a bitmask (8 bits) with information of what bits in PA that a | 519 | This is a bitmask (8 bits) with information of what bits in PA that a |
498 | user can change direction on using ioctl's. | 520 | user can change direction on using ioctl's. |
499 | Bit set = changeable. | 521 | Bit set = changeable. |
500 | You probably want 0x00 here, but it depends on your hardware. | 522 | You probably want 0 here, but it depends on your hardware. |
501 | 523 | ||
502 | config ETRAX_PA_CHANGEABLE_BITS | 524 | config ETRAX_PA_CHANGEABLE_BITS |
503 | hex "PA user changeable bits mask" | 525 | hex "PA user changeable bits mask" |
504 | depends on ETRAX_GPIO | 526 | depends on ETRAX_GPIO |
505 | default "0x00" | 527 | default "0x00" if ETRAXFS |
528 | default "0x00000000" if !ETRAXFS | ||
506 | help | 529 | help |
507 | This is a bitmask (8 bits) with information of what bits in PA | 530 | This is a bitmask (8 bits) with information of what bits in PA |
508 | that a user can change the value on using ioctl's. | 531 | that a user can change the value on using ioctl's. |
@@ -511,17 +534,19 @@ config ETRAX_PA_CHANGEABLE_BITS | |||
511 | config ETRAX_PB_CHANGEABLE_DIR | 534 | config ETRAX_PB_CHANGEABLE_DIR |
512 | hex "PB user changeable dir mask" | 535 | hex "PB user changeable dir mask" |
513 | depends on ETRAX_GPIO | 536 | depends on ETRAX_GPIO |
514 | default "0x00000" | 537 | default "0x00000" if ETRAXFS |
538 | default "0x00000000" if !ETRAXFS | ||
515 | help | 539 | help |
516 | This is a bitmask (18 bits) with information of what bits in PB | 540 | This is a bitmask (18 bits) with information of what bits in PB |
517 | that a user can change direction on using ioctl's. | 541 | that a user can change direction on using ioctl's. |
518 | Bit set = changeable. | 542 | Bit set = changeable. |
519 | You probably want 0x00000 here, but it depends on your hardware. | 543 | You probably want 0 here, but it depends on your hardware. |
520 | 544 | ||
521 | config ETRAX_PB_CHANGEABLE_BITS | 545 | config ETRAX_PB_CHANGEABLE_BITS |
522 | hex "PB user changeable bits mask" | 546 | hex "PB user changeable bits mask" |
523 | depends on ETRAX_GPIO | 547 | depends on ETRAX_GPIO |
524 | default "0x00000" | 548 | default "0x00000" if ETRAXFS |
549 | default "0x00000000" if !ETRAXFS | ||
525 | help | 550 | help |
526 | This is a bitmask (18 bits) with information of what bits in PB | 551 | This is a bitmask (18 bits) with information of what bits in PB |
527 | that a user can change the value on using ioctl's. | 552 | that a user can change the value on using ioctl's. |
@@ -530,17 +555,19 @@ config ETRAX_PB_CHANGEABLE_BITS | |||
530 | config ETRAX_PC_CHANGEABLE_DIR | 555 | config ETRAX_PC_CHANGEABLE_DIR |
531 | hex "PC user changeable dir mask" | 556 | hex "PC user changeable dir mask" |
532 | depends on ETRAX_GPIO | 557 | depends on ETRAX_GPIO |
533 | default "0x00000" | 558 | default "0x00000" if ETRAXFS |
559 | default "0x00000000" if !ETRAXFS | ||
534 | help | 560 | help |
535 | This is a bitmask (18 bits) with information of what bits in PC | 561 | This is a bitmask (18 bits) with information of what bits in PC |
536 | that a user can change direction on using ioctl's. | 562 | that a user can change direction on using ioctl's. |
537 | Bit set = changeable. | 563 | Bit set = changeable. |
538 | You probably want 0x00000 here, but it depends on your hardware. | 564 | You probably want 0 here, but it depends on your hardware. |
539 | 565 | ||
540 | config ETRAX_PC_CHANGEABLE_BITS | 566 | config ETRAX_PC_CHANGEABLE_BITS |
541 | hex "PC user changeable bits mask" | 567 | hex "PC user changeable bits mask" |
542 | depends on ETRAX_GPIO | 568 | depends on ETRAX_GPIO |
543 | default "0x00000" | 569 | default "0x00000" if ETRAXFS |
570 | default "0x00000000" if ETRAXFS | ||
544 | help | 571 | help |
545 | This is a bitmask (18 bits) with information of what bits in PC | 572 | This is a bitmask (18 bits) with information of what bits in PC |
546 | that a user can change the value on using ioctl's. | 573 | that a user can change the value on using ioctl's. |
@@ -548,7 +575,7 @@ config ETRAX_PC_CHANGEABLE_BITS | |||
548 | 575 | ||
549 | config ETRAX_PD_CHANGEABLE_DIR | 576 | config ETRAX_PD_CHANGEABLE_DIR |
550 | hex "PD user changeable dir mask" | 577 | hex "PD user changeable dir mask" |
551 | depends on ETRAX_GPIO | 578 | depends on ETRAX_GPIO && ETRAXFS |
552 | default "0x00000" | 579 | default "0x00000" |
553 | help | 580 | help |
554 | This is a bitmask (18 bits) with information of what bits in PD | 581 | This is a bitmask (18 bits) with information of what bits in PD |
@@ -558,7 +585,7 @@ config ETRAX_PD_CHANGEABLE_DIR | |||
558 | 585 | ||
559 | config ETRAX_PD_CHANGEABLE_BITS | 586 | config ETRAX_PD_CHANGEABLE_BITS |
560 | hex "PD user changeable bits mask" | 587 | hex "PD user changeable bits mask" |
561 | depends on ETRAX_GPIO | 588 | depends on ETRAX_GPIO && ETRAXFS |
562 | default "0x00000" | 589 | default "0x00000" |
563 | help | 590 | help |
564 | This is a bitmask (18 bits) with information of what bits in PD | 591 | This is a bitmask (18 bits) with information of what bits in PD |
@@ -567,7 +594,7 @@ config ETRAX_PD_CHANGEABLE_BITS | |||
567 | 594 | ||
568 | config ETRAX_PE_CHANGEABLE_DIR | 595 | config ETRAX_PE_CHANGEABLE_DIR |
569 | hex "PE user changeable dir mask" | 596 | hex "PE user changeable dir mask" |
570 | depends on ETRAX_GPIO | 597 | depends on ETRAX_GPIO && ETRAXFS |
571 | default "0x00000" | 598 | default "0x00000" |
572 | help | 599 | help |
573 | This is a bitmask (18 bits) with information of what bits in PE | 600 | This is a bitmask (18 bits) with information of what bits in PE |
@@ -577,20 +604,36 @@ config ETRAX_PE_CHANGEABLE_DIR | |||
577 | 604 | ||
578 | config ETRAX_PE_CHANGEABLE_BITS | 605 | config ETRAX_PE_CHANGEABLE_BITS |
579 | hex "PE user changeable bits mask" | 606 | hex "PE user changeable bits mask" |
580 | depends on ETRAX_GPIO | 607 | depends on ETRAX_GPIO && ETRAXFS |
581 | default "0x00000" | 608 | default "0x00000" |
582 | help | 609 | help |
583 | This is a bitmask (18 bits) with information of what bits in PE | 610 | This is a bitmask (18 bits) with information of what bits in PE |
584 | that a user can change the value on using ioctl's. | 611 | that a user can change the value on using ioctl's. |
585 | Bit set = changeable. | 612 | Bit set = changeable. |
586 | 613 | ||
614 | config ETRAX_PV_CHANGEABLE_DIR | ||
615 | hex "PV user changeable dir mask" | ||
616 | depends on ETRAX_VIRTUAL_GPIO | ||
617 | default "0x0000" | ||
618 | help | ||
619 | This is a bitmask (16 bits) with information of what bits in PV | ||
620 | that a user can change direction on using ioctl's. | ||
621 | Bit set = changeable. | ||
622 | You probably want 0x0000 here, but it depends on your hardware. | ||
623 | |||
624 | config ETRAX_PV_CHANGEABLE_BITS | ||
625 | hex "PV user changeable bits mask" | ||
626 | depends on ETRAX_VIRTUAL_GPIO | ||
627 | default "0x0000" | ||
628 | help | ||
629 | This is a bitmask (16 bits) with information of what bits in PV | ||
630 | that a user can change the value on using ioctl's. | ||
631 | Bit set = changeable. | ||
632 | |||
587 | config ETRAX_CARDBUS | 633 | config ETRAX_CARDBUS |
588 | bool "Cardbus support" | 634 | bool "Cardbus support" |
589 | depends on ETRAX_ARCH_V32 | 635 | depends on ETRAX_ARCH_V32 |
590 | select PCCARD | ||
591 | select CARDBUS | ||
592 | select HOTPLUG | 636 | select HOTPLUG |
593 | select PCCARD_NONSTATIC | ||
594 | help | 637 | help |
595 | Enabled the ETRAX Cardbus driver. | 638 | Enabled the ETRAX Cardbus driver. |
596 | 639 | ||
@@ -613,4 +656,202 @@ config ETRAX_STREAMCOPROC | |||
613 | This option enables a driver for the stream co-processor | 656 | This option enables a driver for the stream co-processor |
614 | for cryptographic operations. | 657 | for cryptographic operations. |
615 | 658 | ||
659 | source drivers/mmc/Kconfig | ||
660 | |||
661 | config ETRAX_MMC_IOP | ||
662 | tristate "MMC/SD host driver using IO-processor" | ||
663 | depends on ETRAX_ARCH_V32 && MMC | ||
664 | help | ||
665 | This option enables the SD/MMC host controller interface. | ||
666 | The host controller is implemented using the built in | ||
667 | IO-Processor. Only the SPU is used in this implementation. | ||
668 | |||
669 | config ETRAX_SPI_MMC | ||
670 | # Make this one of several "choices" (possible simultaneously but | ||
671 | # suggested uniquely) when an IOP driver emerges for "real" MMC/SD | ||
672 | # protocol support. | ||
673 | tristate | ||
674 | depends on !ETRAX_MMC_IOP | ||
675 | default MMC | ||
676 | select SPI | ||
677 | select MMC_SPI | ||
678 | select ETRAX_SPI_MMC_BOARD | ||
679 | |||
680 | # For the parts that can't be a module (due to restrictions in | ||
681 | # framework elsewhere). | ||
682 | config ETRAX_SPI_MMC_BOARD | ||
683 | boolean | ||
684 | default n | ||
685 | |||
686 | # While the board info is MMC_SPI only, the drivers are written to be | ||
687 | # independent of MMC_SPI, so we'll keep SPI non-dependent on the | ||
688 | # MMC_SPI config choices (well, except for a single depends-on-line | ||
689 | # for the board-info file until a separate non-MMC SPI board file | ||
690 | # emerges). | ||
691 | # FIXME: When that happens, we'll need to be able to ask for and | ||
692 | # configure non-MMC SPI ports together with MMC_SPI ports (if multiple | ||
693 | # SPI ports are enabled). | ||
694 | |||
695 | config SPI_ETRAX_SSER | ||
696 | tristate | ||
697 | depends on SPI_MASTER && ETRAX_ARCH_V32 && EXPERIMENTAL | ||
698 | select SPI_BITBANG | ||
699 | help | ||
700 | This enables using an synchronous serial (sser) port as a | ||
701 | SPI master controller on Axis ETRAX FS and later. The | ||
702 | driver can be configured to use any sser port. | ||
703 | |||
704 | config SPI_ETRAX_GPIO | ||
705 | tristate | ||
706 | depends on SPI_MASTER && ETRAX_ARCH_V32 && EXPERIMENTAL | ||
707 | select SPI_BITBANG | ||
708 | help | ||
709 | This enables using GPIO pins port as a SPI master controller | ||
710 | on Axis ETRAX FS and later. The driver can be configured to | ||
711 | use any GPIO pins. | ||
712 | |||
713 | config ETRAX_SPI_SSER0 | ||
714 | tristate "SPI using synchronous serial port 0 (sser0)" | ||
715 | depends on ETRAX_SPI_MMC | ||
716 | default m if MMC_SPI=m | ||
717 | default y if MMC_SPI=y | ||
718 | default y if MMC_SPI=n | ||
719 | select SPI_ETRAX_SSER | ||
720 | help | ||
721 | Say Y for an MMC/SD socket connected to synchronous serial port 0, | ||
722 | or for devices using the SPI protocol on that port. Say m if you | ||
723 | want to build it as a module, which will be named spi_crisv32_sser. | ||
724 | (You need to select MMC separately.) | ||
725 | |||
726 | config ETRAX_SPI_SSER0_DMA | ||
727 | bool "DMA for SPI on sser0 enabled" | ||
728 | depends on ETRAX_SPI_SSER0 | ||
729 | depends on !ETRAX_SERIAL_PORT1_DMA4_OUT && !ETRAX_SERIAL_PORT1_DMA5_IN | ||
730 | default y | ||
731 | help | ||
732 | Say Y if using DMA (dma4/dma5) for SPI on synchronous serial port 0. | ||
733 | |||
734 | config ETRAX_SPI_MMC_CD_SSER0_PIN | ||
735 | string "MMC/SD card detect pin for SPI on sser0" | ||
736 | depends on ETRAX_SPI_SSER0 && MMC_SPI | ||
737 | default "pd11" | ||
738 | help | ||
739 | The pin to use for SD/MMC card detect. This pin should be pulled up | ||
740 | and grounded when a card is present. If defined as " " (space), no | ||
741 | pin is selected. A card must then always be inserted for proper | ||
742 | action. | ||
743 | |||
744 | config ETRAX_SPI_MMC_WP_SSER0_PIN | ||
745 | string "MMC/SD card write-protect pin for SPI on sser0" | ||
746 | depends on ETRAX_SPI_SSER0 && MMC_SPI | ||
747 | default "pd10" | ||
748 | help | ||
749 | The pin to use for the SD/MMC write-protect signal for a memory | ||
750 | card. If defined as " " (space), the card is considered writable. | ||
751 | |||
752 | config ETRAX_SPI_SSER1 | ||
753 | tristate "SPI using synchronous serial port 1 (sser1)" | ||
754 | depends on ETRAX_SPI_MMC | ||
755 | default m if MMC_SPI=m && ETRAX_SPI_SSER0=n | ||
756 | default y if MMC_SPI=y && ETRAX_SPI_SSER0=n | ||
757 | default y if MMC_SPI=n && ETRAX_SPI_SSER0=n | ||
758 | select SPI_ETRAX_SSER | ||
759 | help | ||
760 | Say Y for an MMC/SD socket connected to synchronous serial port 1, | ||
761 | or for devices using the SPI protocol on that port. Say m if you | ||
762 | want to build it as a module, which will be named spi_crisv32_sser. | ||
763 | (You need to select MMC separately.) | ||
764 | |||
765 | config ETRAX_SPI_SSER1_DMA | ||
766 | bool "DMA for SPI on sser1 enabled" | ||
767 | depends on ETRAX_SPI_SSER1 && !ETRAX_ETHERNET_IFACE1 | ||
768 | depends on !ETRAX_SERIAL_PORT0_DMA6_OUT && !ETRAX_SERIAL_PORT0_DMA7_IN | ||
769 | default y | ||
770 | help | ||
771 | Say Y if using DMA (dma6/dma7) for SPI on synchronous serial port 1. | ||
772 | |||
773 | config ETRAX_SPI_MMC_CD_SSER1_PIN | ||
774 | string "MMC/SD card detect pin for SPI on sser1" | ||
775 | depends on ETRAX_SPI_SSER1 && MMC_SPI | ||
776 | default "pd12" | ||
777 | help | ||
778 | The pin to use for SD/MMC card detect. This pin should be pulled up | ||
779 | and grounded when a card is present. If defined as " " (space), no | ||
780 | pin is selected. A card must then always be inserted for proper | ||
781 | action. | ||
782 | |||
783 | config ETRAX_SPI_MMC_WP_SSER1_PIN | ||
784 | string "MMC/SD card write-protect pin for SPI on sser1" | ||
785 | depends on ETRAX_SPI_SSER1 && MMC_SPI | ||
786 | default "pd9" | ||
787 | help | ||
788 | The pin to use for the SD/MMC write-protect signal for a memory | ||
789 | card. If defined as " " (space), the card is considered writable. | ||
790 | |||
791 | config ETRAX_SPI_GPIO | ||
792 | tristate "Bitbanged SPI using gpio pins" | ||
793 | depends on ETRAX_SPI_MMC | ||
794 | select SPI_ETRAX_GPIO | ||
795 | default m if MMC_SPI=m && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n | ||
796 | default y if MMC_SPI=y && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n | ||
797 | default y if MMC_SPI=n && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n | ||
798 | help | ||
799 | Say Y for an MMC/SD socket connected to general I/O pins (but not | ||
800 | a complete synchronous serial ports), or for devices using the SPI | ||
801 | protocol on general I/O pins. Slow and slows down the system. | ||
802 | Say m to build it as a module, which will be called spi_crisv32_gpio. | ||
803 | (You need to select MMC separately.) | ||
804 | |||
805 | # The default match that of sser0, only because that's how it was tested. | ||
806 | config ETRAX_SPI_CS_PIN | ||
807 | string "SPI chip select pin" | ||
808 | depends on ETRAX_SPI_GPIO | ||
809 | default "pc3" | ||
810 | help | ||
811 | The pin to use for SPI chip select. | ||
812 | |||
813 | config ETRAX_SPI_CLK_PIN | ||
814 | string "SPI clock pin" | ||
815 | depends on ETRAX_SPI_GPIO | ||
816 | default "pc1" | ||
817 | help | ||
818 | The pin to use for the SPI clock. | ||
819 | |||
820 | config ETRAX_SPI_DATAIN_PIN | ||
821 | string "SPI MISO (data in) pin" | ||
822 | depends on ETRAX_SPI_GPIO | ||
823 | default "pc16" | ||
824 | help | ||
825 | The pin to use for SPI data in from the device. | ||
826 | |||
827 | config ETRAX_SPI_DATAOUT_PIN | ||
828 | string "SPI MOSI (data out) pin" | ||
829 | depends on ETRAX_SPI_GPIO | ||
830 | default "pc0" | ||
831 | help | ||
832 | The pin to use for SPI data out to the device. | ||
833 | |||
834 | config ETRAX_SPI_MMC_CD_GPIO_PIN | ||
835 | string "MMC/SD card detect pin for SPI using gpio (space for none)" | ||
836 | depends on ETRAX_SPI_GPIO && MMC_SPI | ||
837 | default "pd11" | ||
838 | help | ||
839 | The pin to use for SD/MMC card detect. This pin should be pulled up | ||
840 | and grounded when a card is present. If defined as " " (space), no | ||
841 | pin is selected. A card must then always be inserted for proper | ||
842 | action. | ||
843 | |||
844 | config ETRAX_SPI_MMC_WP_GPIO_PIN | ||
845 | string "MMC/SD card write-protect pin for SPI using gpio (space for none)" | ||
846 | depends on ETRAX_SPI_GPIO && MMC_SPI | ||
847 | default "pd10" | ||
848 | help | ||
849 | The pin to use for the SD/MMC write-protect signal for a memory | ||
850 | card. If defined as " " (space), the card is considered writable. | ||
851 | |||
852 | # Avoid choices causing non-working configs by conditionalizing the inclusion. | ||
853 | if ETRAX_SPI_MMC | ||
854 | source drivers/spi/Kconfig | ||
855 | endif | ||
856 | |||
616 | endif | 857 | endif |