spi-ep93xx.h 780 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __ASM_MACH_EP93XX_SPI_H
  2. #define __ASM_MACH_EP93XX_SPI_H
  3. struct spi_device;
  4. /**
  5. * struct ep93xx_spi_info - EP93xx specific SPI descriptor
  6. * @num_chipselect: number of chip selects on this board, must be
  7. * at least one
  8. * @use_dma: use DMA for the transfers
  9. */
  10. struct ep93xx_spi_info {
  11. int num_chipselect;
  12. bool use_dma;
  13. };
  14. /**
  15. * struct ep93xx_spi_chip_ops - operation callbacks for SPI slave device
  16. * @setup: setup the chip select mechanism
  17. * @cleanup: cleanup the chip select mechanism
  18. * @cs_control: control the device chip select
  19. */
  20. struct ep93xx_spi_chip_ops {
  21. int (*setup)(struct spi_device *spi);
  22. void (*cleanup)(struct spi_device *spi);
  23. void (*cs_control)(struct spi_device *spi, int value);
  24. };
  25. #endif /* __ASM_MACH_EP93XX_SPI_H */