Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_SPI_GPIO_H
0003 #define __LINUX_SPI_GPIO_H
0004 
0005 /*
0006  * For each bitbanged SPI bus, set up a platform_device node with:
0007  *   - name "spi_gpio"
0008  *   - id the same as the SPI bus number it implements
0009  *   - dev.platform data pointing to a struct spi_gpio_platform_data
0010  *
0011  * Use spi_board_info with these busses in the usual way.
0012  *
0013  * If the bitbanged bus is later switched to a "native" controller,
0014  * that platform_device and controller_data should be removed.
0015  */
0016 
0017 /**
0018  * struct spi_gpio_platform_data - parameter for bitbanged SPI master
0019  * @num_chipselect: how many slaves to allow
0020  */
0021 struct spi_gpio_platform_data {
0022     u16     num_chipselect;
0023 };
0024 
0025 #endif /* __LINUX_SPI_GPIO_H */