Colin McCabe | d2b21f1 | 2009-01-09 14:58:09 -0800 | [diff] [blame] | 1 | /* |
| 2 | * board-specific data for the libertas_spi driver. |
| 3 | * |
| 4 | * Copyright 2008 Analog Devices Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or (at |
| 9 | * your option) any later version. |
| 10 | */ |
| 11 | #ifndef _LIBERTAS_SPI_H_ |
| 12 | #define _LIBERTAS_SPI_H_ |
Mike Rapoport | 0c2bec9 | 2009-02-03 09:04:20 +0200 | [diff] [blame] | 13 | |
| 14 | struct spi_device; |
| 15 | |
Colin McCabe | d2b21f1 | 2009-01-09 14:58:09 -0800 | [diff] [blame] | 16 | struct libertas_spi_platform_data { |
| 17 | /* There are two ways to read data from the WLAN module's SPI |
| 18 | * interface. Setting 0 or 1 here controls which one is used. |
| 19 | * |
| 20 | * Usually you want to set use_dummy_writes = 1. |
| 21 | * However, if that doesn't work or if you are using a slow SPI clock |
| 22 | * speed, you may want to use 0 here. */ |
| 23 | u16 use_dummy_writes; |
| 24 | |
Mike Rapoport | 0c2bec9 | 2009-02-03 09:04:20 +0200 | [diff] [blame] | 25 | /* Board specific setup/teardown */ |
| 26 | int (*setup)(struct spi_device *spi); |
| 27 | int (*teardown)(struct spi_device *spi); |
Colin McCabe | d2b21f1 | 2009-01-09 14:58:09 -0800 | [diff] [blame] | 28 | }; |
| 29 | #endif |