]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/spi/spi_oc_tiny.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / include / linux / spi / spi_oc_tiny.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
ce792580
TC
2#ifndef _LINUX_SPI_SPI_OC_TINY_H
3#define _LINUX_SPI_SPI_OC_TINY_H
4
5/**
6 * struct tiny_spi_platform_data - platform data of the OpenCores tiny SPI
7 * @freq: input clock freq to the core.
8 * @baudwidth: baud rate divider width of the core.
9 * @gpio_cs_count: number of gpio pins used for chipselect.
10 * @gpio_cs: array of gpio pins used for chipselect.
11 *
12 * freq and baudwidth are used only if the divider is programmable.
13 */
14struct tiny_spi_platform_data {
15 unsigned int freq;
16 unsigned int baudwidth;
17 unsigned int gpio_cs_count;
18 int *gpio_cs;
19};
20
21#endif /* _LINUX_SPI_SPI_OC_TINY_H */