diff options
author | Hartmut Hackmann <hartmut.hackmann@t-online.de> | 2005-07-07 20:57:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:23:54 -0400 |
commit | ecb60deb9d5bbcbab6c87ee5fde6f8368197fcac (patch) | |
tree | e8de9fd8fefbcc89e56821d58e39fe64729f43ee /drivers/media/dvb/frontends/tda1004x.h | |
parent | bbf24cec93b5966bdbd4f25be7a8a2d8716570db (diff) |
[PATCH] dvb: frontend: tda1004x update
o added config options for IF frequency and AGC
o support DSP boot from on board eeprom
o added pll sleep call
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/frontends/tda1004x.h')
-rw-r--r-- | drivers/media/dvb/frontends/tda1004x.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/tda1004x.h b/drivers/media/dvb/frontends/tda1004x.h index c8e1d54ff262..103d08ff7b5d 100644 --- a/drivers/media/dvb/frontends/tda1004x.h +++ b/drivers/media/dvb/frontends/tda1004x.h | |||
@@ -26,6 +26,21 @@ | |||
26 | #include <linux/dvb/frontend.h> | 26 | #include <linux/dvb/frontend.h> |
27 | #include <linux/firmware.h> | 27 | #include <linux/firmware.h> |
28 | 28 | ||
29 | enum tda10046_xtal { | ||
30 | TDA10046_XTAL_4M, | ||
31 | TDA10046_XTAL_16M, | ||
32 | }; | ||
33 | |||
34 | enum tda10046_agc { | ||
35 | TDA10046_AGC_DEFAULT, /* original configuration */ | ||
36 | TDA10046_AGC_IFO_AUTO_NEG, /* IF AGC only, automatic, negtive */ | ||
37 | }; | ||
38 | |||
39 | enum tda10046_if { | ||
40 | TDA10046_FREQ_3617, /* original config, 36,166 MHZ */ | ||
41 | TDA10046_FREQ_3613, /* 36,13 MHZ */ | ||
42 | }; | ||
43 | |||
29 | struct tda1004x_config | 44 | struct tda1004x_config |
30 | { | 45 | { |
31 | /* the demodulator's i2c address */ | 46 | /* the demodulator's i2c address */ |
@@ -37,14 +52,22 @@ struct tda1004x_config | |||
37 | /* Does the OCLK signal need inverted? */ | 52 | /* Does the OCLK signal need inverted? */ |
38 | u8 invert_oclk; | 53 | u8 invert_oclk; |
39 | 54 | ||
40 | /* value of N_I2C of the CONF_PLL3 register */ | 55 | /* Xtal frequency, 4 or 16MHz*/ |
41 | u8 n_i2c; | 56 | enum tda10046_xtal xtal_freq; |
57 | |||
58 | /* IF frequency */ | ||
59 | enum tda10046_if if_freq; | ||
60 | |||
61 | /* AGC configuration */ | ||
62 | enum tda10046_agc agc_config; | ||
42 | 63 | ||
43 | /* PLL maintenance */ | 64 | /* PLL maintenance */ |
44 | int (*pll_init)(struct dvb_frontend* fe); | 65 | int (*pll_init)(struct dvb_frontend* fe); |
66 | void (*pll_sleep)(struct dvb_frontend* fe); | ||
45 | int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params); | 67 | int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params); |
46 | 68 | ||
47 | /* request firmware for device */ | 69 | /* request firmware for device */ |
70 | /* set this to NULL if the card has a firmware EEPROM */ | ||
48 | int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name); | 71 | int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name); |
49 | }; | 72 | }; |
50 | 73 | ||