blob: 9bb63ac13f04574d5cf84a87067f4917dc79a5f8 [file] [log] [blame]
Mika Westerberg011f23a2010-05-06 04:47:04 +00001#ifndef __ASM_MACH_EP93XX_SPI_H
2#define __ASM_MACH_EP93XX_SPI_H
3
4struct spi_device;
5
6/**
7 * struct ep93xx_spi_info - EP93xx specific SPI descriptor
8 * @num_chipselect: number of chip selects on this board, must be
9 * at least one
Mika Westerberg626a96d2011-05-29 13:10:06 +030010 * @use_dma: use DMA for the transfers
Mika Westerberg011f23a2010-05-06 04:47:04 +000011 */
12struct ep93xx_spi_info {
13 int num_chipselect;
Mika Westerberg626a96d2011-05-29 13:10:06 +030014 bool use_dma;
Mika Westerberg011f23a2010-05-06 04:47:04 +000015};
16
17/**
18 * struct ep93xx_spi_chip_ops - operation callbacks for SPI slave device
19 * @setup: setup the chip select mechanism
20 * @cleanup: cleanup the chip select mechanism
21 * @cs_control: control the device chip select
22 */
23struct ep93xx_spi_chip_ops {
24 int (*setup)(struct spi_device *spi);
25 void (*cleanup)(struct spi_device *spi);
26 void (*cs_control)(struct spi_device *spi, int value);
27};
28
29#endif /* __ASM_MACH_EP93XX_SPI_H */