1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
2 | /* |
3 | * Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver |
4 | * |
5 | * Copyright (C) 2014 Antti Palosaari <crope@iki.fi> |
6 | */ |
7 | |
8 | #ifndef SI2157_H |
9 | #define SI2157_H |
10 | |
11 | #include <media/media-device.h> |
12 | #include <media/dvb_frontend.h> |
13 | |
14 | /** |
15 | * struct si2157_config - configuration parameters for si2157 |
16 | * |
17 | * @fe: |
18 | * frontend returned by driver |
19 | * @mdev: |
20 | * media device returned by driver |
21 | * @inversion: |
22 | * spectral inversion |
23 | * @dont_load_firmware: |
24 | * Instead of uploading a new firmware, use the existing one |
25 | * @if_port: |
26 | * Port selection |
27 | * Select the RF interface to use (pins 9+11 or 12+13) |
28 | * |
29 | * Note: |
30 | * The I2C address of this demod is 0x60. |
31 | */ |
32 | struct si2157_config { |
33 | struct dvb_frontend *fe; |
34 | |
35 | #if defined(CONFIG_MEDIA_CONTROLLER) |
36 | struct media_device *mdev; |
37 | #endif |
38 | |
39 | unsigned int inversion:1; |
40 | unsigned int dont_load_firmware:1; |
41 | |
42 | u8 if_port; |
43 | }; |
44 | |
45 | #endif |
46 | |