18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/* DVB USB compliant linux driver for
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * DM04/QQBOX DVB-S USB BOX	LME2510C + SHARP:BS2F7HZ7395
58c2ecf20Sopenharmony_ci *				LME2510C + LG TDQY-P001F
68c2ecf20Sopenharmony_ci *				LME2510 + LG TDQY-P001F
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * MVB7395 (LME2510C+SHARP:BS2F7HZ7395)
98c2ecf20Sopenharmony_ci * SHARP:BS2F7HZ7395 = (STV0288+Sharp IX2505V)
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * MVB001F (LME2510+LGTDQT-P001F)
128c2ecf20Sopenharmony_ci * LG TDQY - P001F =(TDA8263 + TDA10086H)
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * MVB0001F (LME2510C+LGTDQT-P001F)
158c2ecf20Sopenharmony_ci *
168c2ecf20Sopenharmony_ci * *
178c2ecf20Sopenharmony_ci * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_ci#ifndef _DVB_USB_LME2510_H_
208c2ecf20Sopenharmony_ci#define _DVB_USB_LME2510_H_
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci/* Streamer &  PID
238c2ecf20Sopenharmony_ci *
248c2ecf20Sopenharmony_ci * Note:	These commands do not actually stop the streaming
258c2ecf20Sopenharmony_ci *		but form some kind of packet filtering/stream count
268c2ecf20Sopenharmony_ci *		or tuning related functions.
278c2ecf20Sopenharmony_ci *  06 XX
288c2ecf20Sopenharmony_ci *  offset 1 = 00 Enable Streaming
298c2ecf20Sopenharmony_ci *
308c2ecf20Sopenharmony_ci *
318c2ecf20Sopenharmony_ci *  PID
328c2ecf20Sopenharmony_ci *  03 XX XX  ----> reg number ---> setting....20 XX
338c2ecf20Sopenharmony_ci *  offset 1 = length
348c2ecf20Sopenharmony_ci *  offset 2 = start of data
358c2ecf20Sopenharmony_ci *  end byte -1 = 20
368c2ecf20Sopenharmony_ci *  end byte = clear pid always a0, other wise 9c, 9a ??
378c2ecf20Sopenharmony_ci *
388c2ecf20Sopenharmony_ci*/
398c2ecf20Sopenharmony_ci#define LME_ST_ON_W	{0x06, 0x00}
408c2ecf20Sopenharmony_ci#define LME_CLEAR_PID   {0x03, 0x02, 0x20, 0xa0}
418c2ecf20Sopenharmony_ci#define LME_ZERO_PID	{0x03, 0x06, 0x00, 0x00, 0x01, 0x00, 0x20, 0x9c}
428c2ecf20Sopenharmony_ci#define LME_ALL_PIDS	{0x03, 0x06, 0x00, 0xff, 0x01, 0x1f, 0x20, 0x81}
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci/*  LNB Voltage
458c2ecf20Sopenharmony_ci *  07 XX XX
468c2ecf20Sopenharmony_ci *  offset 1 = 01
478c2ecf20Sopenharmony_ci *  offset 2 = 00=Voltage low 01=Voltage high
488c2ecf20Sopenharmony_ci *
498c2ecf20Sopenharmony_ci *  LNB Power
508c2ecf20Sopenharmony_ci *  03 01 XX
518c2ecf20Sopenharmony_ci *  offset 2 = 00=ON 01=OFF
528c2ecf20Sopenharmony_ci */
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci#define LME_VOLTAGE_L	{0x07, 0x01, 0x00}
558c2ecf20Sopenharmony_ci#define LME_VOLTAGE_H	{0x07, 0x01, 0x01}
568c2ecf20Sopenharmony_ci#define LNB_ON		{0x3a, 0x01, 0x00}
578c2ecf20Sopenharmony_ci#define LNB_OFF		{0x3a, 0x01, 0x01}
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci/* Initial stv0288 settings for 7395 Frontend */
608c2ecf20Sopenharmony_cistatic u8 s7395_inittab[] = {
618c2ecf20Sopenharmony_ci	0x01, 0x15,
628c2ecf20Sopenharmony_ci	0x02, 0x20,
638c2ecf20Sopenharmony_ci	0x03, 0xa0,
648c2ecf20Sopenharmony_ci	0x04, 0xa0,
658c2ecf20Sopenharmony_ci	0x05, 0x12,
668c2ecf20Sopenharmony_ci	0x06, 0x00,
678c2ecf20Sopenharmony_ci	0x09, 0x00,
688c2ecf20Sopenharmony_ci	0x0a, 0x04,
698c2ecf20Sopenharmony_ci	0x0b, 0x00,
708c2ecf20Sopenharmony_ci	0x0c, 0x00,
718c2ecf20Sopenharmony_ci	0x0d, 0x00,
728c2ecf20Sopenharmony_ci	0x0e, 0xc1,
738c2ecf20Sopenharmony_ci	0x0f, 0x54,
748c2ecf20Sopenharmony_ci	0x11, 0x7a,
758c2ecf20Sopenharmony_ci	0x12, 0x03,
768c2ecf20Sopenharmony_ci	0x13, 0x48,
778c2ecf20Sopenharmony_ci	0x14, 0x84,
788c2ecf20Sopenharmony_ci	0x15, 0xc5,
798c2ecf20Sopenharmony_ci	0x16, 0xb8,
808c2ecf20Sopenharmony_ci	0x17, 0x9c,
818c2ecf20Sopenharmony_ci	0x18, 0x00,
828c2ecf20Sopenharmony_ci	0x19, 0xa6,
838c2ecf20Sopenharmony_ci	0x1a, 0x88,
848c2ecf20Sopenharmony_ci	0x1b, 0x8f,
858c2ecf20Sopenharmony_ci	0x1c, 0xf0,
868c2ecf20Sopenharmony_ci	0x20, 0x0b,
878c2ecf20Sopenharmony_ci	0x21, 0x54,
888c2ecf20Sopenharmony_ci	0x22, 0xff,
898c2ecf20Sopenharmony_ci	0x23, 0x01,
908c2ecf20Sopenharmony_ci	0x28, 0x46,
918c2ecf20Sopenharmony_ci	0x29, 0x66,
928c2ecf20Sopenharmony_ci	0x2a, 0x90,
938c2ecf20Sopenharmony_ci	0x2b, 0xfa,
948c2ecf20Sopenharmony_ci	0x2c, 0xd9,
958c2ecf20Sopenharmony_ci	0x30, 0x0,
968c2ecf20Sopenharmony_ci	0x31, 0x1e,
978c2ecf20Sopenharmony_ci	0x32, 0x14,
988c2ecf20Sopenharmony_ci	0x33, 0x0f,
998c2ecf20Sopenharmony_ci	0x34, 0x09,
1008c2ecf20Sopenharmony_ci	0x35, 0x0c,
1018c2ecf20Sopenharmony_ci	0x36, 0x05,
1028c2ecf20Sopenharmony_ci	0x37, 0x2f,
1038c2ecf20Sopenharmony_ci	0x38, 0x16,
1048c2ecf20Sopenharmony_ci	0x39, 0xbd,
1058c2ecf20Sopenharmony_ci	0x3a, 0x0,
1068c2ecf20Sopenharmony_ci	0x3b, 0x13,
1078c2ecf20Sopenharmony_ci	0x3c, 0x11,
1088c2ecf20Sopenharmony_ci	0x3d, 0x30,
1098c2ecf20Sopenharmony_ci	0x40, 0x63,
1108c2ecf20Sopenharmony_ci	0x41, 0x04,
1118c2ecf20Sopenharmony_ci	0x42, 0x20,
1128c2ecf20Sopenharmony_ci	0x43, 0x00,
1138c2ecf20Sopenharmony_ci	0x44, 0x00,
1148c2ecf20Sopenharmony_ci	0x45, 0x00,
1158c2ecf20Sopenharmony_ci	0x46, 0x00,
1168c2ecf20Sopenharmony_ci	0x47, 0x00,
1178c2ecf20Sopenharmony_ci	0x4a, 0x00,
1188c2ecf20Sopenharmony_ci	0x50, 0x10,
1198c2ecf20Sopenharmony_ci	0x51, 0x36,
1208c2ecf20Sopenharmony_ci	0x52, 0x21,
1218c2ecf20Sopenharmony_ci	0x53, 0x94,
1228c2ecf20Sopenharmony_ci	0x54, 0xb2,
1238c2ecf20Sopenharmony_ci	0x55, 0x29,
1248c2ecf20Sopenharmony_ci	0x56, 0x64,
1258c2ecf20Sopenharmony_ci	0x57, 0x2b,
1268c2ecf20Sopenharmony_ci	0x58, 0x54,
1278c2ecf20Sopenharmony_ci	0x59, 0x86,
1288c2ecf20Sopenharmony_ci	0x5a, 0x00,
1298c2ecf20Sopenharmony_ci	0x5b, 0x9b,
1308c2ecf20Sopenharmony_ci	0x5c, 0x08,
1318c2ecf20Sopenharmony_ci	0x5d, 0x7f,
1328c2ecf20Sopenharmony_ci	0x5e, 0xff,
1338c2ecf20Sopenharmony_ci	0x5f, 0x8d,
1348c2ecf20Sopenharmony_ci	0x70, 0x0,
1358c2ecf20Sopenharmony_ci	0x71, 0x0,
1368c2ecf20Sopenharmony_ci	0x72, 0x0,
1378c2ecf20Sopenharmony_ci	0x74, 0x0,
1388c2ecf20Sopenharmony_ci	0x75, 0x0,
1398c2ecf20Sopenharmony_ci	0x76, 0x0,
1408c2ecf20Sopenharmony_ci	0x81, 0x0,
1418c2ecf20Sopenharmony_ci	0x82, 0x3f,
1428c2ecf20Sopenharmony_ci	0x83, 0x3f,
1438c2ecf20Sopenharmony_ci	0x84, 0x0,
1448c2ecf20Sopenharmony_ci	0x85, 0x0,
1458c2ecf20Sopenharmony_ci	0x88, 0x0,
1468c2ecf20Sopenharmony_ci	0x89, 0x0,
1478c2ecf20Sopenharmony_ci	0x8a, 0x0,
1488c2ecf20Sopenharmony_ci	0x8b, 0x0,
1498c2ecf20Sopenharmony_ci	0x8c, 0x0,
1508c2ecf20Sopenharmony_ci	0x90, 0x0,
1518c2ecf20Sopenharmony_ci	0x91, 0x0,
1528c2ecf20Sopenharmony_ci	0x92, 0x0,
1538c2ecf20Sopenharmony_ci	0x93, 0x0,
1548c2ecf20Sopenharmony_ci	0x94, 0x1c,
1558c2ecf20Sopenharmony_ci	0x97, 0x0,
1568c2ecf20Sopenharmony_ci	0xa0, 0x48,
1578c2ecf20Sopenharmony_ci	0xa1, 0x0,
1588c2ecf20Sopenharmony_ci	0xb0, 0xb8,
1598c2ecf20Sopenharmony_ci	0xb1, 0x3a,
1608c2ecf20Sopenharmony_ci	0xb2, 0x10,
1618c2ecf20Sopenharmony_ci	0xb3, 0x82,
1628c2ecf20Sopenharmony_ci	0xb4, 0x80,
1638c2ecf20Sopenharmony_ci	0xb5, 0x82,
1648c2ecf20Sopenharmony_ci	0xb6, 0x82,
1658c2ecf20Sopenharmony_ci	0xb7, 0x82,
1668c2ecf20Sopenharmony_ci	0xb8, 0x20,
1678c2ecf20Sopenharmony_ci	0xb9, 0x0,
1688c2ecf20Sopenharmony_ci	0xf0, 0x0,
1698c2ecf20Sopenharmony_ci	0xf1, 0x0,
1708c2ecf20Sopenharmony_ci	0xf2, 0xc0,
1718c2ecf20Sopenharmony_ci	0xff, 0xff,
1728c2ecf20Sopenharmony_ci};
1738c2ecf20Sopenharmony_ci#endif
174