xref: /linux/drivers/media/dvb-frontends/si2168.h (revision 56fb34d86e875dbb0d3e6a81c5d3d035db373031)
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 #define SI2168_TS_CLK_MANUAL	0x20
34 	u8 ts_mode;
35 
36 	/* TS clock inverted */
37 	bool ts_clock_inv;
38 
39 	/* TS clock gapped */
40 	bool ts_clock_gapped;
41 
42 	/* Inverted spectrum */
43 	bool spectral_inversion;
44 };
45 
46 #endif
47