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