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