aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/lmedm04.h
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2010-09-02 16:29:30 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:04:54 -0400
commitd2f918bba7a482bee18cc0ede7791f7d846dd5d0 (patch)
treef893a3dab16b3f815f576f08568f17b5d4f1edf9 /drivers/media/dvb/dvb-usb/lmedm04.h
parent9d10f3d7e73d3428555da97134fc597710a55f39 (diff)
V4L/DVB: Support or LME2510(C) DM04/QQBOX USB DVB-S BOXES
DM04/QQBOX DVB-S USB BOX with LME2510C+SHARP:BS2F7HZ7395 or LME2510+LGTDQT-P001F tuner. [mchehab@redhat.com: Fix merge conflicts/compilation and CodingStyle issues] Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/lmedm04.h')
-rw-r--r--drivers/media/dvb/dvb-usb/lmedm04.h187
1 files changed, 187 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/lmedm04.h b/drivers/media/dvb/dvb-usb/lmedm04.h
new file mode 100644
index 000000000000..5a66c7ec4511
--- /dev/null
+++ b/drivers/media/dvb/dvb-usb/lmedm04.h
@@ -0,0 +1,187 @@
1/* DVB USB compliant linux driver for
2 *
3 * DM04/QQBOX DVB-S USB BOX LME2510C + SHARP:BS2F7HZ7395
4 * LME2510C + LGTDQT-P001F
5 *
6 * MVB7395 (LME2510C+SHARP:BS2F7HZ7395)
7 * SHARP:BS2F7HZ7395 = (STV0288+Sharp IX2505V)
8 *
9 * MVB0001F (LME2510C+LGTDQT-P001F)
10 * LG TDQY - P001F =(TDA8263 + TDA10086H)
11 *
12 *
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the Free
15 * Software Foundation, version 2.
16 * *
17 * see Documentation/dvb/README.dvb-usb for more information
18 */
19#ifndef _DVB_USB_LME2510_H_
20#define _DVB_USB_LME2510_H_
21
22/* Streamer & PID
23 *
24 * Note: These commands do not actually stop the streaming
25 * but form some kind of packet filtering/stream count
26 * or tuning related functions.
27 * 06 XX
28 * offset 1 = 00 Enable Streaming
29 *
30 *
31 * PID
32 * 03 XX XX ----> reg number ---> setting....20 XX
33 * offset 1 = length
34 * offset 2 = start of data
35 * end byte -1 = 20
36 * end byte = clear pid always a0, other wise 9c, 9a ??
37 *
38 * RESET (also clears PID filter)
39 * 3a 01 00
40*/
41#define LME_ST_ON_W {0x06, 0x00}
42#define LME_RESET {0x3a, 0x01, 0x00}
43#define LME_CLEAR_PID {0x03, 0x02, 0x20, 0xa0}
44
45
46/* LME Power Control
47 * 07 XX XX
48 * offset 1 = 01 Power? my device cannot be powered down
49 * offset 2 = 00=Voltage low 01=Voltage high
50 */
51
52#define LME_VOLTAGE_L {0x07, 0x01, 0x00}
53#define LME_VOLTAGE_H {0x07, 0x01, 0x01}
54
55
56/* Initial stv0288 settings for 7395 Frontend */
57static u8 s7395_inittab[] = {
58 0x00, 0x11,
59 0x01, 0x15,
60 0x02, 0x20,
61 0x03, 0x8e,
62 0x04, 0x8e,
63 0x05, 0x12,
64 0x06, 0xff,
65 0x07, 0x20,
66 0x08, 0x00,
67 0x09, 0x00,
68 0x0a, 0x04,
69 0x0b, 0x00,
70 0x0c, 0x00,
71 0x0d, 0x00,
72 0x0e, 0xc1,
73 0x0f, 0x54,
74 0x10, 0x40,
75 0x11, 0x7a,
76 0x12, 0x03,
77 0x13, 0x48,
78 0x14, 0x84,
79 0x15, 0xc5,
80 0x16, 0xb8,
81 0x17, 0x9c,
82 0x18, 0x00,
83 0x19, 0xa6,
84 0x1a, 0x88,
85 0x1b, 0x8f,
86 0x1c, 0xf0,
87 0x1e, 0x80,
88 0x20, 0x0b,
89 0x21, 0x54,
90 0x22, 0xff,
91 0x23, 0x01,
92 0x24, 0x9a,
93 0x25, 0x7f,
94 0x26, 0x00,
95 0x27, 0x00,
96 0x28, 0x46,
97 0x29, 0x66,
98 0x2a, 0x90,
99 0x2b, 0xfa,
100 0x2c, 0xd9,
101 0x2d, 0x02,
102 0x2e, 0xb1,
103 0x2f, 0x00,
104 0x30, 0x0,
105 0x31, 0x1e,
106 0x32, 0x14,
107 0x33, 0x0f,
108 0x34, 0x09,
109 0x35, 0x0c,
110 0x36, 0x05,
111 0x37, 0x2f,
112 0x38, 0x16,
113 0x39, 0xbd,
114 0x3a, 0x0,
115 0x3b, 0x13,
116 0x3c, 0x11,
117 0x3d, 0x30,
118 0x3e, 0x00,
119 0x3f, 0x00,
120 0x40, 0x63,
121 0x41, 0x04,
122 0x42, 0x60,
123 0x43, 0x00,
124 0x44, 0x00,
125 0x45, 0x00,
126 0x46, 0x00,
127 0x47, 0x00,
128 0x4a, 0x00,
129 0x4b, 0xd1,
130 0x4c, 0x33,
131 0x50, 0x12,
132 0x51, 0x36,
133 0x52, 0x21,
134 0x53, 0x94,
135 0x54, 0xb2,
136 0x55, 0x29,
137 0x56, 0x64,
138 0x57, 0x2b,
139 0x58, 0x54,
140 0x59, 0x86,
141 0x5a, 0x00,
142 0x5b, 0x9b,
143 0x5c, 0x08,
144 0x5d, 0x7f,
145 0x5e, 0xff,
146 0x5f, 0x8d,
147 0x70, 0x0,
148 0x71, 0x0,
149 0x72, 0x0,
150 0x74, 0x0,
151 0x75, 0x0,
152 0x76, 0x0,
153 0x81, 0x0,
154 0x82, 0x3f,
155 0x83, 0x3f,
156 0x84, 0x0,
157 0x85, 0x0,
158 0x88, 0x0,
159 0x89, 0x0,
160 0x8a, 0x0,
161 0x8b, 0x0,
162 0x8c, 0x0,
163 0x90, 0x0,
164 0x91, 0x0,
165 0x92, 0x0,
166 0x93, 0x0,
167 0x94, 0x1c,
168 0x97, 0x0,
169 0xa0, 0x48,
170 0xa1, 0x0,
171 0xb0, 0xb8,
172 0xb1, 0x3a,
173 0xb2, 0x10,
174 0xb3, 0x82,
175 0xb4, 0x80,
176 0xb5, 0x82,
177 0xb6, 0x82,
178 0xb7, 0x82,
179 0xb8, 0x20,
180 0xb9, 0x0,
181 0xf0, 0x0,
182 0xf1, 0x0,
183 0xf2, 0xc0,
184 0xff, 0xff,
185};
186
187#endif