Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * cxd2880_spi_device.h
0004  * Sony CXD2880 DVB-T2/T tuner + demodulator driver
0005  * SPI access interface
0006  *
0007  * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
0008  */
0009 
0010 #ifndef CXD2880_SPI_DEVICE_H
0011 #define CXD2880_SPI_DEVICE_H
0012 
0013 #include "cxd2880_spi.h"
0014 
0015 struct cxd2880_spi_device {
0016     struct spi_device *spi;
0017 };
0018 
0019 int cxd2880_spi_device_initialize(struct cxd2880_spi_device *spi_device,
0020                   enum cxd2880_spi_mode mode,
0021                   u32 speedHz);
0022 
0023 int cxd2880_spi_device_create_spi(struct cxd2880_spi *spi,
0024                   struct cxd2880_spi_device *spi_device);
0025 
0026 #endif /* CXD2880_SPI_DEVICE_H */