]>
Commit | Line | Data |
---|---|---|
c942fddf | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
711615df AP |
2 | /* |
3 | * Silicon Labs Si2168 DVB-T/T2/C demodulator driver | |
4 | * | |
5 | * Copyright (C) 2014 Antti Palosaari <crope@iki.fi> | |
711615df AP |
6 | */ |
7 | ||
845f3505 AP |
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; | |
389ce398 OS |
28 | |
29 | /* TS mode */ | |
346d4900 AP |
30 | #define SI2168_TS_PARALLEL 0x06 |
31 | #define SI2168_TS_SERIAL 0x03 | |
44587774 | 32 | #define SI2168_TS_TRISTATE 0x00 |
389ce398 | 33 | u8 ts_mode; |
52791979 C |
34 | |
35 | /* TS clock inverted */ | |
36 | bool ts_clock_inv; | |
8117a312 OS |
37 | |
38 | /* TS clock gapped */ | |
39 | bool ts_clock_gapped; | |
d4c779bc BL |
40 | |
41 | /* Inverted spectrum */ | |
42 | bool spectral_inversion; | |
845f3505 AP |
43 | }; |
44 | ||
45 | #endif |