Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / include / linux / spi / spi_oc_tiny.h
blob1ac529cf4f06b6f4a9bca6d33d2d6e53ab9c60ad
1 #ifndef _LINUX_SPI_SPI_OC_TINY_H
2 #define _LINUX_SPI_SPI_OC_TINY_H
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.
11 * freq and baudwidth are used only if the divider is programmable.
13 struct tiny_spi_platform_data {
14 unsigned int freq;
15 unsigned int baudwidth;
16 unsigned int gpio_cs_count;
17 int *gpio_cs;
20 #endif /* _LINUX_SPI_SPI_OC_TINY_H */