ep93xx_spi.h 726 B

12345678910111213141516171819202122232425262728
  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. */
  9. struct ep93xx_spi_info {
  10. int num_chipselect;
  11. };
  12. /**
  13. * struct ep93xx_spi_chip_ops - operation callbacks for SPI slave device
  14. * @setup: setup the chip select mechanism
  15. * @cleanup: cleanup the chip select mechanism
  16. * @cs_control: control the device chip select
  17. */
  18. struct ep93xx_spi_chip_ops {
  19. int (*setup)(struct spi_device *spi);
  20. void (*cleanup)(struct spi_device *spi);
  21. void (*cs_control)(struct spi_device *spi, int value);
  22. };
  23. #endif /* __ASM_MACH_EP93XX_SPI_H */