011f23a3c2
This patch adds an SPI master driver for the Cirrus EP93xx SPI controller found in EP93xx chips. Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
27 lines
726 B
C
27 lines
726 B
C
#ifndef __ASM_MACH_EP93XX_SPI_H
|
|
#define __ASM_MACH_EP93XX_SPI_H
|
|
|
|
struct spi_device;
|
|
|
|
/**
|
|
* struct ep93xx_spi_info - EP93xx specific SPI descriptor
|
|
* @num_chipselect: number of chip selects on this board, must be
|
|
* at least one
|
|
*/
|
|
struct ep93xx_spi_info {
|
|
int num_chipselect;
|
|
};
|
|
|
|
/**
|
|
* struct ep93xx_spi_chip_ops - operation callbacks for SPI slave device
|
|
* @setup: setup the chip select mechanism
|
|
* @cleanup: cleanup the chip select mechanism
|
|
* @cs_control: control the device chip select
|
|
*/
|
|
struct ep93xx_spi_chip_ops {
|
|
int (*setup)(struct spi_device *spi);
|
|
void (*cleanup)(struct spi_device *spi);
|
|
void (*cs_control)(struct spi_device *spi, int value);
|
|
};
|
|
|
|
#endif /* __ASM_MACH_EP93XX_SPI_H */
|