2019-05-27 13:55:01 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2009-01-10 05:58:09 +07:00
|
|
|
/*
|
|
|
|
* board-specific data for the libertas_spi driver.
|
|
|
|
*
|
|
|
|
* Copyright 2008 Analog Devices Inc.
|
|
|
|
*/
|
|
|
|
#ifndef _LIBERTAS_SPI_H_
|
|
|
|
#define _LIBERTAS_SPI_H_
|
2009-02-03 14:04:20 +07:00
|
|
|
|
|
|
|
struct spi_device;
|
|
|
|
|
2009-01-10 05:58:09 +07:00
|
|
|
struct libertas_spi_platform_data {
|
|
|
|
/* There are two ways to read data from the WLAN module's SPI
|
|
|
|
* interface. Setting 0 or 1 here controls which one is used.
|
|
|
|
*
|
|
|
|
* Usually you want to set use_dummy_writes = 1.
|
|
|
|
* However, if that doesn't work or if you are using a slow SPI clock
|
|
|
|
* speed, you may want to use 0 here. */
|
|
|
|
u16 use_dummy_writes;
|
|
|
|
|
2009-02-03 14:04:20 +07:00
|
|
|
/* Board specific setup/teardown */
|
|
|
|
int (*setup)(struct spi_device *spi);
|
|
|
|
int (*teardown)(struct spi_device *spi);
|
2009-01-10 05:58:09 +07:00
|
|
|
};
|
|
|
|
#endif
|