summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/ts2020.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-03-23 14:14:40 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-02 22:24:03 -0300
commitabd9025b95619c02f83583c9659298bc65dcdf50 (patch)
treefda949142bd0c14253c6928169237e65bdf8a631 /drivers/media/dvb-frontends/ts2020.h
parent27254c36346b8c3990f4951c39afc495c7c2c2ad (diff)
downloadlinux-abd9025b95619c02f83583c9659298bc65dcdf50.tar.bz2
[media] ts2020: add support for TS2022
TS2022 is slightly newer and different version of same tuner, which could be supported with rather small changes. Tuner type is auto-detected. Tested-by: David Howells <dhowells@redhat.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/ts2020.h')
-rw-r--r--drivers/media/dvb-frontends/ts2020.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/ts2020.h b/drivers/media/dvb-frontends/ts2020.h
index b2fe6bb3a38b..8a08dccc217f 100644
--- a/drivers/media/dvb-frontends/ts2020.h
+++ b/drivers/media/dvb-frontends/ts2020.h
@@ -27,8 +27,31 @@
struct ts2020_config {
u8 tuner_address;
- u8 clk_out_div;
u32 frequency_div;
+
+ /*
+ * RF loop-through
+ */
+ u8 loop_through:1;
+
+ /*
+ * clock output
+ */
+#define TS2020_CLK_OUT_DISABLED 0
+#define TS2020_CLK_OUT_ENABLED 1
+#define TS2020_CLK_OUT_ENABLED_XTALOUT 2
+ u8 clk_out:2;
+
+ /*
+ * clock output divider
+ * 1 - 31
+ */
+ u8 clk_out_div:5;
+
+ /*
+ * pointer to DVB frontend
+ */
+ struct dvb_frontend *fe;
};
#if IS_ENABLED(CONFIG_DVB_TS2020)