blob: 2d42641499a6e05e9e7ba13b958b6455e8dc48aa [file] [log] [blame]
Olivier Deprez157378f2022-04-04 15:47:50 +02001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Header File for Altera SPI Driver.
4 */
5#ifndef __LINUX_SPI_ALTERA_H
6#define __LINUX_SPI_ALTERA_H
7
8#include <linux/regmap.h>
9#include <linux/spi/spi.h>
10#include <linux/types.h>
11
12/**
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
18 * is probed.
19 * @devices: The devices to add.
20 */
21struct altera_spi_platform_data {
22 u16 mode_bits;
23 u16 num_chipselect;
24 u32 bits_per_word_mask;
25 u16 num_devices;
26 struct spi_board_info *devices;
27};
28
29#endif /* __LINUX_SPI_ALTERA_H */