mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
4e67e6cb06
Add functions for initializing, reading and writing to the SPI device for the Sony CXD2880 DVB-T2/T tuner + demodulator. Signed-off-by: Yasunari Takiguchi <Yasunari.Takiguchi@sony.com> Signed-off-by: Masayuki Yamamoto <Masayuki.Yamamoto@sony.com> Signed-off-by: Hideki Nozawa <Hideki.Nozawa@sony.com> Signed-off-by: Kota Yonezawa <Kota.Yonezawa@sony.com> Signed-off-by: Toshihiko Matsumoto <Toshihiko.Matsumoto@sony.com> Signed-off-by: Satoshi Watanabe <Satoshi.C.Watanabe@sony.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
35 lines
713 B
C
35 lines
713 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* cxd2880_spi.h
|
|
* Sony CXD2880 DVB-T2/T tuner + demodulator driver
|
|
* SPI access definitions
|
|
*
|
|
* Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
|
|
*/
|
|
|
|
#ifndef CXD2880_SPI_H
|
|
#define CXD2880_SPI_H
|
|
|
|
#include "cxd2880_common.h"
|
|
|
|
enum cxd2880_spi_mode {
|
|
CXD2880_SPI_MODE_0,
|
|
CXD2880_SPI_MODE_1,
|
|
CXD2880_SPI_MODE_2,
|
|
CXD2880_SPI_MODE_3
|
|
};
|
|
|
|
struct cxd2880_spi {
|
|
int (*read)(struct cxd2880_spi *spi, u8 *data,
|
|
u32 size);
|
|
int (*write)(struct cxd2880_spi *spi, const u8 *data,
|
|
u32 size);
|
|
int (*write_read)(struct cxd2880_spi *spi,
|
|
const u8 *tx_data, u32 tx_size,
|
|
u8 *rx_data, u32 rx_size);
|
|
u32 flags;
|
|
void *user;
|
|
};
|
|
|
|
#endif
|