spi-fsl-dspi.h 955 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Freescale DSPI controller driver
  3. *
  4. * Copyright (c) 2017 Angelo Dureghello <angelo@sysam.it>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef SPI_FSL_DSPI_HEADER_H
  16. #define SPI_FSL_DSPI_HEADER_H
  17. /**
  18. * struct fsl_dspi_platform_data - platform data for the Freescale DSPI driver
  19. * @bus_num: board specific identifier for this DSPI driver.
  20. * @cs_num: number of chip selects supported by this DSPI driver.
  21. */
  22. struct fsl_dspi_platform_data {
  23. u32 cs_num;
  24. u32 bus_num;
  25. u32 sck_cs_delay;
  26. u32 cs_sck_delay;
  27. };
  28. #endif /* SPI_FSL_DSPI_HEADER_H */