Merge branch 'spi-5.6' into spi-next
This commit is contained in:
@@ -423,6 +423,12 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
|
||||
* GPIO descriptors rather than using global GPIO numbers grabbed by the
|
||||
* driver. This will fill in @cs_gpiods and @cs_gpios should not be used,
|
||||
* and SPI devices will have the cs_gpiod assigned rather than cs_gpio.
|
||||
* @unused_native_cs: When cs_gpiods is used, spi_register_controller() will
|
||||
* fill in this field with the first unused native CS, to be used by SPI
|
||||
* controller drivers that need to drive a native CS when using GPIO CS.
|
||||
* @max_native_cs: When cs_gpiods is used, and this field is filled in,
|
||||
* spi_register_controller() will validate all native CS (including the
|
||||
* unused native CS) against this value.
|
||||
* @statistics: statistics for the spi_controller
|
||||
* @dma_tx: DMA transmit channel
|
||||
* @dma_rx: DMA receive channel
|
||||
@@ -624,6 +630,8 @@ struct spi_controller {
|
||||
int *cs_gpios;
|
||||
struct gpio_desc **cs_gpiods;
|
||||
bool use_gpio_descriptors;
|
||||
u8 unused_native_cs;
|
||||
u8 max_native_cs;
|
||||
|
||||
/* statistics */
|
||||
struct spi_statistics statistics;
|
||||
|
@@ -6,16 +6,12 @@
|
||||
* struct tiny_spi_platform_data - platform data of the OpenCores tiny SPI
|
||||
* @freq: input clock freq to the core.
|
||||
* @baudwidth: baud rate divider width of the core.
|
||||
* @gpio_cs_count: number of gpio pins used for chipselect.
|
||||
* @gpio_cs: array of gpio pins used for chipselect.
|
||||
*
|
||||
* freq and baudwidth are used only if the divider is programmable.
|
||||
*/
|
||||
struct tiny_spi_platform_data {
|
||||
unsigned int freq;
|
||||
unsigned int baudwidth;
|
||||
unsigned int gpio_cs_count;
|
||||
int *gpio_cs;
|
||||
};
|
||||
|
||||
#endif /* _LINUX_SPI_SPI_OC_TINY_H */
|
||||
|
Reference in New Issue
Block a user