Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * board-specific data for the libertas_spi driver.
0004  *
0005  * Copyright 2008 Analog Devices Inc.
0006  */
0007 #ifndef _LIBERTAS_SPI_H_
0008 #define _LIBERTAS_SPI_H_
0009 
0010 struct spi_device;
0011 
0012 struct libertas_spi_platform_data {
0013     /* There are two ways to read data from the WLAN module's SPI
0014      * interface. Setting 0 or 1 here controls which one is used.
0015      *
0016      * Usually you want to set use_dummy_writes = 1.
0017      * However, if that doesn't work or if you are using a slow SPI clock
0018      * speed, you may want to use 0 here. */
0019     u16 use_dummy_writes;
0020 
0021     /* Board specific setup/teardown */
0022     int (*setup)(struct spi_device *spi);
0023     int (*teardown)(struct spi_device *spi);
0024 };
0025 #endif