WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / tuners / si2157.h
blobffdece3c2eaab8aaf339f00afb5aaf72942e6dfe
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver
5 * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
6 */
8 #ifndef SI2157_H
9 #define SI2157_H
11 #include <media/media-device.h>
12 #include <media/dvb_frontend.h>
14 /**
15 * struct si2157_config - configuration parameters for si2157
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)
29 * Note:
30 * The I2C address of this demod is 0x60.
32 struct si2157_config {
33 struct dvb_frontend *fe;
35 #if defined(CONFIG_MEDIA_CONTROLLER)
36 struct media_device *mdev;
37 #endif
39 unsigned int inversion:1;
40 unsigned int dont_load_firmware:1;
42 u8 if_port;
45 #endif