cxd2880_spi_device.h 635 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * cxd2880_spi_device.h
  4. * Sony CXD2880 DVB-T2/T tuner + demodulator driver
  5. * SPI access interface
  6. *
  7. * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
  8. */
  9. #ifndef CXD2880_SPI_DEVICE_H
  10. #define CXD2880_SPI_DEVICE_H
  11. #include "cxd2880_spi.h"
  12. struct cxd2880_spi_device {
  13. struct spi_device *spi;
  14. };
  15. int cxd2880_spi_device_initialize(struct cxd2880_spi_device *spi_device,
  16. enum cxd2880_spi_mode mode,
  17. u32 speedHz);
  18. int cxd2880_spi_device_create_spi(struct cxd2880_spi *spi,
  19. struct cxd2880_spi_device *spi_device);
  20. #endif /* CXD2880_SPI_DEVICE_H */