Path: blob/master/arch/arm/mach-ep93xx/include/mach/ep93xx_spi.h
15157 views
#ifndef __ASM_MACH_EP93XX_SPI_H1#define __ASM_MACH_EP93XX_SPI_H23struct spi_device;45/**6* struct ep93xx_spi_info - EP93xx specific SPI descriptor7* @num_chipselect: number of chip selects on this board, must be8* at least one9*/10struct ep93xx_spi_info {11int num_chipselect;12};1314/**15* struct ep93xx_spi_chip_ops - operation callbacks for SPI slave device16* @setup: setup the chip select mechanism17* @cleanup: cleanup the chip select mechanism18* @cs_control: control the device chip select19*/20struct ep93xx_spi_chip_ops {21int (*setup)(struct spi_device *spi);22void (*cleanup)(struct spi_device *spi);23void (*cs_control)(struct spi_device *spi, int value);24};2526#endif /* __ASM_MACH_EP93XX_SPI_H */272829