libertas_spi.h 700 B

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