xref: /OK3568_Linux_fs/kernel/include/linux/spi/spi_oc_tiny.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _LINUX_SPI_SPI_OC_TINY_H
3*4882a593Smuzhiyun #define _LINUX_SPI_SPI_OC_TINY_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /**
6*4882a593Smuzhiyun  * struct tiny_spi_platform_data - platform data of the OpenCores tiny SPI
7*4882a593Smuzhiyun  * @freq:	input clock freq to the core.
8*4882a593Smuzhiyun  * @baudwidth:	baud rate divider width of the core.
9*4882a593Smuzhiyun  *
10*4882a593Smuzhiyun  * freq and baudwidth are used only if the divider is programmable.
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun struct tiny_spi_platform_data {
13*4882a593Smuzhiyun 	unsigned int freq;
14*4882a593Smuzhiyun 	unsigned int baudwidth;
15*4882a593Smuzhiyun };
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #endif /* _LINUX_SPI_SPI_OC_TINY_H */
18