Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /* DVB USB compliant linux driver for
0003  *
0004  * DM04/QQBOX DVB-S USB BOX LME2510C + SHARP:BS2F7HZ7395
0005  *              LME2510C + LG TDQY-P001F
0006  *              LME2510 + LG TDQY-P001F
0007  *
0008  * MVB7395 (LME2510C+SHARP:BS2F7HZ7395)
0009  * SHARP:BS2F7HZ7395 = (STV0288+Sharp IX2505V)
0010  *
0011  * MVB001F (LME2510+LGTDQT-P001F)
0012  * LG TDQY - P001F =(TDA8263 + TDA10086H)
0013  *
0014  * MVB0001F (LME2510C+LGTDQT-P001F)
0015  *
0016  * *
0017  * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
0018  */
0019 #ifndef _DVB_USB_LME2510_H_
0020 #define _DVB_USB_LME2510_H_
0021 
0022 /* Streamer &  PID
0023  *
0024  * Note:    These commands do not actually stop the streaming
0025  *      but form some kind of packet filtering/stream count
0026  *      or tuning related functions.
0027  *  06 XX
0028  *  offset 1 = 00 Enable Streaming
0029  *
0030  *
0031  *  PID
0032  *  03 XX XX  ----> reg number ---> setting....20 XX
0033  *  offset 1 = length
0034  *  offset 2 = start of data
0035  *  end byte -1 = 20
0036  *  end byte = clear pid always a0, other wise 9c, 9a ??
0037  *
0038 */
0039 #define LME_ST_ON_W {0x06, 0x00}
0040 #define LME_CLEAR_PID   {0x03, 0x02, 0x20, 0xa0}
0041 #define LME_ZERO_PID    {0x03, 0x06, 0x00, 0x00, 0x01, 0x00, 0x20, 0x9c}
0042 #define LME_ALL_PIDS    {0x03, 0x06, 0x00, 0xff, 0x01, 0x1f, 0x20, 0x81}
0043 
0044 /*  LNB Voltage
0045  *  07 XX XX
0046  *  offset 1 = 01
0047  *  offset 2 = 00=Voltage low 01=Voltage high
0048  *
0049  *  LNB Power
0050  *  03 01 XX
0051  *  offset 2 = 00=ON 01=OFF
0052  */
0053 
0054 #define LME_VOLTAGE_L   {0x07, 0x01, 0x00}
0055 #define LME_VOLTAGE_H   {0x07, 0x01, 0x01}
0056 #define LNB_ON      {0x3a, 0x01, 0x00}
0057 #define LNB_OFF     {0x3a, 0x01, 0x01}
0058 
0059 /* Initial stv0288 settings for 7395 Frontend */
0060 static u8 s7395_inittab[] = {
0061     0x01, 0x15,
0062     0x02, 0x20,
0063     0x03, 0xa0,
0064     0x04, 0xa0,
0065     0x05, 0x12,
0066     0x06, 0x00,
0067     0x09, 0x00,
0068     0x0a, 0x04,
0069     0x0b, 0x00,
0070     0x0c, 0x00,
0071     0x0d, 0x00,
0072     0x0e, 0xc1,
0073     0x0f, 0x54,
0074     0x11, 0x7a,
0075     0x12, 0x03,
0076     0x13, 0x48,
0077     0x14, 0x84,
0078     0x15, 0xc5,
0079     0x16, 0xb8,
0080     0x17, 0x9c,
0081     0x18, 0x00,
0082     0x19, 0xa6,
0083     0x1a, 0x88,
0084     0x1b, 0x8f,
0085     0x1c, 0xf0,
0086     0x20, 0x0b,
0087     0x21, 0x54,
0088     0x22, 0xff,
0089     0x23, 0x01,
0090     0x28, 0x46,
0091     0x29, 0x66,
0092     0x2a, 0x90,
0093     0x2b, 0xfa,
0094     0x2c, 0xd9,
0095     0x30, 0x0,
0096     0x31, 0x1e,
0097     0x32, 0x14,
0098     0x33, 0x0f,
0099     0x34, 0x09,
0100     0x35, 0x0c,
0101     0x36, 0x05,
0102     0x37, 0x2f,
0103     0x38, 0x16,
0104     0x39, 0xbd,
0105     0x3a, 0x0,
0106     0x3b, 0x13,
0107     0x3c, 0x11,
0108     0x3d, 0x30,
0109     0x40, 0x63,
0110     0x41, 0x04,
0111     0x42, 0x20,
0112     0x43, 0x00,
0113     0x44, 0x00,
0114     0x45, 0x00,
0115     0x46, 0x00,
0116     0x47, 0x00,
0117     0x4a, 0x00,
0118     0x50, 0x10,
0119     0x51, 0x36,
0120     0x52, 0x21,
0121     0x53, 0x94,
0122     0x54, 0xb2,
0123     0x55, 0x29,
0124     0x56, 0x64,
0125     0x57, 0x2b,
0126     0x58, 0x54,
0127     0x59, 0x86,
0128     0x5a, 0x00,
0129     0x5b, 0x9b,
0130     0x5c, 0x08,
0131     0x5d, 0x7f,
0132     0x5e, 0xff,
0133     0x5f, 0x8d,
0134     0x70, 0x0,
0135     0x71, 0x0,
0136     0x72, 0x0,
0137     0x74, 0x0,
0138     0x75, 0x0,
0139     0x76, 0x0,
0140     0x81, 0x0,
0141     0x82, 0x3f,
0142     0x83, 0x3f,
0143     0x84, 0x0,
0144     0x85, 0x0,
0145     0x88, 0x0,
0146     0x89, 0x0,
0147     0x8a, 0x0,
0148     0x8b, 0x0,
0149     0x8c, 0x0,
0150     0x90, 0x0,
0151     0x91, 0x0,
0152     0x92, 0x0,
0153     0x93, 0x0,
0154     0x94, 0x1c,
0155     0x97, 0x0,
0156     0xa0, 0x48,
0157     0xa1, 0x0,
0158     0xb0, 0xb8,
0159     0xb1, 0x3a,
0160     0xb2, 0x10,
0161     0xb3, 0x82,
0162     0xb4, 0x80,
0163     0xb5, 0x82,
0164     0xb6, 0x82,
0165     0xb7, 0x82,
0166     0xb8, 0x20,
0167     0xb9, 0x0,
0168     0xf0, 0x0,
0169     0xf1, 0x0,
0170     0xf2, 0xc0,
0171     0xff, 0xff,
0172 };
0173 #endif