spi_oc_tiny.h 589 B

1234567891011121314151617181920
  1. #ifndef _LINUX_SPI_SPI_OC_TINY_H
  2. #define _LINUX_SPI_SPI_OC_TINY_H
  3. /**
  4. * struct tiny_spi_platform_data - platform data of the OpenCores tiny SPI
  5. * @freq: input clock freq to the core.
  6. * @baudwidth: baud rate divider width of the core.
  7. * @gpio_cs_count: number of gpio pins used for chipselect.
  8. * @gpio_cs: array of gpio pins used for chipselect.
  9. *
  10. * freq and baudwidth are used only if the divider is programmable.
  11. */
  12. struct tiny_spi_platform_data {
  13. unsigned int freq;
  14. unsigned int baudwidth;
  15. unsigned int gpio_cs_count;
  16. int *gpio_cs;
  17. };
  18. #endif /* _LINUX_SPI_SPI_OC_TINY_H */