Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Colin McCabe | d2b21f1 | 2009-01-09 14:58:09 -0800 | [diff] [blame] | 2 | /* |
| 3 | * board-specific data for the libertas_spi driver. |
| 4 | * |
| 5 | * Copyright 2008 Analog Devices Inc. |
Colin McCabe | d2b21f1 | 2009-01-09 14:58:09 -0800 | [diff] [blame] | 6 | */ |
| 7 | #ifndef _LIBERTAS_SPI_H_ |
| 8 | #define _LIBERTAS_SPI_H_ |
Mike Rapoport | 0c2bec9 | 2009-02-03 09:04:20 +0200 | [diff] [blame] | 9 | |
| 10 | struct spi_device; |
| 11 | |
Colin McCabe | d2b21f1 | 2009-01-09 14:58:09 -0800 | [diff] [blame] | 12 | struct libertas_spi_platform_data { |
| 13 | /* There are two ways to read data from the WLAN module's SPI |
| 14 | * interface. Setting 0 or 1 here controls which one is used. |
| 15 | * |
| 16 | * Usually you want to set use_dummy_writes = 1. |
| 17 | * However, if that doesn't work or if you are using a slow SPI clock |
| 18 | * speed, you may want to use 0 here. */ |
| 19 | u16 use_dummy_writes; |
| 20 | |
Mike Rapoport | 0c2bec9 | 2009-02-03 09:04:20 +0200 | [diff] [blame] | 21 | /* Board specific setup/teardown */ |
| 22 | int (*setup)(struct spi_device *spi); |
| 23 | int (*teardown)(struct spi_device *spi); |
Colin McCabe | d2b21f1 | 2009-01-09 14:58:09 -0800 | [diff] [blame] | 24 | }; |
| 25 | #endif |