Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_SPI_XILINX_SPI_H
0003 #define __LINUX_SPI_XILINX_SPI_H
0004 
0005 /**
0006  * struct xspi_platform_data - Platform data of the Xilinx SPI driver
0007  * @num_chipselect: Number of chip select by the IP.
0008  * @little_endian:  If registers should be accessed little endian or not.
0009  * @bits_per_word:  Number of bits per word.
0010  * @devices:        Devices to add when the driver is probed.
0011  * @num_devices:    Number of devices in the devices array.
0012  */
0013 struct xspi_platform_data {
0014     u16 num_chipselect;
0015     u8 bits_per_word;
0016     struct spi_board_info *devices;
0017     u8 num_devices;
0018 };
0019 
0020 #endif /* __LINUX_SPI_XILINX_SPI_H */