1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Header File for Altera SPI Driver.
5 #ifndef __LINUX_SPI_ALTERA_H
6 #define __LINUX_SPI_ALTERA_H
8 #include <linux/regmap.h>
9 #include <linux/spi/spi.h>
10 #include <linux/types.h>
13 * struct altera_spi_platform_data - Platform data of the Altera SPI driver
14 * @mode_bits: Mode bits of SPI master.
15 * @num_chipselect: Number of chipselects.
16 * @bits_per_word_mask: bitmask of supported bits_per_word for transfers.
17 * @num_devices: Number of devices that shall be added when the driver
19 * @devices: The devices to add.
21 struct altera_spi_platform_data {
24 u32 bits_per_word_mask;
26 struct spi_board_info *devices;
29 #endif /* __LINUX_SPI_ALTERA_H */