1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Silicon Labs Si2168 DVB-T/T2/C demodulator driver 4 * 5 * Copyright (C) 2014 Antti Palosaari <crope@iki.fi> 6 */ 7 8 #ifndef SI2168_H 9 #define SI2168_H 10 11 #include <linux/dvb/frontend.h> 12 /* 13 * I2C address 14 * 0x64 15 */ 16 struct si2168_config { 17 /* 18 * frontend 19 * returned by driver 20 */ 21 struct dvb_frontend **fe; 22 23 /* 24 * tuner I2C adapter 25 * returned by driver 26 */ 27 struct i2c_adapter **i2c_adapter; 28 29 /* TS mode */ 30 #define SI2168_TS_PARALLEL 0x06 31 #define SI2168_TS_SERIAL 0x03 32 #define SI2168_TS_TRISTATE 0x00 33 u8 ts_mode; 34 35 /* TS clock inverted */ 36 bool ts_clock_inv; 37 38 /* TS clock gapped */ 39 bool ts_clock_gapped; 40 41 /* Inverted spectrum */ 42 bool spectral_inversion; 43 }; 44 45 #endif 46