summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/rtl2832.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-12-13 05:26:27 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-03 16:03:41 -0200
commite1174d788aa2f4f21160860fe2be1ead8ee90851 (patch)
treefb855ba53dfe133f5998a896c7b38021c37b063c /drivers/media/dvb-frontends/rtl2832.h
parent6e6aac6525c8db5181cdd43cbe0343960c484e82 (diff)
[media] rtl2832: move all configuration to platform data struct
Move all needed configuration values to platform data structure and remove old configuration code where possible. 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/rtl2832.h')
-rw-r--r--drivers/media/dvb-frontends/rtl2832.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/rtl2832.h b/drivers/media/dvb-frontends/rtl2832.h
index 983d5a1f3340..35e86e6bc751 100644
--- a/drivers/media/dvb-frontends/rtl2832.h
+++ b/drivers/media/dvb-frontends/rtl2832.h
@@ -53,6 +53,26 @@ struct rtl2832_platform_data {
const struct rtl2832_config *config;
/*
+ * Clock frequency.
+ * Hz
+ * 4000000, 16000000, 25000000, 28800000
+ */
+ u32 clk;
+
+ /*
+ * Tuner.
+ * XXX: This must be keep sync with dvb_usb_rtl28xxu USB IF driver.
+ */
+#define RTL2832_TUNER_TUA9001 0x24
+#define RTL2832_TUNER_FC0012 0x26
+#define RTL2832_TUNER_E4000 0x27
+#define RTL2832_TUNER_FC0013 0x29
+#define RTL2832_TUNER_R820T 0x2a
+#define RTL2832_TUNER_R828D 0x2b
+ u8 tuner;
+
+ /*
+ * Callbacks.
*/
struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);