summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/si2165.h
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2016-07-26 04:09:02 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-22 12:54:00 -0300
commit7cd785adc4ea4a4f19477a10ea8485aa4bc0d0b1 (patch)
treef8520143054c21d0b1bda7f776077bd59cdb5dce /drivers/media/dvb-frontends/si2165.h
parent2df9dda07f56c285564ce97ca76a94e70a50df5e (diff)
downloadlinux-7cd785adc4ea4a4f19477a10ea8485aa4bc0d0b1.tar.bz2
[media] si2165: support i2c_client attach
Afterwards it is possible to convert attaching in card drivers. Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/si2165.h')
-rw-r--r--drivers/media/dvb-frontends/si2165.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/si2165.h b/drivers/media/dvb-frontends/si2165.h
index 8a15d6a9c552..abbebc9edf0c 100644
--- a/drivers/media/dvb-frontends/si2165.h
+++ b/drivers/media/dvb-frontends/si2165.h
@@ -28,6 +28,28 @@ enum {
SI2165_MODE_PLL_XTAL = 0x21
};
+/* I2C addresses
+ * possible values: 0x64,0x65,0x66,0x67
+ */
+struct si2165_platform_data {
+ /*
+ * frontend
+ * returned by driver
+ */
+ struct dvb_frontend **fe;
+
+ /* external clock or XTAL */
+ u8 chip_mode;
+
+ /* frequency of external clock or xtal in Hz
+ * possible values: 4000000, 16000000, 20000000, 240000000, 27000000
+ */
+ u32 ref_freq_Hz;
+
+ /* invert the spectrum */
+ bool inversion;
+};
+
struct si2165_config {
/* i2c addr
* possible values: 0x64,0x65,0x66,0x67 */