David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Silicon Labs Si2168 DVB-T/T2/C demodulator driver |
| 4 | * |
| 5 | * Copyright (C) 2014 Antti Palosaari <crope@iki.fi> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 33 | #define SI2168_TS_CLK_MANUAL 0x20 |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 |