1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Toshiba TC90522 Demodulator
4 *
5 * Copyright (C) 2014 Akihiro Tsukada <tskd08@gmail.com>
6 */
7
8/*
9 * The demod has 4 input (2xISDB-T and 2xISDB-S),
10 * and provides independent sub modules for each input.
11 * As the sub modules work in parallel and have the separate i2c addr's,
12 * this driver treats each sub module as one demod device.
13 */
14
15#ifndef TC90522_H
16#define TC90522_H
17
18#include <linux/i2c.h>
19#include <media/dvb_frontend.h>
20
21/* I2C device types */
22#define TC90522_I2C_DEV_SAT "tc90522sat"
23#define TC90522_I2C_DEV_TER "tc90522ter"
24
25struct tc90522_config {
26	/* [OUT] frontend returned by driver */
27	struct dvb_frontend *fe;
28
29	/* [OUT] tuner I2C adapter returned by driver */
30	struct i2c_adapter *tuner_i2c;
31
32	/* [IN] use two separate I2C transactions for one tuner read */
33	bool split_tuner_read_i2c;
34};
35
36#endif /* TC90522_H */
37