diff options
author | Antti Palosaari <crope@iki.fi> | 2007-02-10 08:19:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:35:24 -0500 |
commit | f7f57770dc610eddd678aec483263e7980327ee9 (patch) | |
tree | 50970397f8f0fd7c74d4da5f95c4135d4280b00f /drivers/media/dvb/frontends/zl10353_priv.h | |
parent | 0a11bb865a88a7459855ab46f74091e6ca4a1a20 (diff) |
V4L/DVB (5217): Zl10353: Implement TRL nominal rate calculation
Implement trl nominal rate calculation to Zarlink ZL10353 demod,
based on calculation used in Zarlink MT352.
This adds support for 6 and 8MHz bandwidth transponders.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/zl10353_priv.h')
-rw-r--r-- | drivers/media/dvb/frontends/zl10353_priv.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/drivers/media/dvb/frontends/zl10353_priv.h b/drivers/media/dvb/frontends/zl10353_priv.h index b72224bd7dde..d2186927f8f1 100644 --- a/drivers/media/dvb/frontends/zl10353_priv.h +++ b/drivers/media/dvb/frontends/zl10353_priv.h | |||
@@ -24,19 +24,24 @@ | |||
24 | 24 | ||
25 | #define ID_ZL10353 0x14 | 25 | #define ID_ZL10353 0x14 |
26 | 26 | ||
27 | #define msb(x) (((x) >> 8) & 0xff) | ||
28 | #define lsb(x) ((x) & 0xff) | ||
29 | |||
27 | enum zl10353_reg_addr { | 30 | enum zl10353_reg_addr { |
28 | INTERRUPT_0 = 0x00, | 31 | INTERRUPT_0 = 0x00, |
29 | INTERRUPT_1 = 0x01, | 32 | INTERRUPT_1 = 0x01, |
30 | INTERRUPT_2 = 0x02, | 33 | INTERRUPT_2 = 0x02, |
31 | INTERRUPT_3 = 0x03, | 34 | INTERRUPT_3 = 0x03, |
32 | INTERRUPT_4 = 0x04, | 35 | INTERRUPT_4 = 0x04, |
33 | INTERRUPT_5 = 0x05, | 36 | INTERRUPT_5 = 0x05, |
34 | STATUS_6 = 0x06, | 37 | STATUS_6 = 0x06, |
35 | STATUS_7 = 0x07, | 38 | STATUS_7 = 0x07, |
36 | STATUS_8 = 0x08, | 39 | STATUS_8 = 0x08, |
37 | STATUS_9 = 0x09, | 40 | STATUS_9 = 0x09, |
38 | SNR = 0x10, | 41 | SNR = 0x10, |
39 | CHIP_ID = 0x7F, | 42 | TRL_NOMINAL_RATE_1 = 0x65, |
43 | TRL_NOMINAL_RATE_0 = 0x66, | ||
44 | CHIP_ID = 0x7F, | ||
40 | }; | 45 | }; |
41 | 46 | ||
42 | #endif /* _ZL10353_PRIV_ */ | 47 | #endif /* _ZL10353_PRIV_ */ |