4 bool "Ethernet support"
5 depends on ETRAX_ARCH_V32
10 This option enables the ETRAX FS built-in 10/100Mbit Ethernet
14 bool "PHY not present"
15 depends on ETRAX_ETHERNET
18 This option disables all MDIO communication with an ethernet
19 transceiver connected to the MII interface. This option shall
20 typically be enabled if the MII interface is connected to a
21 switch. This option should normally be disabled. If enabled,
22 speed and duplex will be locked to 100 Mbit and full duplex.
24 config ETRAX_ETHERNET_IFACE0
25 depends on ETRAX_ETHERNET
26 bool "Enable network interface 0"
28 config ETRAX_ETHERNET_IFACE1
29 depends on (ETRAX_ETHERNET && ETRAXFS)
30 bool "Enable network interface 1 (uses DMA6 and DMA7)"
32 config ETRAX_ETHERNET_GBIT
33 depends on (ETRAX_ETHERNET && CRIS_MACH_ARTPEC3)
34 bool "Enable gigabit Ethernet support"
37 prompt "Eth0 led group"
38 depends on ETRAX_ETHERNET_IFACE0
39 default ETRAX_ETH0_USE_LEDGRP0
41 config ETRAX_ETH0_USE_LEDGRP0
43 depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO
45 Use LED grp 0 for eth0
47 config ETRAX_ETH0_USE_LEDGRP1
49 depends on ETRAX_NBR_LED_GRP_TWO
51 Use LED grp 1 for eth0
53 config ETRAX_ETH0_USE_LEDGRPNULL
54 bool "Use no LEDs for eth0"
60 prompt "Eth1 led group"
61 depends on ETRAX_ETHERNET_IFACE1
62 default ETRAX_ETH1_USE_LEDGRP1
64 config ETRAX_ETH1_USE_LEDGRP0
66 depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO
68 Use LED grp 0 for eth1
70 config ETRAX_ETH1_USE_LEDGRP1
72 depends on ETRAX_NBR_LED_GRP_TWO
74 Use LED grp 1 for eth1
76 config ETRAX_ETH1_USE_LEDGRPNULL
77 bool "Use no LEDs for eth1"
83 bool "Serial-port support"
84 depends on ETRAX_ARCH_V32
86 select SERIAL_CORE_CONSOLE
88 Enables the ETRAX FS serial driver for ser0 (ttyS0)
89 You probably want this enabled.
93 depends on ETRAXFS_SERIAL
95 Enables support for RS-485 serial communication.
97 config ETRAX_RS485_DISABLE_RECEIVER
98 bool "Disable serial receiver"
99 depends on ETRAX_RS485
101 It is necessary to disable the serial receiver to avoid serial
102 loopback. Not all products are able to do this in software only.
104 config ETRAX_SERIAL_PORT0
105 bool "Serial port 0 enabled"
106 depends on ETRAXFS_SERIAL
108 Enables the ETRAX FS serial driver for ser0 (ttyS0)
109 Normally you want this on. You can control what DMA channels to use
110 if you do not need DMA to something else.
111 ser0 can use dma4 or dma6 for output and dma5 or dma7 for input.
114 prompt "Ser0 default port type "
115 depends on ETRAX_SERIAL_PORT0
116 default ETRAX_SERIAL_PORT0_TYPE_232
120 config ETRAX_SERIAL_PORT0_TYPE_232
121 bool "Ser0 is a RS-232 port"
123 Configure serial port 0 to be a RS-232 port.
125 config ETRAX_SERIAL_PORT0_TYPE_485HD
126 bool "Ser0 is a half duplex RS-485 port"
127 depends on ETRAX_RS485
129 Configure serial port 0 to be a half duplex (two wires) RS-485 port.
131 config ETRAX_SERIAL_PORT0_TYPE_485FD
132 bool "Ser0 is a full duplex RS-485 port"
133 depends on ETRAX_RS485
135 Configure serial port 0 to be a full duplex (four wires) RS-485 port.
138 config ETRAX_SER0_DTR_BIT
139 string "Ser 0 DTR bit (empty = not used)"
140 depends on ETRAX_SERIAL_PORT0
142 config ETRAX_SER0_RI_BIT
143 string "Ser 0 RI bit (empty = not used)"
144 depends on ETRAX_SERIAL_PORT0
146 config ETRAX_SER0_DSR_BIT
147 string "Ser 0 DSR bit (empty = not used)"
148 depends on ETRAX_SERIAL_PORT0
150 config ETRAX_SER0_CD_BIT
151 string "Ser 0 CD bit (empty = not used)"
152 depends on ETRAX_SERIAL_PORT0
154 config ETRAX_SERIAL_PORT1
155 bool "Serial port 1 enabled"
156 depends on ETRAXFS_SERIAL
158 Enables the ETRAX FS serial driver for ser1 (ttyS1).
161 prompt "Ser1 default port type"
162 depends on ETRAX_SERIAL_PORT1
163 default ETRAX_SERIAL_PORT1_TYPE_232
167 config ETRAX_SERIAL_PORT1_TYPE_232
168 bool "Ser1 is a RS-232 port"
170 Configure serial port 1 to be a RS-232 port.
172 config ETRAX_SERIAL_PORT1_TYPE_485HD
173 bool "Ser1 is a half duplex RS-485 port"
174 depends on ETRAX_RS485
176 Configure serial port 1 to be a half duplex (two wires) RS-485 port.
178 config ETRAX_SERIAL_PORT1_TYPE_485FD
179 bool "Ser1 is a full duplex RS-485 port"
180 depends on ETRAX_RS485
182 Configure serial port 1 to be a full duplex (four wires) RS-485 port.
185 config ETRAX_SER1_DTR_BIT
186 string "Ser 1 DTR bit (empty = not used)"
187 depends on ETRAX_SERIAL_PORT1
189 config ETRAX_SER1_RI_BIT
190 string "Ser 1 RI bit (empty = not used)"
191 depends on ETRAX_SERIAL_PORT1
193 config ETRAX_SER1_DSR_BIT
194 string "Ser 1 DSR bit (empty = not used)"
195 depends on ETRAX_SERIAL_PORT1
197 config ETRAX_SER1_CD_BIT
198 string "Ser 1 CD bit (empty = not used)"
199 depends on ETRAX_SERIAL_PORT1
201 config ETRAX_SERIAL_PORT2
202 bool "Serial port 2 enabled"
203 depends on ETRAXFS_SERIAL
205 Enables the ETRAX FS serial driver for ser2 (ttyS2).
208 prompt "Ser2 default port type"
209 depends on ETRAX_SERIAL_PORT2
210 default ETRAX_SERIAL_PORT2_TYPE_232
212 What DMA channel to use for ser2
214 config ETRAX_SERIAL_PORT2_TYPE_232
215 bool "Ser2 is a RS-232 port"
217 Configure serial port 2 to be a RS-232 port.
219 config ETRAX_SERIAL_PORT2_TYPE_485HD
220 bool "Ser2 is a half duplex RS-485 port"
221 depends on ETRAX_RS485
223 Configure serial port 2 to be a half duplex (two wires) RS-485 port.
225 config ETRAX_SERIAL_PORT2_TYPE_485FD
226 bool "Ser2 is a full duplex RS-485 port"
227 depends on ETRAX_RS485
229 Configure serial port 2 to be a full duplex (four wires) RS-485 port.
233 config ETRAX_SER2_DTR_BIT
234 string "Ser 2 DTR bit (empty = not used)"
235 depends on ETRAX_SERIAL_PORT2
237 config ETRAX_SER2_RI_BIT
238 string "Ser 2 RI bit (empty = not used)"
239 depends on ETRAX_SERIAL_PORT2
241 config ETRAX_SER2_DSR_BIT
242 string "Ser 2 DSR bit (empty = not used)"
243 depends on ETRAX_SERIAL_PORT2
245 config ETRAX_SER2_CD_BIT
246 string "Ser 2 CD bit (empty = not used)"
247 depends on ETRAX_SERIAL_PORT2
249 config ETRAX_SERIAL_PORT3
250 bool "Serial port 3 enabled"
251 depends on ETRAXFS_SERIAL
253 Enables the ETRAX FS serial driver for ser3 (ttyS3).
256 prompt "Ser3 default port type"
257 depends on ETRAX_SERIAL_PORT3
258 default ETRAX_SERIAL_PORT3_TYPE_232
260 What DMA channel to use for ser3.
262 config ETRAX_SERIAL_PORT3_TYPE_232
263 bool "Ser3 is a RS-232 port"
265 Configure serial port 3 to be a RS-232 port.
267 config ETRAX_SERIAL_PORT3_TYPE_485HD
268 bool "Ser3 is a half duplex RS-485 port"
269 depends on ETRAX_RS485
271 Configure serial port 3 to be a half duplex (two wires) RS-485 port.
273 config ETRAX_SERIAL_PORT3_TYPE_485FD
274 bool "Ser3 is a full duplex RS-485 port"
275 depends on ETRAX_RS485
277 Configure serial port 3 to be a full duplex (four wires) RS-485 port.
280 config ETRAX_SER3_DTR_BIT
281 string "Ser 3 DTR bit (empty = not used)"
282 depends on ETRAX_SERIAL_PORT3
284 config ETRAX_SER3_RI_BIT
285 string "Ser 3 RI bit (empty = not used)"
286 depends on ETRAX_SERIAL_PORT3
288 config ETRAX_SER3_DSR_BIT
289 string "Ser 3 DSR bit (empty = not used)"
290 depends on ETRAX_SERIAL_PORT3
292 config ETRAX_SER3_CD_BIT
293 string "Ser 3 CD bit (empty = not used)"
294 depends on ETRAX_SERIAL_PORT3
296 config ETRAX_SERIAL_PORT4
297 bool "Serial port 4 enabled"
298 depends on ETRAXFS_SERIAL && CRIS_MACH_ARTPEC3
300 Enables the ETRAX FS serial driver for ser4 (ttyS4).
303 prompt "Ser4 default port type"
304 depends on ETRAX_SERIAL_PORT4
305 default ETRAX_SERIAL_PORT4_TYPE_232
307 What DMA channel to use for ser4.
309 config ETRAX_SERIAL_PORT4_TYPE_232
310 bool "Ser4 is a RS-232 port"
312 Configure serial port 4 to be a RS-232 port.
314 config ETRAX_SERIAL_PORT4_TYPE_485HD
315 bool "Ser4 is a half duplex RS-485 port"
316 depends on ETRAX_RS485
318 Configure serial port 4 to be a half duplex (two wires) RS-485 port.
320 config ETRAX_SERIAL_PORT4_TYPE_485FD
321 bool "Ser4 is a full duplex RS-485 port"
322 depends on ETRAX_RS485
324 Configure serial port 4 to be a full duplex (four wires) RS-485 port.
328 prompt "Ser4 DMA in channel "
329 depends on ETRAX_SERIAL_PORT4
330 default ETRAX_SERIAL_PORT4_NO_DMA_IN
332 What DMA channel to use for ser4.
335 config ETRAX_SERIAL_PORT4_NO_DMA_IN
336 bool "Ser4 uses no DMA for input"
338 Do not use DMA for ser4 input.
340 config ETRAX_SERIAL_PORT4_DMA9_IN
341 bool "Ser4 uses DMA9 for input"
342 depends on ETRAX_SERIAL_PORT4
344 Enables the DMA9 input channel for ser4 (ttyS4).
345 If you do not enable DMA, an interrupt for each character will be
346 used when receiving data.
347 Normally you want to use DMA, unless you use the DMA channel for
352 config ETRAX_SER4_DTR_BIT
353 string "Ser 4 DTR bit (empty = not used)"
354 depends on ETRAX_SERIAL_PORT4
356 config ETRAX_SER4_RI_BIT
357 string "Ser 4 RI bit (empty = not used)"
358 depends on ETRAX_SERIAL_PORT4
360 config ETRAX_SER4_DSR_BIT
361 string "Ser 4 DSR bit (empty = not used)"
362 depends on ETRAX_SERIAL_PORT4
364 config ETRAX_SER4_CD_BIT
365 string "Ser 4 CD bit (empty = not used)"
366 depends on ETRAX_SERIAL_PORT4
368 config ETRAX_SYNCHRONOUS_SERIAL
369 bool "Synchronous serial-port support"
370 depends on ETRAX_ARCH_V32
372 Enables the ETRAX FS synchronous serial driver.
374 config ETRAX_SYNCHRONOUS_SERIAL_PORT0
375 bool "Synchronous serial port 0 enabled"
376 depends on ETRAX_SYNCHRONOUS_SERIAL
378 Enabled synchronous serial port 0.
380 config ETRAX_SYNCHRONOUS_SERIAL0_DMA
381 bool "Enable DMA on synchronous serial port 0."
382 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
384 A synchronous serial port can run in manual or DMA mode.
385 Selecting this option will make it run in DMA mode.
387 config ETRAX_SYNCHRONOUS_SERIAL_PORT1
388 bool "Synchronous serial port 1 enabled"
389 depends on ETRAX_SYNCHRONOUS_SERIAL && ETRAXFS
391 Enabled synchronous serial port 1.
393 config ETRAX_SYNCHRONOUS_SERIAL1_DMA
394 bool "Enable DMA on synchronous serial port 1."
395 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
397 A synchronous serial port can run in manual or DMA mode.
398 Selecting this option will make it run in DMA mode.
400 config ETRAX_AXISFLASHMAP
401 bool "Axis flash-map support"
402 depends on ETRAX_ARCH_V32
405 select MTD_CFI_AMDSTD
406 select MTD_JEDECPROBE
409 select MTD_COMPLEX_MAPPINGS
411 This option enables MTD mapping of flash devices. Needed to use
412 flash memories. If unsure, say Y.
414 config ETRAX_AXISFLASHMAP_MTD0WHOLE
415 bool "MTD0 is whole boot flash device"
416 depends on ETRAX_AXISFLASHMAP
419 When this option is not set, mtd0 refers to the first partition
420 on the boot flash device. When set, mtd0 refers to the whole
421 device, with mtd1 referring to the first partition etc.
423 config ETRAX_PTABLE_SECTOR
424 int "Byte-offset of partition table sector"
425 depends on ETRAX_AXISFLASHMAP
428 Byte-offset of the partition table in the first flash chip.
429 The default value is 64kB and should not be changed unless
430 you know exactly what you are doing. The only valid reason
431 for changing this is when the flash block size is bigger
432 than 64kB (e.g. when using two parallel 16 bit flashes).
434 config ETRAX_NANDFLASH
435 bool "NAND flash support"
436 depends on ETRAX_ARCH_V32
440 This option enables MTD mapping of NAND flash devices. Needed to use
441 NAND flash memories. If unsure, say Y.
443 config ETRAX_NANDBOOT
444 bool "Boot from NAND flash"
445 depends on ETRAX_NANDFLASH
447 This options enables booting from NAND flash devices.
448 Say Y if your boot code, kernel and root file system is in
449 NAND flash. Say N if they are in NOR flash.
453 depends on ETRAX_ARCH_V32
455 This option enables the I2C driver used by e.g. the RTC driver.
457 config ETRAX_V32_I2C_DATA_PORT
458 string "I2C data pin"
461 The pin to use for I2C data.
463 config ETRAX_V32_I2C_CLK_PORT
464 string "I2C clock pin"
467 The pin to use for I2C clock.
471 depends on ETRAX_ARCH_V32
473 Enables the ETRAX general port device (major 120, minors 0-4).
474 You can use this driver to access the general port bits. It supports
476 #include <linux/etraxgpio.h>
477 fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob
478 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set);
479 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear);
480 err = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READ_INBITS), &val);
481 Remember that you need to setup the port directions appropriately in
482 the General configuration.
484 config ETRAX_VIRTUAL_GPIO
485 bool "Virtual GPIO support"
486 depends on ETRAX_GPIO
488 Enables the virtual Etrax general port device (major 120, minor 6).
489 It uses an I/O expander for the I2C-bus.
491 config ETRAX_VIRTUAL_GPIO_INTERRUPT_PA_PIN
492 int "Virtual GPIO interrupt pin on PA pin"
494 depends on ETRAX_VIRTUAL_GPIO
496 The pin to use on PA for virtual gpio interrupt.
498 config ETRAX_PA_CHANGEABLE_DIR
499 hex "PA user changeable dir mask"
500 depends on ETRAX_GPIO
501 default "0x00" if ETRAXFS
502 default "0x00000000" if !ETRAXFS
504 This is a bitmask (8 bits) with information of what bits in PA that a
505 user can change direction on using ioctl's.
506 Bit set = changeable.
507 You probably want 0 here, but it depends on your hardware.
509 config ETRAX_PA_CHANGEABLE_BITS
510 hex "PA user changeable bits mask"
511 depends on ETRAX_GPIO
512 default "0x00" if ETRAXFS
513 default "0x00000000" if !ETRAXFS
515 This is a bitmask (8 bits) with information of what bits in PA
516 that a user can change the value on using ioctl's.
517 Bit set = changeable.
519 config ETRAX_PB_CHANGEABLE_DIR
520 hex "PB user changeable dir mask"
521 depends on ETRAX_GPIO
522 default "0x00000" if ETRAXFS
523 default "0x00000000" if !ETRAXFS
525 This is a bitmask (18 bits) with information of what bits in PB
526 that a user can change direction on using ioctl's.
527 Bit set = changeable.
528 You probably want 0 here, but it depends on your hardware.
530 config ETRAX_PB_CHANGEABLE_BITS
531 hex "PB user changeable bits mask"
532 depends on ETRAX_GPIO
533 default "0x00000" if ETRAXFS
534 default "0x00000000" if !ETRAXFS
536 This is a bitmask (18 bits) with information of what bits in PB
537 that a user can change the value on using ioctl's.
538 Bit set = changeable.
540 config ETRAX_PC_CHANGEABLE_DIR
541 hex "PC user changeable dir mask"
542 depends on ETRAX_GPIO
543 default "0x00000" if ETRAXFS
544 default "0x00000000" if !ETRAXFS
546 This is a bitmask (18 bits) with information of what bits in PC
547 that a user can change direction on using ioctl's.
548 Bit set = changeable.
549 You probably want 0 here, but it depends on your hardware.
551 config ETRAX_PC_CHANGEABLE_BITS
552 hex "PC user changeable bits mask"
553 depends on ETRAX_GPIO
554 default "0x00000" if ETRAXFS
555 default "0x00000000" if ETRAXFS
557 This is a bitmask (18 bits) with information of what bits in PC
558 that a user can change the value on using ioctl's.
559 Bit set = changeable.
561 config ETRAX_PD_CHANGEABLE_DIR
562 hex "PD user changeable dir mask"
563 depends on ETRAX_GPIO && ETRAXFS
566 This is a bitmask (18 bits) with information of what bits in PD
567 that a user can change direction on using ioctl's.
568 Bit set = changeable.
569 You probably want 0x00000 here, but it depends on your hardware.
571 config ETRAX_PD_CHANGEABLE_BITS
572 hex "PD user changeable bits mask"
573 depends on ETRAX_GPIO && ETRAXFS
576 This is a bitmask (18 bits) with information of what bits in PD
577 that a user can change the value on using ioctl's.
578 Bit set = changeable.
580 config ETRAX_PE_CHANGEABLE_DIR
581 hex "PE user changeable dir mask"
582 depends on ETRAX_GPIO && ETRAXFS
585 This is a bitmask (18 bits) with information of what bits in PE
586 that a user can change direction on using ioctl's.
587 Bit set = changeable.
588 You probably want 0x00000 here, but it depends on your hardware.
590 config ETRAX_PE_CHANGEABLE_BITS
591 hex "PE user changeable bits mask"
592 depends on ETRAX_GPIO && ETRAXFS
595 This is a bitmask (18 bits) with information of what bits in PE
596 that a user can change the value on using ioctl's.
597 Bit set = changeable.
599 config ETRAX_PV_CHANGEABLE_DIR
600 hex "PV user changeable dir mask"
601 depends on ETRAX_VIRTUAL_GPIO
604 This is a bitmask (16 bits) with information of what bits in PV
605 that a user can change direction on using ioctl's.
606 Bit set = changeable.
607 You probably want 0x0000 here, but it depends on your hardware.
609 config ETRAX_PV_CHANGEABLE_BITS
610 hex "PV user changeable bits mask"
611 depends on ETRAX_VIRTUAL_GPIO
614 This is a bitmask (16 bits) with information of what bits in PV
615 that a user can change the value on using ioctl's.
616 Bit set = changeable.
619 bool "Cardbus support"
620 depends on ETRAX_ARCH_V32
623 Enabled the ETRAX Cardbus driver.
627 depends on ETRAX_CARDBUS
629 select HAVE_GENERIC_DMA_COHERENT
631 config ETRAX_IOP_FW_LOAD
632 tristate "IO-processor hotplug firmware loading support"
633 depends on ETRAX_ARCH_V32
636 Enables IO-processor hotplug firmware loading support.
638 config ETRAX_STREAMCOPROC
639 tristate "Stream co-processor driver enabled"
640 depends on ETRAX_ARCH_V32
642 This option enables a driver for the stream co-processor
643 for cryptographic operations.
645 source drivers/mmc/Kconfig
648 tristate "MMC/SD host driver using IO-processor"
649 depends on ETRAX_ARCH_V32 && MMC
651 This option enables the SD/MMC host controller interface.
652 The host controller is implemented using the built in
653 IO-Processor. Only the SPU is used in this implementation.
656 # Make this one of several "choices" (possible simultaneously but
657 # suggested uniquely) when an IOP driver emerges for "real" MMC/SD
660 depends on !ETRAX_MMC_IOP
664 select ETRAX_SPI_MMC_BOARD
666 # For the parts that can't be a module (due to restrictions in
667 # framework elsewhere).
668 config ETRAX_SPI_MMC_BOARD
672 # While the board info is MMC_SPI only, the drivers are written to be
673 # independent of MMC_SPI, so we'll keep SPI non-dependent on the
674 # MMC_SPI config choices (well, except for a single depends-on-line
675 # for the board-info file until a separate non-MMC SPI board file
677 # FIXME: When that happens, we'll need to be able to ask for and
678 # configure non-MMC SPI ports together with MMC_SPI ports (if multiple
679 # SPI ports are enabled).
681 config SPI_ETRAX_SSER
683 depends on SPI_MASTER && ETRAX_ARCH_V32 && EXPERIMENTAL
686 This enables using an synchronous serial (sser) port as a
687 SPI master controller on Axis ETRAX FS and later. The
688 driver can be configured to use any sser port.
690 config SPI_ETRAX_GPIO
692 depends on SPI_MASTER && ETRAX_ARCH_V32 && EXPERIMENTAL
695 This enables using GPIO pins port as a SPI master controller
696 on Axis ETRAX FS and later. The driver can be configured to
699 config ETRAX_SPI_SSER0
700 tristate "SPI using synchronous serial port 0 (sser0)"
701 depends on ETRAX_SPI_MMC
702 default m if MMC_SPI=m
703 default y if MMC_SPI=y
704 default y if MMC_SPI=n
705 select SPI_ETRAX_SSER
707 Say Y for an MMC/SD socket connected to synchronous serial port 0,
708 or for devices using the SPI protocol on that port. Say m if you
709 want to build it as a module, which will be named spi_crisv32_sser.
710 (You need to select MMC separately.)
712 config ETRAX_SPI_SSER0_DMA
713 bool "DMA for SPI on sser0 enabled"
714 depends on ETRAX_SPI_SSER0
715 depends on !ETRAX_SERIAL_PORT1_DMA4_OUT && !ETRAX_SERIAL_PORT1_DMA5_IN
718 Say Y if using DMA (dma4/dma5) for SPI on synchronous serial port 0.
720 config ETRAX_SPI_MMC_CD_SSER0_PIN
721 string "MMC/SD card detect pin for SPI on sser0"
722 depends on ETRAX_SPI_SSER0 && MMC_SPI
725 The pin to use for SD/MMC card detect. This pin should be pulled up
726 and grounded when a card is present. If defined as " " (space), no
727 pin is selected. A card must then always be inserted for proper
730 config ETRAX_SPI_MMC_WP_SSER0_PIN
731 string "MMC/SD card write-protect pin for SPI on sser0"
732 depends on ETRAX_SPI_SSER0 && MMC_SPI
735 The pin to use for the SD/MMC write-protect signal for a memory
736 card. If defined as " " (space), the card is considered writable.
738 config ETRAX_SPI_SSER1
739 tristate "SPI using synchronous serial port 1 (sser1)"
740 depends on ETRAX_SPI_MMC
741 default m if MMC_SPI=m && ETRAX_SPI_SSER0=n
742 default y if MMC_SPI=y && ETRAX_SPI_SSER0=n
743 default y if MMC_SPI=n && ETRAX_SPI_SSER0=n
744 select SPI_ETRAX_SSER
746 Say Y for an MMC/SD socket connected to synchronous serial port 1,
747 or for devices using the SPI protocol on that port. Say m if you
748 want to build it as a module, which will be named spi_crisv32_sser.
749 (You need to select MMC separately.)
751 config ETRAX_SPI_SSER1_DMA
752 bool "DMA for SPI on sser1 enabled"
753 depends on ETRAX_SPI_SSER1 && !ETRAX_ETHERNET_IFACE1
754 depends on !ETRAX_SERIAL_PORT0_DMA6_OUT && !ETRAX_SERIAL_PORT0_DMA7_IN
757 Say Y if using DMA (dma6/dma7) for SPI on synchronous serial port 1.
759 config ETRAX_SPI_MMC_CD_SSER1_PIN
760 string "MMC/SD card detect pin for SPI on sser1"
761 depends on ETRAX_SPI_SSER1 && MMC_SPI
764 The pin to use for SD/MMC card detect. This pin should be pulled up
765 and grounded when a card is present. If defined as " " (space), no
766 pin is selected. A card must then always be inserted for proper
769 config ETRAX_SPI_MMC_WP_SSER1_PIN
770 string "MMC/SD card write-protect pin for SPI on sser1"
771 depends on ETRAX_SPI_SSER1 && MMC_SPI
774 The pin to use for the SD/MMC write-protect signal for a memory
775 card. If defined as " " (space), the card is considered writable.
777 config ETRAX_SPI_GPIO
778 tristate "Bitbanged SPI using gpio pins"
779 depends on ETRAX_SPI_MMC
780 select SPI_ETRAX_GPIO
781 default m if MMC_SPI=m && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
782 default y if MMC_SPI=y && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
783 default y if MMC_SPI=n && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
785 Say Y for an MMC/SD socket connected to general I/O pins (but not
786 a complete synchronous serial ports), or for devices using the SPI
787 protocol on general I/O pins. Slow and slows down the system.
788 Say m to build it as a module, which will be called spi_crisv32_gpio.
789 (You need to select MMC separately.)
791 # The default match that of sser0, only because that's how it was tested.
792 config ETRAX_SPI_CS_PIN
793 string "SPI chip select pin"
794 depends on ETRAX_SPI_GPIO
797 The pin to use for SPI chip select.
799 config ETRAX_SPI_CLK_PIN
800 string "SPI clock pin"
801 depends on ETRAX_SPI_GPIO
804 The pin to use for the SPI clock.
806 config ETRAX_SPI_DATAIN_PIN
807 string "SPI MISO (data in) pin"
808 depends on ETRAX_SPI_GPIO
811 The pin to use for SPI data in from the device.
813 config ETRAX_SPI_DATAOUT_PIN
814 string "SPI MOSI (data out) pin"
815 depends on ETRAX_SPI_GPIO
818 The pin to use for SPI data out to the device.
820 config ETRAX_SPI_MMC_CD_GPIO_PIN
821 string "MMC/SD card detect pin for SPI using gpio (space for none)"
822 depends on ETRAX_SPI_GPIO && MMC_SPI
825 The pin to use for SD/MMC card detect. This pin should be pulled up
826 and grounded when a card is present. If defined as " " (space), no
827 pin is selected. A card must then always be inserted for proper
830 config ETRAX_SPI_MMC_WP_GPIO_PIN
831 string "MMC/SD card write-protect pin for SPI using gpio (space for none)"
832 depends on ETRAX_SPI_GPIO && MMC_SPI
835 The pin to use for the SD/MMC write-protect signal for a memory
836 card. If defined as " " (space), the card is considered writable.
838 # Avoid choices causing non-working configs by conditionalizing the inclusion.
840 source drivers/spi/Kconfig