diff options
Diffstat (limited to 'include/linux/spi/spi.h')
| -rw-r--r-- | include/linux/spi/spi.h | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 3a67a7e45633..6d16ba01ff5a 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -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;  |