1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * board-specific data for the libertas_spi driver. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright 2008 Analog Devices Inc. 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun #ifndef _LIBERTAS_SPI_H_ 8*4882a593Smuzhiyun #define _LIBERTAS_SPI_H_ 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun struct spi_device; 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun struct libertas_spi_platform_data { 13*4882a593Smuzhiyun /* There are two ways to read data from the WLAN module's SPI 14*4882a593Smuzhiyun * interface. Setting 0 or 1 here controls which one is used. 15*4882a593Smuzhiyun * 16*4882a593Smuzhiyun * Usually you want to set use_dummy_writes = 1. 17*4882a593Smuzhiyun * However, if that doesn't work or if you are using a slow SPI clock 18*4882a593Smuzhiyun * speed, you may want to use 0 here. */ 19*4882a593Smuzhiyun u16 use_dummy_writes; 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun /* Board specific setup/teardown */ 22*4882a593Smuzhiyun int (*setup)(struct spi_device *spi); 23*4882a593Smuzhiyun int (*teardown)(struct spi_device *spi); 24*4882a593Smuzhiyun }; 25*4882a593Smuzhiyun #endif 26