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