xref: /openbmc/linux/drivers/media/tuners/si2157.h (revision c95baf12f5077419db01313ab61c2aac007d40cd)
1c942fddfSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
2ba92ae0fSAntti Palosaari /*
317ad09f1SCrazyCat  * Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver
4ba92ae0fSAntti Palosaari  *
5ba92ae0fSAntti Palosaari  * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
6ba92ae0fSAntti Palosaari  */
7ba92ae0fSAntti Palosaari 
8930a8730SAntti Palosaari #ifndef SI2157_H
9930a8730SAntti Palosaari #define SI2157_H
10930a8730SAntti Palosaari 
118b0a81c7SMauro Carvalho Chehab #include <media/media-device.h>
12fada1935SMauro Carvalho Chehab #include <media/dvb_frontend.h>
13930a8730SAntti Palosaari 
14*57df5373SGon Solo /**
15*57df5373SGon Solo  * struct si2157_config - configuration parameters for si2157
16*57df5373SGon Solo  *
17*57df5373SGon Solo  * @fe:
18*57df5373SGon Solo  *	frontend returned by driver
19*57df5373SGon Solo  * @mdev:
20*57df5373SGon Solo  *	media device returned by driver
21*57df5373SGon Solo  * @inversion:
22*57df5373SGon Solo  *	spectral inversion
23*57df5373SGon Solo  * @dont_load_firmware:
24*57df5373SGon Solo  *	Instead of uploading a new firmware, use the existing one
25*57df5373SGon Solo  * @if_port:
26*57df5373SGon Solo  *	Port selection
27*57df5373SGon Solo  *	Select the RF interface to use (pins 9+11 or 12+13)
28*57df5373SGon Solo  *
29*57df5373SGon Solo  * Note:
30*57df5373SGon Solo  *	The I2C address of this demod is 0x60.
31930a8730SAntti Palosaari  */
32930a8730SAntti Palosaari struct si2157_config {
33930a8730SAntti Palosaari 	struct dvb_frontend *fe;
3405024efeSMatthias Schwarzott 
358b0a81c7SMauro Carvalho Chehab #if defined(CONFIG_MEDIA_CONTROLLER)
368b0a81c7SMauro Carvalho Chehab 	struct media_device *mdev;
378b0a81c7SMauro Carvalho Chehab #endif
388b0a81c7SMauro Carvalho Chehab 
39*57df5373SGon Solo 	unsigned int inversion:1;
40*57df5373SGon Solo 	unsigned int dont_load_firmware:1;
41ee3c3e46SOlli Salonen 
42ee3c3e46SOlli Salonen 	u8 if_port;
43930a8730SAntti Palosaari };
44930a8730SAntti Palosaari 
45930a8730SAntti Palosaari #endif
46