1*9a0bf528SMauro Carvalho Chehab /* 2*9a0bf528SMauro Carvalho Chehab * drxd_firm.c : DRXD firmware tables 3*9a0bf528SMauro Carvalho Chehab * 4*9a0bf528SMauro Carvalho Chehab * Copyright (C) 2006-2007 Micronas 5*9a0bf528SMauro Carvalho Chehab * 6*9a0bf528SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or 7*9a0bf528SMauro Carvalho Chehab * modify it under the terms of the GNU General Public License 8*9a0bf528SMauro Carvalho Chehab * version 2 only, as published by the Free Software Foundation. 9*9a0bf528SMauro Carvalho Chehab * 10*9a0bf528SMauro Carvalho Chehab * 11*9a0bf528SMauro Carvalho Chehab * This program is distributed in the hope that it will be useful, 12*9a0bf528SMauro Carvalho Chehab * but WITHOUT ANY WARRANTY; without even the implied warranty of 13*9a0bf528SMauro Carvalho Chehab * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*9a0bf528SMauro Carvalho Chehab * GNU General Public License for more details. 15*9a0bf528SMauro Carvalho Chehab * 16*9a0bf528SMauro Carvalho Chehab * 17*9a0bf528SMauro Carvalho Chehab * You should have received a copy of the GNU General Public License 18*9a0bf528SMauro Carvalho Chehab * along with this program; if not, write to the Free Software 19*9a0bf528SMauro Carvalho Chehab * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 20*9a0bf528SMauro Carvalho Chehab * 02110-1301, USA 21*9a0bf528SMauro Carvalho Chehab * Or, point your browser to http://www.gnu.org/copyleft/gpl.html 22*9a0bf528SMauro Carvalho Chehab */ 23*9a0bf528SMauro Carvalho Chehab 24*9a0bf528SMauro Carvalho Chehab /* TODO: generate this file with a script from a settings file */ 25*9a0bf528SMauro Carvalho Chehab 26*9a0bf528SMauro Carvalho Chehab /* Contains A2 firmware version: 1.4.2 27*9a0bf528SMauro Carvalho Chehab * Contains B1 firmware version: 3.3.33 28*9a0bf528SMauro Carvalho Chehab * Contains settings from driver 1.4.23 29*9a0bf528SMauro Carvalho Chehab */ 30*9a0bf528SMauro Carvalho Chehab 31*9a0bf528SMauro Carvalho Chehab #include "drxd_firm.h" 32*9a0bf528SMauro Carvalho Chehab 33*9a0bf528SMauro Carvalho Chehab #define ADDRESS(x) ((x) & 0xFF), (((x)>>8) & 0xFF), (((x)>>16) & 0xFF), (((x)>>24) & 0xFF) 34*9a0bf528SMauro Carvalho Chehab #define LENGTH(x) ((x) & 0xFF), (((x)>>8) & 0xFF) 35*9a0bf528SMauro Carvalho Chehab 36*9a0bf528SMauro Carvalho Chehab /* Is written via block write, must be little endian */ 37*9a0bf528SMauro Carvalho Chehab #define DATA16(x) ((x) & 0xFF), (((x)>>8) & 0xFF) 38*9a0bf528SMauro Carvalho Chehab 39*9a0bf528SMauro Carvalho Chehab #define WRBLOCK(a, l) ADDRESS(a), LENGTH(l) 40*9a0bf528SMauro Carvalho Chehab #define WR16(a, d) ADDRESS(a), LENGTH(1), DATA16(d) 41*9a0bf528SMauro Carvalho Chehab 42*9a0bf528SMauro Carvalho Chehab #define END_OF_TABLE 0xFF, 0xFF, 0xFF, 0xFF 43*9a0bf528SMauro Carvalho Chehab 44*9a0bf528SMauro Carvalho Chehab /* HI firmware patches */ 45*9a0bf528SMauro Carvalho Chehab 46*9a0bf528SMauro Carvalho Chehab #define HI_TR_FUNC_ADDR HI_IF_RAM_USR_BEGIN__A 47*9a0bf528SMauro Carvalho Chehab #define HI_TR_FUNC_SIZE 9 /* size of this function in instruction words */ 48*9a0bf528SMauro Carvalho Chehab 49*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitAtomicRead[] = { 50*9a0bf528SMauro Carvalho Chehab WRBLOCK(HI_TR_FUNC_ADDR, HI_TR_FUNC_SIZE), 51*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 52*9a0bf528SMauro Carvalho Chehab 0x60, 0x04, /* r0rami.dt -> ring.xba; */ 53*9a0bf528SMauro Carvalho Chehab 0x61, 0x04, /* r0rami.dt -> ring.xad; */ 54*9a0bf528SMauro Carvalho Chehab 0xE3, 0x07, /* HI_RA_RAM_USR_BEGIN -> ring.iad; */ 55*9a0bf528SMauro Carvalho Chehab 0x40, 0x00, /* (long immediate) */ 56*9a0bf528SMauro Carvalho Chehab 0x64, 0x04, /* r0rami.dt -> ring.len; */ 57*9a0bf528SMauro Carvalho Chehab 0x65, 0x04, /* r0rami.dt -> ring.ctl; */ 58*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 59*9a0bf528SMauro Carvalho Chehab 0x38, 0x00, /* 0 -> jumps.ad; */ 60*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 61*9a0bf528SMauro Carvalho Chehab }; 62*9a0bf528SMauro Carvalho Chehab 63*9a0bf528SMauro Carvalho Chehab /* Pins D0 and D1 of the parallel MPEG output can be used 64*9a0bf528SMauro Carvalho Chehab to set the I2C address of a device. */ 65*9a0bf528SMauro Carvalho Chehab 66*9a0bf528SMauro Carvalho Chehab #define HI_RST_FUNC_ADDR (HI_IF_RAM_USR_BEGIN__A + HI_TR_FUNC_SIZE) 67*9a0bf528SMauro Carvalho Chehab #define HI_RST_FUNC_SIZE 54 /* size of this function in instruction words */ 68*9a0bf528SMauro Carvalho Chehab 69*9a0bf528SMauro Carvalho Chehab /* D0 Version */ 70*9a0bf528SMauro Carvalho Chehab u8 DRXD_HiI2cPatch_1[] = { 71*9a0bf528SMauro Carvalho Chehab WRBLOCK(HI_RST_FUNC_ADDR, HI_RST_FUNC_SIZE), 72*9a0bf528SMauro Carvalho Chehab 0xC8, 0x07, 0x01, 0x00, /* MASK -> reg0.dt; */ 73*9a0bf528SMauro Carvalho Chehab 0xE0, 0x07, 0x15, 0x02, /* (EC__BLK << 6) + EC_OC_REG__BNK -> ring.xba; */ 74*9a0bf528SMauro Carvalho Chehab 0xE1, 0x07, 0x12, 0x00, /* EC_OC_REG_OC_MPG_SIO__A -> ring.xad; */ 75*9a0bf528SMauro Carvalho Chehab 0xA2, 0x00, /* M_BNK_ID_DAT -> ring.iba; */ 76*9a0bf528SMauro Carvalho Chehab 0x23, 0x00, /* &data -> ring.iad; */ 77*9a0bf528SMauro Carvalho Chehab 0x24, 0x00, /* 0 -> ring.len; */ 78*9a0bf528SMauro Carvalho Chehab 0xA5, 0x02, /* M_RC_CTR_SWAP | M_RC_CTR_READ -> ring.ctl; */ 79*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 80*9a0bf528SMauro Carvalho Chehab 0x42, 0x00, /* &data+1 -> w0ram.ad; */ 81*9a0bf528SMauro Carvalho Chehab 0xC0, 0x07, 0xFF, 0x0F, /* -1 -> w0ram.dt; */ 82*9a0bf528SMauro Carvalho Chehab 0x63, 0x00, /* &data+1 -> ring.iad; */ 83*9a0bf528SMauro Carvalho Chehab 0x65, 0x02, /* M_RC_CTR_SWAP | M_RC_CTR_WRITE -> ring.ctl; */ 84*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 85*9a0bf528SMauro Carvalho Chehab 0xE1, 0x07, 0x38, 0x00, /* EC_OC_REG_OCR_MPG_USR_DAT__A -> ring.xad; */ 86*9a0bf528SMauro Carvalho Chehab 0xA5, 0x02, /* M_RC_CTR_SWAP | M_RC_CTR_READ -> ring.ctl; */ 87*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 88*9a0bf528SMauro Carvalho Chehab 0xE1, 0x07, 0x12, 0x00, /* EC_OC_REG_OC_MPG_SIO__A -> ring.xad; */ 89*9a0bf528SMauro Carvalho Chehab 0x23, 0x00, /* &data -> ring.iad; */ 90*9a0bf528SMauro Carvalho Chehab 0x65, 0x02, /* M_RC_CTR_SWAP | M_RC_CTR_WRITE -> ring.ctl; */ 91*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 92*9a0bf528SMauro Carvalho Chehab 0x42, 0x00, /* &data+1 -> w0ram.ad; */ 93*9a0bf528SMauro Carvalho Chehab 0x0F, 0x04, /* r0ram.dt -> and.op; */ 94*9a0bf528SMauro Carvalho Chehab 0x1C, 0x06, /* reg0.dt -> and.tr; */ 95*9a0bf528SMauro Carvalho Chehab 0xCF, 0x04, /* and.rs -> add.op; */ 96*9a0bf528SMauro Carvalho Chehab 0xD0, 0x07, 0x70, 0x00, /* DEF_DEV_ID -> add.tr; */ 97*9a0bf528SMauro Carvalho Chehab 0xD0, 0x04, /* add.rs -> add.tr; */ 98*9a0bf528SMauro Carvalho Chehab 0xC8, 0x04, /* add.rs -> reg0.dt; */ 99*9a0bf528SMauro Carvalho Chehab 0x60, 0x00, /* reg0.dt -> w0ram.dt; */ 100*9a0bf528SMauro Carvalho Chehab 0xC2, 0x07, 0x10, 0x00, /* SLV0_BASE -> w0rami.ad; */ 101*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 102*9a0bf528SMauro Carvalho Chehab 0x01, 0x06, /* reg0.dt -> w0rami.dt; */ 103*9a0bf528SMauro Carvalho Chehab 0xC2, 0x07, 0x20, 0x00, /* SLV1_BASE -> w0rami.ad; */ 104*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 105*9a0bf528SMauro Carvalho Chehab 0x01, 0x06, /* reg0.dt -> w0rami.dt; */ 106*9a0bf528SMauro Carvalho Chehab 0xC2, 0x07, 0x30, 0x00, /* CMD_BASE -> w0rami.ad; */ 107*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 108*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 109*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 110*9a0bf528SMauro Carvalho Chehab 0x68, 0x00, /* M_IC_SEL_PT1 -> i2c.sel; */ 111*9a0bf528SMauro Carvalho Chehab 0x29, 0x00, /* M_IC_CMD_RESET -> i2c.cmd; */ 112*9a0bf528SMauro Carvalho Chehab 0x28, 0x00, /* M_IC_SEL_PT0 -> i2c.sel; */ 113*9a0bf528SMauro Carvalho Chehab 0x29, 0x00, /* M_IC_CMD_RESET -> i2c.cmd; */ 114*9a0bf528SMauro Carvalho Chehab 0xF8, 0x07, 0x2F, 0x00, /* 0x2F -> jumps.ad; */ 115*9a0bf528SMauro Carvalho Chehab 116*9a0bf528SMauro Carvalho Chehab WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 0) + 1)), 117*9a0bf528SMauro Carvalho Chehab (u16) (HI_RST_FUNC_ADDR & 0x3FF)), 118*9a0bf528SMauro Carvalho Chehab WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 1) + 1)), 119*9a0bf528SMauro Carvalho Chehab (u16) (HI_RST_FUNC_ADDR & 0x3FF)), 120*9a0bf528SMauro Carvalho Chehab WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 2) + 1)), 121*9a0bf528SMauro Carvalho Chehab (u16) (HI_RST_FUNC_ADDR & 0x3FF)), 122*9a0bf528SMauro Carvalho Chehab WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 3) + 1)), 123*9a0bf528SMauro Carvalho Chehab (u16) (HI_RST_FUNC_ADDR & 0x3FF)), 124*9a0bf528SMauro Carvalho Chehab 125*9a0bf528SMauro Carvalho Chehab /* Force quick and dirty reset */ 126*9a0bf528SMauro Carvalho Chehab WR16(B_HI_CT_REG_COMM_STATE__A, 0), 127*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 128*9a0bf528SMauro Carvalho Chehab }; 129*9a0bf528SMauro Carvalho Chehab 130*9a0bf528SMauro Carvalho Chehab /* D0,D1 Version */ 131*9a0bf528SMauro Carvalho Chehab u8 DRXD_HiI2cPatch_3[] = { 132*9a0bf528SMauro Carvalho Chehab WRBLOCK(HI_RST_FUNC_ADDR, HI_RST_FUNC_SIZE), 133*9a0bf528SMauro Carvalho Chehab 0xC8, 0x07, 0x03, 0x00, /* MASK -> reg0.dt; */ 134*9a0bf528SMauro Carvalho Chehab 0xE0, 0x07, 0x15, 0x02, /* (EC__BLK << 6) + EC_OC_REG__BNK -> ring.xba; */ 135*9a0bf528SMauro Carvalho Chehab 0xE1, 0x07, 0x12, 0x00, /* EC_OC_REG_OC_MPG_SIO__A -> ring.xad; */ 136*9a0bf528SMauro Carvalho Chehab 0xA2, 0x00, /* M_BNK_ID_DAT -> ring.iba; */ 137*9a0bf528SMauro Carvalho Chehab 0x23, 0x00, /* &data -> ring.iad; */ 138*9a0bf528SMauro Carvalho Chehab 0x24, 0x00, /* 0 -> ring.len; */ 139*9a0bf528SMauro Carvalho Chehab 0xA5, 0x02, /* M_RC_CTR_SWAP | M_RC_CTR_READ -> ring.ctl; */ 140*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 141*9a0bf528SMauro Carvalho Chehab 0x42, 0x00, /* &data+1 -> w0ram.ad; */ 142*9a0bf528SMauro Carvalho Chehab 0xC0, 0x07, 0xFF, 0x0F, /* -1 -> w0ram.dt; */ 143*9a0bf528SMauro Carvalho Chehab 0x63, 0x00, /* &data+1 -> ring.iad; */ 144*9a0bf528SMauro Carvalho Chehab 0x65, 0x02, /* M_RC_CTR_SWAP | M_RC_CTR_WRITE -> ring.ctl; */ 145*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 146*9a0bf528SMauro Carvalho Chehab 0xE1, 0x07, 0x38, 0x00, /* EC_OC_REG_OCR_MPG_USR_DAT__A -> ring.xad; */ 147*9a0bf528SMauro Carvalho Chehab 0xA5, 0x02, /* M_RC_CTR_SWAP | M_RC_CTR_READ -> ring.ctl; */ 148*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 149*9a0bf528SMauro Carvalho Chehab 0xE1, 0x07, 0x12, 0x00, /* EC_OC_REG_OC_MPG_SIO__A -> ring.xad; */ 150*9a0bf528SMauro Carvalho Chehab 0x23, 0x00, /* &data -> ring.iad; */ 151*9a0bf528SMauro Carvalho Chehab 0x65, 0x02, /* M_RC_CTR_SWAP | M_RC_CTR_WRITE -> ring.ctl; */ 152*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* 0 -> ring.rdy; */ 153*9a0bf528SMauro Carvalho Chehab 0x42, 0x00, /* &data+1 -> w0ram.ad; */ 154*9a0bf528SMauro Carvalho Chehab 0x0F, 0x04, /* r0ram.dt -> and.op; */ 155*9a0bf528SMauro Carvalho Chehab 0x1C, 0x06, /* reg0.dt -> and.tr; */ 156*9a0bf528SMauro Carvalho Chehab 0xCF, 0x04, /* and.rs -> add.op; */ 157*9a0bf528SMauro Carvalho Chehab 0xD0, 0x07, 0x70, 0x00, /* DEF_DEV_ID -> add.tr; */ 158*9a0bf528SMauro Carvalho Chehab 0xD0, 0x04, /* add.rs -> add.tr; */ 159*9a0bf528SMauro Carvalho Chehab 0xC8, 0x04, /* add.rs -> reg0.dt; */ 160*9a0bf528SMauro Carvalho Chehab 0x60, 0x00, /* reg0.dt -> w0ram.dt; */ 161*9a0bf528SMauro Carvalho Chehab 0xC2, 0x07, 0x10, 0x00, /* SLV0_BASE -> w0rami.ad; */ 162*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 163*9a0bf528SMauro Carvalho Chehab 0x01, 0x06, /* reg0.dt -> w0rami.dt; */ 164*9a0bf528SMauro Carvalho Chehab 0xC2, 0x07, 0x20, 0x00, /* SLV1_BASE -> w0rami.ad; */ 165*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 166*9a0bf528SMauro Carvalho Chehab 0x01, 0x06, /* reg0.dt -> w0rami.dt; */ 167*9a0bf528SMauro Carvalho Chehab 0xC2, 0x07, 0x30, 0x00, /* CMD_BASE -> w0rami.ad; */ 168*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 169*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 170*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* 0 -> w0rami.dt; */ 171*9a0bf528SMauro Carvalho Chehab 0x68, 0x00, /* M_IC_SEL_PT1 -> i2c.sel; */ 172*9a0bf528SMauro Carvalho Chehab 0x29, 0x00, /* M_IC_CMD_RESET -> i2c.cmd; */ 173*9a0bf528SMauro Carvalho Chehab 0x28, 0x00, /* M_IC_SEL_PT0 -> i2c.sel; */ 174*9a0bf528SMauro Carvalho Chehab 0x29, 0x00, /* M_IC_CMD_RESET -> i2c.cmd; */ 175*9a0bf528SMauro Carvalho Chehab 0xF8, 0x07, 0x2F, 0x00, /* 0x2F -> jumps.ad; */ 176*9a0bf528SMauro Carvalho Chehab 177*9a0bf528SMauro Carvalho Chehab WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 0) + 1)), 178*9a0bf528SMauro Carvalho Chehab (u16) (HI_RST_FUNC_ADDR & 0x3FF)), 179*9a0bf528SMauro Carvalho Chehab WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 1) + 1)), 180*9a0bf528SMauro Carvalho Chehab (u16) (HI_RST_FUNC_ADDR & 0x3FF)), 181*9a0bf528SMauro Carvalho Chehab WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 2) + 1)), 182*9a0bf528SMauro Carvalho Chehab (u16) (HI_RST_FUNC_ADDR & 0x3FF)), 183*9a0bf528SMauro Carvalho Chehab WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 3) + 1)), 184*9a0bf528SMauro Carvalho Chehab (u16) (HI_RST_FUNC_ADDR & 0x3FF)), 185*9a0bf528SMauro Carvalho Chehab 186*9a0bf528SMauro Carvalho Chehab /* Force quick and dirty reset */ 187*9a0bf528SMauro Carvalho Chehab WR16(B_HI_CT_REG_COMM_STATE__A, 0), 188*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 189*9a0bf528SMauro Carvalho Chehab }; 190*9a0bf528SMauro Carvalho Chehab 191*9a0bf528SMauro Carvalho Chehab u8 DRXD_ResetCEFR[] = { 192*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_FR_TREAL00__A, 57), 193*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL00__A */ 194*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG00__A */ 195*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL01__A */ 196*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG01__A */ 197*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL02__A */ 198*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG02__A */ 199*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL03__A */ 200*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG03__A */ 201*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL04__A */ 202*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG04__A */ 203*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL05__A */ 204*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG05__A */ 205*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL06__A */ 206*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG06__A */ 207*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL07__A */ 208*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG07__A */ 209*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL08__A */ 210*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG08__A */ 211*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL09__A */ 212*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG09__A */ 213*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL10__A */ 214*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG10__A */ 215*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_TREAL11__A */ 216*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_TIMAG11__A */ 217*9a0bf528SMauro Carvalho Chehab 218*9a0bf528SMauro Carvalho Chehab 0x52, 0x00, /* CE_REG_FR_MID_TAP__A */ 219*9a0bf528SMauro Carvalho Chehab 220*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G00__A */ 221*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G01__A */ 222*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G02__A */ 223*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G03__A */ 224*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G04__A */ 225*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G05__A */ 226*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G06__A */ 227*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G07__A */ 228*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G08__A */ 229*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G09__A */ 230*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G10__A */ 231*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G11__A */ 232*9a0bf528SMauro Carvalho Chehab 0x0B, 0x00, /* CE_REG_FR_SQS_G12__A */ 233*9a0bf528SMauro Carvalho Chehab 234*9a0bf528SMauro Carvalho Chehab 0xFF, 0x01, /* CE_REG_FR_RIO_G00__A */ 235*9a0bf528SMauro Carvalho Chehab 0x90, 0x01, /* CE_REG_FR_RIO_G01__A */ 236*9a0bf528SMauro Carvalho Chehab 0x0B, 0x01, /* CE_REG_FR_RIO_G02__A */ 237*9a0bf528SMauro Carvalho Chehab 0xC8, 0x00, /* CE_REG_FR_RIO_G03__A */ 238*9a0bf528SMauro Carvalho Chehab 0xA0, 0x00, /* CE_REG_FR_RIO_G04__A */ 239*9a0bf528SMauro Carvalho Chehab 0x85, 0x00, /* CE_REG_FR_RIO_G05__A */ 240*9a0bf528SMauro Carvalho Chehab 0x72, 0x00, /* CE_REG_FR_RIO_G06__A */ 241*9a0bf528SMauro Carvalho Chehab 0x64, 0x00, /* CE_REG_FR_RIO_G07__A */ 242*9a0bf528SMauro Carvalho Chehab 0x59, 0x00, /* CE_REG_FR_RIO_G08__A */ 243*9a0bf528SMauro Carvalho Chehab 0x50, 0x00, /* CE_REG_FR_RIO_G09__A */ 244*9a0bf528SMauro Carvalho Chehab 0x49, 0x00, /* CE_REG_FR_RIO_G10__A */ 245*9a0bf528SMauro Carvalho Chehab 246*9a0bf528SMauro Carvalho Chehab 0x10, 0x00, /* CE_REG_FR_MODE__A */ 247*9a0bf528SMauro Carvalho Chehab 0x78, 0x00, /* CE_REG_FR_SQS_TRH__A */ 248*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_FR_RIO_GAIN__A */ 249*9a0bf528SMauro Carvalho Chehab 0x00, 0x02, /* CE_REG_FR_BYPASS__A */ 250*9a0bf528SMauro Carvalho Chehab 0x0D, 0x00, /* CE_REG_FR_PM_SET__A */ 251*9a0bf528SMauro Carvalho Chehab 0x07, 0x00, /* CE_REG_FR_ERR_SH__A */ 252*9a0bf528SMauro Carvalho Chehab 0x04, 0x00, /* CE_REG_FR_MAN_SH__A */ 253*9a0bf528SMauro Carvalho Chehab 0x06, 0x00, /* CE_REG_FR_TAP_SH__A */ 254*9a0bf528SMauro Carvalho Chehab 255*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 256*9a0bf528SMauro Carvalho Chehab }; 257*9a0bf528SMauro Carvalho Chehab 258*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitFEA2_1[] = { 259*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_AD_REG_PD__A, 3), 260*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AD_REG_PD__A */ 261*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* FE_AD_REG_INVEXT__A */ 262*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AD_REG_CLKNEG__A */ 263*9a0bf528SMauro Carvalho Chehab 264*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_AG_REG_DCE_AUR_CNT__A, 2), 265*9a0bf528SMauro Carvalho Chehab 0x10, 0x00, /* FE_AG_REG_DCE_AUR_CNT__A */ 266*9a0bf528SMauro Carvalho Chehab 0x10, 0x00, /* FE_AG_REG_DCE_RUR_CNT__A */ 267*9a0bf528SMauro Carvalho Chehab 268*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_AG_REG_ACE_AUR_CNT__A, 2), 269*9a0bf528SMauro Carvalho Chehab 0x0E, 0x00, /* FE_AG_REG_ACE_AUR_CNT__A */ 270*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_ACE_RUR_CNT__A */ 271*9a0bf528SMauro Carvalho Chehab 272*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_AG_REG_EGC_FLA_RGN__A, 5), 273*9a0bf528SMauro Carvalho Chehab 0x04, 0x00, /* FE_AG_REG_EGC_FLA_RGN__A */ 274*9a0bf528SMauro Carvalho Chehab 0x1F, 0x00, /* FE_AG_REG_EGC_SLO_RGN__A */ 275*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_EGC_JMP_PSN__A */ 276*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_EGC_FLA_INC__A */ 277*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_EGC_FLA_DEC__A */ 278*9a0bf528SMauro Carvalho Chehab 279*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_AG_REG_GC1_AGC_MAX__A, 2), 280*9a0bf528SMauro Carvalho Chehab 0xFF, 0x01, /* FE_AG_REG_GC1_AGC_MAX__A */ 281*9a0bf528SMauro Carvalho Chehab 0x00, 0xFE, /* FE_AG_REG_GC1_AGC_MIN__A */ 282*9a0bf528SMauro Carvalho Chehab 283*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_AG_REG_IND_WIN__A, 29), 284*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_IND_WIN__A */ 285*9a0bf528SMauro Carvalho Chehab 0x05, 0x00, /* FE_AG_REG_IND_THD_LOL__A */ 286*9a0bf528SMauro Carvalho Chehab 0x0F, 0x00, /* FE_AG_REG_IND_THD_HIL__A */ 287*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_IND_DEL__A don't care */ 288*9a0bf528SMauro Carvalho Chehab 0x1E, 0x00, /* FE_AG_REG_IND_PD1_WRI__A */ 289*9a0bf528SMauro Carvalho Chehab 0x0C, 0x00, /* FE_AG_REG_PDA_AUR_CNT__A */ 290*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_PDA_RUR_CNT__A */ 291*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_PDA_AVE_DAT__A don't care */ 292*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_PDC_RUR_CNT__A */ 293*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* FE_AG_REG_PDC_SET_LVL__A */ 294*9a0bf528SMauro Carvalho Chehab 0x02, 0x00, /* FE_AG_REG_PDC_FLA_RGN__A */ 295*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_PDC_JMP_PSN__A don't care */ 296*9a0bf528SMauro Carvalho Chehab 0xFF, 0xFF, /* FE_AG_REG_PDC_FLA_STP__A */ 297*9a0bf528SMauro Carvalho Chehab 0xFF, 0xFF, /* FE_AG_REG_PDC_SLO_STP__A */ 298*9a0bf528SMauro Carvalho Chehab 0x00, 0x1F, /* FE_AG_REG_PDC_PD2_WRI__A don't care */ 299*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_PDC_MAP_DAT__A don't care */ 300*9a0bf528SMauro Carvalho Chehab 0x02, 0x00, /* FE_AG_REG_PDC_MAX__A */ 301*9a0bf528SMauro Carvalho Chehab 0x0C, 0x00, /* FE_AG_REG_TGA_AUR_CNT__A */ 302*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_TGA_RUR_CNT__A */ 303*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_TGA_AVE_DAT__A don't care */ 304*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_TGC_RUR_CNT__A */ 305*9a0bf528SMauro Carvalho Chehab 0x22, 0x00, /* FE_AG_REG_TGC_SET_LVL__A */ 306*9a0bf528SMauro Carvalho Chehab 0x15, 0x00, /* FE_AG_REG_TGC_FLA_RGN__A */ 307*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_TGC_JMP_PSN__A don't care */ 308*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* FE_AG_REG_TGC_FLA_STP__A */ 309*9a0bf528SMauro Carvalho Chehab 0x0A, 0x00, /* FE_AG_REG_TGC_SLO_STP__A */ 310*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_TGC_MAP_DAT__A don't care */ 311*9a0bf528SMauro Carvalho Chehab 0x10, 0x00, /* FE_AG_REG_FGA_AUR_CNT__A */ 312*9a0bf528SMauro Carvalho Chehab 0x10, 0x00, /* FE_AG_REG_FGA_RUR_CNT__A */ 313*9a0bf528SMauro Carvalho Chehab 314*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_AG_REG_BGC_FGC_WRI__A, 2), 315*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_BGC_FGC_WRI__A */ 316*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_AG_REG_BGC_CGC_WRI__A */ 317*9a0bf528SMauro Carvalho Chehab 318*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_FD_REG_SCL__A, 3), 319*9a0bf528SMauro Carvalho Chehab 0x05, 0x00, /* FE_FD_REG_SCL__A */ 320*9a0bf528SMauro Carvalho Chehab 0x03, 0x00, /* FE_FD_REG_MAX_LEV__A */ 321*9a0bf528SMauro Carvalho Chehab 0x05, 0x00, /* FE_FD_REG_NR__A */ 322*9a0bf528SMauro Carvalho Chehab 323*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_CF_REG_SCL__A, 5), 324*9a0bf528SMauro Carvalho Chehab 0x16, 0x00, /* FE_CF_REG_SCL__A */ 325*9a0bf528SMauro Carvalho Chehab 0x04, 0x00, /* FE_CF_REG_MAX_LEV__A */ 326*9a0bf528SMauro Carvalho Chehab 0x06, 0x00, /* FE_CF_REG_NR__A */ 327*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_CF_REG_IMP_VAL__A */ 328*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* FE_CF_REG_MEAS_VAL__A */ 329*9a0bf528SMauro Carvalho Chehab 330*9a0bf528SMauro Carvalho Chehab WRBLOCK(FE_CU_REG_FRM_CNT_RST__A, 2), 331*9a0bf528SMauro Carvalho Chehab 0x00, 0x08, /* FE_CU_REG_FRM_CNT_RST__A */ 332*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* FE_CU_REG_FRM_CNT_STR__A */ 333*9a0bf528SMauro Carvalho Chehab 334*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 335*9a0bf528SMauro Carvalho Chehab }; 336*9a0bf528SMauro Carvalho Chehab 337*9a0bf528SMauro Carvalho Chehab /* with PGA */ 338*9a0bf528SMauro Carvalho Chehab /* WR16COND( DRXD_WITH_PGA, FE_AG_REG_AG_PGA_MODE__A , 0x0004), */ 339*9a0bf528SMauro Carvalho Chehab /* without PGA */ 340*9a0bf528SMauro Carvalho Chehab /* WR16COND( DRXD_WITHOUT_PGA, FE_AG_REG_AG_PGA_MODE__A , 0x0001), */ 341*9a0bf528SMauro Carvalho Chehab /* WR16(FE_AG_REG_AG_AGC_SIO__A, (extAttr -> FeAgRegAgAgcSio), 0x0000 );*/ 342*9a0bf528SMauro Carvalho Chehab /* WR16(FE_AG_REG_AG_PWD__A ,(extAttr -> FeAgRegAgPwd), 0x0000 );*/ 343*9a0bf528SMauro Carvalho Chehab 344*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitFEA2_2[] = { 345*9a0bf528SMauro Carvalho Chehab WR16(FE_AG_REG_CDR_RUR_CNT__A, 0x0010), 346*9a0bf528SMauro Carvalho Chehab WR16(FE_AG_REG_FGM_WRI__A, 48), 347*9a0bf528SMauro Carvalho Chehab /* Activate measurement, activate scale */ 348*9a0bf528SMauro Carvalho Chehab WR16(FE_FD_REG_MEAS_VAL__A, 0x0001), 349*9a0bf528SMauro Carvalho Chehab 350*9a0bf528SMauro Carvalho Chehab WR16(FE_CU_REG_COMM_EXEC__A, 0x0001), 351*9a0bf528SMauro Carvalho Chehab WR16(FE_CF_REG_COMM_EXEC__A, 0x0001), 352*9a0bf528SMauro Carvalho Chehab WR16(FE_IF_REG_COMM_EXEC__A, 0x0001), 353*9a0bf528SMauro Carvalho Chehab WR16(FE_FD_REG_COMM_EXEC__A, 0x0001), 354*9a0bf528SMauro Carvalho Chehab WR16(FE_FS_REG_COMM_EXEC__A, 0x0001), 355*9a0bf528SMauro Carvalho Chehab WR16(FE_AD_REG_COMM_EXEC__A, 0x0001), 356*9a0bf528SMauro Carvalho Chehab WR16(FE_AG_REG_COMM_EXEC__A, 0x0001), 357*9a0bf528SMauro Carvalho Chehab WR16(FE_AG_REG_AG_MODE_LOP__A, 0x895E), 358*9a0bf528SMauro Carvalho Chehab 359*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 360*9a0bf528SMauro Carvalho Chehab }; 361*9a0bf528SMauro Carvalho Chehab 362*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitFEB1_1[] = { 363*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AD_REG_PD__A, 0x0000), 364*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AD_REG_CLKNEG__A, 0x0000), 365*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_BGC_FGC_WRI__A, 0x0000), 366*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_BGC_CGC_WRI__A, 0x0000), 367*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_AG_MODE_LOP__A, 0x000a), 368*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_IND_PD1_WRI__A, 35), 369*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_IND_WIN__A, 0), 370*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_IND_THD_LOL__A, 8), 371*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_IND_THD_HIL__A, 8), 372*9a0bf528SMauro Carvalho Chehab WR16(B_FE_CF_REG_IMP_VAL__A, 1), 373*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_EGC_FLA_RGN__A, 7), 374*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 375*9a0bf528SMauro Carvalho Chehab }; 376*9a0bf528SMauro Carvalho Chehab 377*9a0bf528SMauro Carvalho Chehab /* with PGA */ 378*9a0bf528SMauro Carvalho Chehab /* WR16(B_FE_AG_REG_AG_PGA_MODE__A , 0x0000, 0x0000); */ 379*9a0bf528SMauro Carvalho Chehab /* without PGA */ 380*9a0bf528SMauro Carvalho Chehab /* WR16(B_FE_AG_REG_AG_PGA_MODE__A , 381*9a0bf528SMauro Carvalho Chehab B_FE_AG_REG_AG_PGA_MODE_PFN_PCN_AFY_REN, 0x0000);*/ 382*9a0bf528SMauro Carvalho Chehab /* WR16(B_FE_AG_REG_AG_AGC_SIO__A,(extAttr -> FeAgRegAgAgcSio), 0x0000 );*//*added HS 23-05-2005 */ 383*9a0bf528SMauro Carvalho Chehab /* WR16(B_FE_AG_REG_AG_PWD__A ,(extAttr -> FeAgRegAgPwd), 0x0000 );*/ 384*9a0bf528SMauro Carvalho Chehab 385*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitFEB1_2[] = { 386*9a0bf528SMauro Carvalho Chehab WR16(B_FE_COMM_EXEC__A, 0x0001), 387*9a0bf528SMauro Carvalho Chehab 388*9a0bf528SMauro Carvalho Chehab /* RF-AGC setup */ 389*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_PDA_AUR_CNT__A, 0x0C), 390*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_PDC_SET_LVL__A, 0x01), 391*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_PDC_FLA_RGN__A, 0x02), 392*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_PDC_FLA_STP__A, 0xFFFF), 393*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_PDC_SLO_STP__A, 0xFFFF), 394*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_PDC_MAX__A, 0x02), 395*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_TGA_AUR_CNT__A, 0x0C), 396*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_TGC_SET_LVL__A, 0x22), 397*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_TGC_FLA_RGN__A, 0x15), 398*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_TGC_FLA_STP__A, 0x01), 399*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AG_REG_TGC_SLO_STP__A, 0x0A), 400*9a0bf528SMauro Carvalho Chehab 401*9a0bf528SMauro Carvalho Chehab WR16(B_FE_CU_REG_DIV_NFC_CLP__A, 0), 402*9a0bf528SMauro Carvalho Chehab WR16(B_FE_CU_REG_CTR_NFC_OCR__A, 25000), 403*9a0bf528SMauro Carvalho Chehab WR16(B_FE_CU_REG_CTR_NFC_ICR__A, 1), 404*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 405*9a0bf528SMauro Carvalho Chehab }; 406*9a0bf528SMauro Carvalho Chehab 407*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitCPA2[] = { 408*9a0bf528SMauro Carvalho Chehab WRBLOCK(CP_REG_BR_SPL_OFFSET__A, 2), 409*9a0bf528SMauro Carvalho Chehab 0x07, 0x00, /* CP_REG_BR_SPL_OFFSET__A */ 410*9a0bf528SMauro Carvalho Chehab 0x0A, 0x00, /* CP_REG_BR_STR_DEL__A */ 411*9a0bf528SMauro Carvalho Chehab 412*9a0bf528SMauro Carvalho Chehab WRBLOCK(CP_REG_RT_ANG_INC0__A, 4), 413*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CP_REG_RT_ANG_INC0__A */ 414*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CP_REG_RT_ANG_INC1__A */ 415*9a0bf528SMauro Carvalho Chehab 0x03, 0x00, /* CP_REG_RT_DETECT_ENA__A */ 416*9a0bf528SMauro Carvalho Chehab 0x03, 0x00, /* CP_REG_RT_DETECT_TRH__A */ 417*9a0bf528SMauro Carvalho Chehab 418*9a0bf528SMauro Carvalho Chehab WRBLOCK(CP_REG_AC_NEXP_OFFS__A, 5), 419*9a0bf528SMauro Carvalho Chehab 0x32, 0x00, /* CP_REG_AC_NEXP_OFFS__A */ 420*9a0bf528SMauro Carvalho Chehab 0x62, 0x00, /* CP_REG_AC_AVER_POW__A */ 421*9a0bf528SMauro Carvalho Chehab 0x82, 0x00, /* CP_REG_AC_MAX_POW__A */ 422*9a0bf528SMauro Carvalho Chehab 0x26, 0x00, /* CP_REG_AC_WEIGHT_MAN__A */ 423*9a0bf528SMauro Carvalho Chehab 0x0F, 0x00, /* CP_REG_AC_WEIGHT_EXP__A */ 424*9a0bf528SMauro Carvalho Chehab 425*9a0bf528SMauro Carvalho Chehab WRBLOCK(CP_REG_AC_AMP_MODE__A, 2), 426*9a0bf528SMauro Carvalho Chehab 0x02, 0x00, /* CP_REG_AC_AMP_MODE__A */ 427*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* CP_REG_AC_AMP_FIX__A */ 428*9a0bf528SMauro Carvalho Chehab 429*9a0bf528SMauro Carvalho Chehab WR16(CP_REG_INTERVAL__A, 0x0005), 430*9a0bf528SMauro Carvalho Chehab WR16(CP_REG_RT_EXP_MARG__A, 0x0004), 431*9a0bf528SMauro Carvalho Chehab WR16(CP_REG_AC_ANG_MODE__A, 0x0003), 432*9a0bf528SMauro Carvalho Chehab 433*9a0bf528SMauro Carvalho Chehab WR16(CP_REG_COMM_EXEC__A, 0x0001), 434*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 435*9a0bf528SMauro Carvalho Chehab }; 436*9a0bf528SMauro Carvalho Chehab 437*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitCPB1[] = { 438*9a0bf528SMauro Carvalho Chehab WR16(B_CP_REG_BR_SPL_OFFSET__A, 0x0008), 439*9a0bf528SMauro Carvalho Chehab WR16(B_CP_COMM_EXEC__A, 0x0001), 440*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 441*9a0bf528SMauro Carvalho Chehab }; 442*9a0bf528SMauro Carvalho Chehab 443*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitCEA2[] = { 444*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_AVG_POW__A, 4), 445*9a0bf528SMauro Carvalho Chehab 0x62, 0x00, /* CE_REG_AVG_POW__A */ 446*9a0bf528SMauro Carvalho Chehab 0x78, 0x00, /* CE_REG_MAX_POW__A */ 447*9a0bf528SMauro Carvalho Chehab 0x62, 0x00, /* CE_REG_ATT__A */ 448*9a0bf528SMauro Carvalho Chehab 0x17, 0x00, /* CE_REG_NRED__A */ 449*9a0bf528SMauro Carvalho Chehab 450*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_NE_ERR_SELECT__A, 2), 451*9a0bf528SMauro Carvalho Chehab 0x07, 0x00, /* CE_REG_NE_ERR_SELECT__A */ 452*9a0bf528SMauro Carvalho Chehab 0xEB, 0xFF, /* CE_REG_NE_TD_CAL__A */ 453*9a0bf528SMauro Carvalho Chehab 454*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_NE_MIXAVG__A, 2), 455*9a0bf528SMauro Carvalho Chehab 0x06, 0x00, /* CE_REG_NE_MIXAVG__A */ 456*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_NE_NUPD_OFS__A */ 457*9a0bf528SMauro Carvalho Chehab 458*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_PE_NEXP_OFFS__A, 2), 459*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_PE_NEXP_OFFS__A */ 460*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_PE_TIMESHIFT__A */ 461*9a0bf528SMauro Carvalho Chehab 462*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_TP_A0_TAP_NEW__A, 3), 463*9a0bf528SMauro Carvalho Chehab 0x00, 0x01, /* CE_REG_TP_A0_TAP_NEW__A */ 464*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* CE_REG_TP_A0_TAP_NEW_VALID__A */ 465*9a0bf528SMauro Carvalho Chehab 0x0E, 0x00, /* CE_REG_TP_A0_MU_LMS_STEP__A */ 466*9a0bf528SMauro Carvalho Chehab 467*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_TP_A1_TAP_NEW__A, 3), 468*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_TP_A1_TAP_NEW__A */ 469*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* CE_REG_TP_A1_TAP_NEW_VALID__A */ 470*9a0bf528SMauro Carvalho Chehab 0x0A, 0x00, /* CE_REG_TP_A1_MU_LMS_STEP__A */ 471*9a0bf528SMauro Carvalho Chehab 472*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_FI_SHT_INCR__A, 2), 473*9a0bf528SMauro Carvalho Chehab 0x12, 0x00, /* CE_REG_FI_SHT_INCR__A */ 474*9a0bf528SMauro Carvalho Chehab 0x0C, 0x00, /* CE_REG_FI_EXP_NORM__A */ 475*9a0bf528SMauro Carvalho Chehab 476*9a0bf528SMauro Carvalho Chehab WRBLOCK(CE_REG_IR_INPUTSEL__A, 3), 477*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_IR_INPUTSEL__A */ 478*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* CE_REG_IR_STARTPOS__A */ 479*9a0bf528SMauro Carvalho Chehab 0xFF, 0x00, /* CE_REG_IR_NEXP_THRES__A */ 480*9a0bf528SMauro Carvalho Chehab 481*9a0bf528SMauro Carvalho Chehab WR16(CE_REG_TI_NEXP_OFFS__A, 0x0000), 482*9a0bf528SMauro Carvalho Chehab 483*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 484*9a0bf528SMauro Carvalho Chehab }; 485*9a0bf528SMauro Carvalho Chehab 486*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitCEB1[] = { 487*9a0bf528SMauro Carvalho Chehab WR16(B_CE_REG_TI_PHN_ENABLE__A, 0x0001), 488*9a0bf528SMauro Carvalho Chehab WR16(B_CE_REG_FR_PM_SET__A, 0x000D), 489*9a0bf528SMauro Carvalho Chehab 490*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 491*9a0bf528SMauro Carvalho Chehab }; 492*9a0bf528SMauro Carvalho Chehab 493*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitEQA2[] = { 494*9a0bf528SMauro Carvalho Chehab WRBLOCK(EQ_REG_OT_QNT_THRES0__A, 4), 495*9a0bf528SMauro Carvalho Chehab 0x1E, 0x00, /* EQ_REG_OT_QNT_THRES0__A */ 496*9a0bf528SMauro Carvalho Chehab 0x1F, 0x00, /* EQ_REG_OT_QNT_THRES1__A */ 497*9a0bf528SMauro Carvalho Chehab 0x06, 0x00, /* EQ_REG_OT_CSI_STEP__A */ 498*9a0bf528SMauro Carvalho Chehab 0x02, 0x00, /* EQ_REG_OT_CSI_OFFSET__A */ 499*9a0bf528SMauro Carvalho Chehab 500*9a0bf528SMauro Carvalho Chehab WR16(EQ_REG_TD_REQ_SMB_CNT__A, 0x0200), 501*9a0bf528SMauro Carvalho Chehab WR16(EQ_REG_IS_CLIP_EXP__A, 0x001F), 502*9a0bf528SMauro Carvalho Chehab WR16(EQ_REG_SN_OFFSET__A, (u16) (-7)), 503*9a0bf528SMauro Carvalho Chehab WR16(EQ_REG_RC_SEL_CAR__A, 0x0002), 504*9a0bf528SMauro Carvalho Chehab WR16(EQ_REG_COMM_EXEC__A, 0x0001), 505*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 506*9a0bf528SMauro Carvalho Chehab }; 507*9a0bf528SMauro Carvalho Chehab 508*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitEQB1[] = { 509*9a0bf528SMauro Carvalho Chehab WR16(B_EQ_REG_COMM_EXEC__A, 0x0001), 510*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 511*9a0bf528SMauro Carvalho Chehab }; 512*9a0bf528SMauro Carvalho Chehab 513*9a0bf528SMauro Carvalho Chehab u8 DRXD_ResetECRAM[] = { 514*9a0bf528SMauro Carvalho Chehab /* Reset packet sync bytes in EC_VD ram */ 515*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (0 * 17), 0x0000), 516*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (1 * 17), 0x0000), 517*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (2 * 17), 0x0000), 518*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (3 * 17), 0x0000), 519*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (4 * 17), 0x0000), 520*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (5 * 17), 0x0000), 521*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (6 * 17), 0x0000), 522*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (7 * 17), 0x0000), 523*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (8 * 17), 0x0000), 524*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (9 * 17), 0x0000), 525*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (10 * 17), 0x0000), 526*9a0bf528SMauro Carvalho Chehab 527*9a0bf528SMauro Carvalho Chehab /* Reset packet sync bytes in EC_RS ram */ 528*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_EC_RAM__A, 0x0000), 529*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_EC_RAM__A + 204, 0x0000), 530*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 531*9a0bf528SMauro Carvalho Chehab }; 532*9a0bf528SMauro Carvalho Chehab 533*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitECA2[] = { 534*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_SB_REG_CSI_HI__A, 6), 535*9a0bf528SMauro Carvalho Chehab 0x1F, 0x00, /* EC_SB_REG_CSI_HI__A */ 536*9a0bf528SMauro Carvalho Chehab 0x1E, 0x00, /* EC_SB_REG_CSI_LO__A */ 537*9a0bf528SMauro Carvalho Chehab 0x01, 0x00, /* EC_SB_REG_SMB_TGL__A */ 538*9a0bf528SMauro Carvalho Chehab 0x7F, 0x00, /* EC_SB_REG_SNR_HI__A */ 539*9a0bf528SMauro Carvalho Chehab 0x7F, 0x00, /* EC_SB_REG_SNR_MID__A */ 540*9a0bf528SMauro Carvalho Chehab 0x7F, 0x00, /* EC_SB_REG_SNR_LO__A */ 541*9a0bf528SMauro Carvalho Chehab 542*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_RS_REG_REQ_PCK_CNT__A, 2), 543*9a0bf528SMauro Carvalho Chehab 0x00, 0x10, /* EC_RS_REG_REQ_PCK_CNT__A */ 544*9a0bf528SMauro Carvalho Chehab DATA16(EC_RS_REG_VAL_PCK), /* EC_RS_REG_VAL__A */ 545*9a0bf528SMauro Carvalho Chehab 546*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_OC_REG_TMD_TOP_MODE__A, 5), 547*9a0bf528SMauro Carvalho Chehab 0x03, 0x00, /* EC_OC_REG_TMD_TOP_MODE__A */ 548*9a0bf528SMauro Carvalho Chehab 0xF4, 0x01, /* EC_OC_REG_TMD_TOP_CNT__A */ 549*9a0bf528SMauro Carvalho Chehab 0xC0, 0x03, /* EC_OC_REG_TMD_HIL_MAR__A */ 550*9a0bf528SMauro Carvalho Chehab 0x40, 0x00, /* EC_OC_REG_TMD_LOL_MAR__A */ 551*9a0bf528SMauro Carvalho Chehab 0x03, 0x00, /* EC_OC_REG_TMD_CUR_CNT__A */ 552*9a0bf528SMauro Carvalho Chehab 553*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_OC_REG_AVR_ASH_CNT__A, 2), 554*9a0bf528SMauro Carvalho Chehab 0x06, 0x00, /* EC_OC_REG_AVR_ASH_CNT__A */ 555*9a0bf528SMauro Carvalho Chehab 0x02, 0x00, /* EC_OC_REG_AVR_BSH_CNT__A */ 556*9a0bf528SMauro Carvalho Chehab 557*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_OC_REG_RCN_MODE__A, 7), 558*9a0bf528SMauro Carvalho Chehab 0x07, 0x00, /* EC_OC_REG_RCN_MODE__A */ 559*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* EC_OC_REG_RCN_CRA_LOP__A */ 560*9a0bf528SMauro Carvalho Chehab 0xc0, 0x00, /* EC_OC_REG_RCN_CRA_HIP__A */ 561*9a0bf528SMauro Carvalho Chehab 0x00, 0x10, /* EC_OC_REG_RCN_CST_LOP__A */ 562*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* EC_OC_REG_RCN_CST_HIP__A */ 563*9a0bf528SMauro Carvalho Chehab 0xFF, 0x01, /* EC_OC_REG_RCN_SET_LVL__A */ 564*9a0bf528SMauro Carvalho Chehab 0x0D, 0x00, /* EC_OC_REG_RCN_GAI_LVL__A */ 565*9a0bf528SMauro Carvalho Chehab 566*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_OC_REG_RCN_CLP_LOP__A, 2), 567*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* EC_OC_REG_RCN_CLP_LOP__A */ 568*9a0bf528SMauro Carvalho Chehab 0xC0, 0x00, /* EC_OC_REG_RCN_CLP_HIP__A */ 569*9a0bf528SMauro Carvalho Chehab 570*9a0bf528SMauro Carvalho Chehab WR16(EC_SB_REG_CSI_OFS__A, 0x0001), 571*9a0bf528SMauro Carvalho Chehab WR16(EC_VD_REG_FORCE__A, 0x0002), 572*9a0bf528SMauro Carvalho Chehab WR16(EC_VD_REG_REQ_SMB_CNT__A, 0x0001), 573*9a0bf528SMauro Carvalho Chehab WR16(EC_VD_REG_RLK_ENA__A, 0x0001), 574*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_REG_SYNC__A, 0x0664), 575*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_OC_MON_SIO__A, 0x0000), 576*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_SNC_ISC_LVL__A, 0x0D0C), 577*9a0bf528SMauro Carvalho Chehab /* Output zero on monitorbus pads, power saving */ 578*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_OCR_MON_UOS__A, 579*9a0bf528SMauro Carvalho Chehab (EC_OC_REG_OCR_MON_UOS_DAT_0_ENABLE | 580*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_1_ENABLE | 581*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_2_ENABLE | 582*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_3_ENABLE | 583*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_4_ENABLE | 584*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_5_ENABLE | 585*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_6_ENABLE | 586*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_7_ENABLE | 587*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_8_ENABLE | 588*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_9_ENABLE | 589*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_VAL_ENABLE | 590*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_CLK_ENABLE)), 591*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_OCR_MON_WRI__A, 592*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_WRI_INIT), 593*9a0bf528SMauro Carvalho Chehab 594*9a0bf528SMauro Carvalho Chehab /* CHK_ERROR(ResetECRAM(demod)); */ 595*9a0bf528SMauro Carvalho Chehab /* Reset packet sync bytes in EC_VD ram */ 596*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (0 * 17), 0x0000), 597*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (1 * 17), 0x0000), 598*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (2 * 17), 0x0000), 599*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (3 * 17), 0x0000), 600*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (4 * 17), 0x0000), 601*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (5 * 17), 0x0000), 602*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (6 * 17), 0x0000), 603*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (7 * 17), 0x0000), 604*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (8 * 17), 0x0000), 605*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (9 * 17), 0x0000), 606*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (10 * 17), 0x0000), 607*9a0bf528SMauro Carvalho Chehab 608*9a0bf528SMauro Carvalho Chehab /* Reset packet sync bytes in EC_RS ram */ 609*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_EC_RAM__A, 0x0000), 610*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_EC_RAM__A + 204, 0x0000), 611*9a0bf528SMauro Carvalho Chehab 612*9a0bf528SMauro Carvalho Chehab WR16(EC_SB_REG_COMM_EXEC__A, 0x0001), 613*9a0bf528SMauro Carvalho Chehab WR16(EC_VD_REG_COMM_EXEC__A, 0x0001), 614*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_REG_COMM_EXEC__A, 0x0001), 615*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_REG_COMM_EXEC__A, 0x0001), 616*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 617*9a0bf528SMauro Carvalho Chehab }; 618*9a0bf528SMauro Carvalho Chehab 619*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitECB1[] = { 620*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_CSI_OFS0__A, 0x0001), 621*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_CSI_OFS1__A, 0x0001), 622*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_CSI_OFS2__A, 0x0001), 623*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_CSI_LO__A, 0x000c), 624*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_CSI_HI__A, 0x0018), 625*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_SNR_HI__A, 0x007f), 626*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_SNR_MID__A, 0x007f), 627*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_SNR_LO__A, 0x007f), 628*9a0bf528SMauro Carvalho Chehab 629*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_DTO_CLKMODE__A, 0x0002), 630*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_DTO_PER__A, 0x0006), 631*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_DTO_BUR__A, 0x0001), 632*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_RCR_CLKMODE__A, 0x0000), 633*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_RCN_GAI_LVL__A, 0x000D), 634*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_OC_MPG_SIO__A, 0x0000), 635*9a0bf528SMauro Carvalho Chehab 636*9a0bf528SMauro Carvalho Chehab /* Needed because shadow registers do not have correct default value */ 637*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_RCN_CST_LOP__A, 0x1000), 638*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_RCN_CST_HIP__A, 0x0000), 639*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_RCN_CRA_LOP__A, 0x0000), 640*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_RCN_CRA_HIP__A, 0x00C0), 641*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_RCN_CLP_LOP__A, 0x0000), 642*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_RCN_CLP_HIP__A, 0x00C0), 643*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_DTO_INC_LOP__A, 0x0000), 644*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_DTO_INC_HIP__A, 0x00C0), 645*9a0bf528SMauro Carvalho Chehab 646*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OD_REG_SYNC__A, 0x0664), 647*9a0bf528SMauro Carvalho Chehab WR16(B_EC_RS_REG_REQ_PCK_CNT__A, 0x1000), 648*9a0bf528SMauro Carvalho Chehab 649*9a0bf528SMauro Carvalho Chehab /* CHK_ERROR(ResetECRAM(demod)); */ 650*9a0bf528SMauro Carvalho Chehab /* Reset packet sync bytes in EC_VD ram */ 651*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (0 * 17), 0x0000), 652*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (1 * 17), 0x0000), 653*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (2 * 17), 0x0000), 654*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (3 * 17), 0x0000), 655*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (4 * 17), 0x0000), 656*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (5 * 17), 0x0000), 657*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (6 * 17), 0x0000), 658*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (7 * 17), 0x0000), 659*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (8 * 17), 0x0000), 660*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (9 * 17), 0x0000), 661*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (10 * 17), 0x0000), 662*9a0bf528SMauro Carvalho Chehab 663*9a0bf528SMauro Carvalho Chehab /* Reset packet sync bytes in EC_RS ram */ 664*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_EC_RAM__A, 0x0000), 665*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_EC_RAM__A + 204, 0x0000), 666*9a0bf528SMauro Carvalho Chehab 667*9a0bf528SMauro Carvalho Chehab WR16(B_EC_SB_REG_COMM_EXEC__A, 0x0001), 668*9a0bf528SMauro Carvalho Chehab WR16(B_EC_VD_REG_COMM_EXEC__A, 0x0001), 669*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OD_REG_COMM_EXEC__A, 0x0001), 670*9a0bf528SMauro Carvalho Chehab WR16(B_EC_RS_REG_COMM_EXEC__A, 0x0001), 671*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 672*9a0bf528SMauro Carvalho Chehab }; 673*9a0bf528SMauro Carvalho Chehab 674*9a0bf528SMauro Carvalho Chehab u8 DRXD_ResetECA2[] = { 675*9a0bf528SMauro Carvalho Chehab 676*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_COMM_EXEC__A, 0x0000), 677*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_REG_COMM_EXEC__A, 0x0000), 678*9a0bf528SMauro Carvalho Chehab 679*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_OC_REG_TMD_TOP_MODE__A, 5), 680*9a0bf528SMauro Carvalho Chehab 0x03, 0x00, /* EC_OC_REG_TMD_TOP_MODE__A */ 681*9a0bf528SMauro Carvalho Chehab 0xF4, 0x01, /* EC_OC_REG_TMD_TOP_CNT__A */ 682*9a0bf528SMauro Carvalho Chehab 0xC0, 0x03, /* EC_OC_REG_TMD_HIL_MAR__A */ 683*9a0bf528SMauro Carvalho Chehab 0x40, 0x00, /* EC_OC_REG_TMD_LOL_MAR__A */ 684*9a0bf528SMauro Carvalho Chehab 0x03, 0x00, /* EC_OC_REG_TMD_CUR_CNT__A */ 685*9a0bf528SMauro Carvalho Chehab 686*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_OC_REG_AVR_ASH_CNT__A, 2), 687*9a0bf528SMauro Carvalho Chehab 0x06, 0x00, /* EC_OC_REG_AVR_ASH_CNT__A */ 688*9a0bf528SMauro Carvalho Chehab 0x02, 0x00, /* EC_OC_REG_AVR_BSH_CNT__A */ 689*9a0bf528SMauro Carvalho Chehab 690*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_OC_REG_RCN_MODE__A, 7), 691*9a0bf528SMauro Carvalho Chehab 0x07, 0x00, /* EC_OC_REG_RCN_MODE__A */ 692*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* EC_OC_REG_RCN_CRA_LOP__A */ 693*9a0bf528SMauro Carvalho Chehab 0xc0, 0x00, /* EC_OC_REG_RCN_CRA_HIP__A */ 694*9a0bf528SMauro Carvalho Chehab 0x00, 0x10, /* EC_OC_REG_RCN_CST_LOP__A */ 695*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* EC_OC_REG_RCN_CST_HIP__A */ 696*9a0bf528SMauro Carvalho Chehab 0xFF, 0x01, /* EC_OC_REG_RCN_SET_LVL__A */ 697*9a0bf528SMauro Carvalho Chehab 0x0D, 0x00, /* EC_OC_REG_RCN_GAI_LVL__A */ 698*9a0bf528SMauro Carvalho Chehab 699*9a0bf528SMauro Carvalho Chehab WRBLOCK(EC_OC_REG_RCN_CLP_LOP__A, 2), 700*9a0bf528SMauro Carvalho Chehab 0x00, 0x00, /* EC_OC_REG_RCN_CLP_LOP__A */ 701*9a0bf528SMauro Carvalho Chehab 0xC0, 0x00, /* EC_OC_REG_RCN_CLP_HIP__A */ 702*9a0bf528SMauro Carvalho Chehab 703*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_REG_SYNC__A, 0x0664), 704*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_OC_MON_SIO__A, 0x0000), 705*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_SNC_ISC_LVL__A, 0x0D0C), 706*9a0bf528SMauro Carvalho Chehab /* Output zero on monitorbus pads, power saving */ 707*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_OCR_MON_UOS__A, 708*9a0bf528SMauro Carvalho Chehab (EC_OC_REG_OCR_MON_UOS_DAT_0_ENABLE | 709*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_1_ENABLE | 710*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_2_ENABLE | 711*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_3_ENABLE | 712*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_4_ENABLE | 713*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_5_ENABLE | 714*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_6_ENABLE | 715*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_7_ENABLE | 716*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_8_ENABLE | 717*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_DAT_9_ENABLE | 718*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_VAL_ENABLE | 719*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_UOS_CLK_ENABLE)), 720*9a0bf528SMauro Carvalho Chehab WR16(EC_OC_REG_OCR_MON_WRI__A, 721*9a0bf528SMauro Carvalho Chehab EC_OC_REG_OCR_MON_WRI_INIT), 722*9a0bf528SMauro Carvalho Chehab 723*9a0bf528SMauro Carvalho Chehab /* CHK_ERROR(ResetECRAM(demod)); */ 724*9a0bf528SMauro Carvalho Chehab /* Reset packet sync bytes in EC_VD ram */ 725*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (0 * 17), 0x0000), 726*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (1 * 17), 0x0000), 727*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (2 * 17), 0x0000), 728*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (3 * 17), 0x0000), 729*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (4 * 17), 0x0000), 730*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (5 * 17), 0x0000), 731*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (6 * 17), 0x0000), 732*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (7 * 17), 0x0000), 733*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (8 * 17), 0x0000), 734*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (9 * 17), 0x0000), 735*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (10 * 17), 0x0000), 736*9a0bf528SMauro Carvalho Chehab 737*9a0bf528SMauro Carvalho Chehab /* Reset packet sync bytes in EC_RS ram */ 738*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_EC_RAM__A, 0x0000), 739*9a0bf528SMauro Carvalho Chehab WR16(EC_RS_EC_RAM__A + 204, 0x0000), 740*9a0bf528SMauro Carvalho Chehab 741*9a0bf528SMauro Carvalho Chehab WR16(EC_OD_REG_COMM_EXEC__A, 0x0001), 742*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 743*9a0bf528SMauro Carvalho Chehab }; 744*9a0bf528SMauro Carvalho Chehab 745*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitSC[] = { 746*9a0bf528SMauro Carvalho Chehab WR16(SC_COMM_EXEC__A, 0), 747*9a0bf528SMauro Carvalho Chehab WR16(SC_COMM_STATE__A, 0), 748*9a0bf528SMauro Carvalho Chehab 749*9a0bf528SMauro Carvalho Chehab #ifdef COMPILE_FOR_QT 750*9a0bf528SMauro Carvalho Chehab WR16(SC_RA_RAM_BE_OPT_DELAY__A, 0x100), 751*9a0bf528SMauro Carvalho Chehab #endif 752*9a0bf528SMauro Carvalho Chehab 753*9a0bf528SMauro Carvalho Chehab /* SC is not started, this is done in SetChannels() */ 754*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 755*9a0bf528SMauro Carvalho Chehab }; 756*9a0bf528SMauro Carvalho Chehab 757*9a0bf528SMauro Carvalho Chehab /* Diversity settings */ 758*9a0bf528SMauro Carvalho Chehab 759*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitDiversityFront[] = { 760*9a0bf528SMauro Carvalho Chehab /* Start demod ********* RF in , diversity out **************************** */ 761*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_CONFIG__A, B_SC_RA_RAM_CONFIG_FR_ENABLE__M | 762*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_CONFIG_FREQSCAN__M), 763*9a0bf528SMauro Carvalho Chehab 764*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_LC_ABS_2K__A, 0x7), 765*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_LC_ABS_8K__A, 0x7), 766*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_LENGTH__A, IRLEN_COARSE_8K), 767*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_FREQINC__A, 1 << (11 - IRLEN_COARSE_8K)), 768*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_KAISINC__A, 1 << (17 - IRLEN_COARSE_8K)), 769*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_LENGTH__A, IRLEN_FINE_8K), 770*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_FREQINC__A, 1 << (11 - IRLEN_FINE_8K)), 771*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_KAISINC__A, 1 << (17 - IRLEN_FINE_8K)), 772*9a0bf528SMauro Carvalho Chehab 773*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_LENGTH__A, IRLEN_COARSE_2K), 774*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_FREQINC__A, 1 << (11 - IRLEN_COARSE_2K)), 775*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_KAISINC__A, 1 << (17 - IRLEN_COARSE_2K)), 776*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_LENGTH__A, IRLEN_FINE_2K), 777*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_FREQINC__A, 1 << (11 - IRLEN_FINE_2K)), 778*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_KAISINC__A, 1 << (17 - IRLEN_FINE_2K)), 779*9a0bf528SMauro Carvalho Chehab 780*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_CRMM_A__A, 7), 781*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_CRMM_B__A, 4), 782*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SRMM_A__A, 7), 783*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SRMM_B__A, 4), 784*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SYM_SET__A, 500), 785*9a0bf528SMauro Carvalho Chehab 786*9a0bf528SMauro Carvalho Chehab WR16(B_CC_REG_DIVERSITY__A, 0x0001), 787*9a0bf528SMauro Carvalho Chehab WR16(B_EC_OC_REG_OC_MODE_HIP__A, 0x0010), 788*9a0bf528SMauro Carvalho Chehab WR16(B_EQ_REG_RC_SEL_CAR__A, B_EQ_REG_RC_SEL_CAR_PASS_B_CE | 789*9a0bf528SMauro Carvalho Chehab B_EQ_REG_RC_SEL_CAR_LOCAL_B_CE | B_EQ_REG_RC_SEL_CAR_MEAS_B_CE), 790*9a0bf528SMauro Carvalho Chehab 791*9a0bf528SMauro Carvalho Chehab /* 0x2a ), *//* CE to PASS mux */ 792*9a0bf528SMauro Carvalho Chehab 793*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 794*9a0bf528SMauro Carvalho Chehab }; 795*9a0bf528SMauro Carvalho Chehab 796*9a0bf528SMauro Carvalho Chehab u8 DRXD_InitDiversityEnd[] = { 797*9a0bf528SMauro Carvalho Chehab /* End demod *********** combining RF in and diversity in, MPEG TS out **** */ 798*9a0bf528SMauro Carvalho Chehab /* disable near/far; switch on timing slave mode */ 799*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_CONFIG__A, B_SC_RA_RAM_CONFIG_FR_ENABLE__M | 800*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_CONFIG_FREQSCAN__M | 801*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_CONFIG_DIV_ECHO_ENABLE__M | 802*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_CONFIG_SLAVE__M | 803*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_CONFIG_DIV_BLANK_ENABLE__M 804*9a0bf528SMauro Carvalho Chehab /* MV from CtrlDiversity */ 805*9a0bf528SMauro Carvalho Chehab ), 806*9a0bf528SMauro Carvalho Chehab #ifdef DRXDDIV_SRMM_SLAVING 807*9a0bf528SMauro Carvalho Chehab WR16(SC_RA_RAM_LC_ABS_2K__A, 0x3c7), 808*9a0bf528SMauro Carvalho Chehab WR16(SC_RA_RAM_LC_ABS_8K__A, 0x3c7), 809*9a0bf528SMauro Carvalho Chehab #else 810*9a0bf528SMauro Carvalho Chehab WR16(SC_RA_RAM_LC_ABS_2K__A, 0x7), 811*9a0bf528SMauro Carvalho Chehab WR16(SC_RA_RAM_LC_ABS_8K__A, 0x7), 812*9a0bf528SMauro Carvalho Chehab #endif 813*9a0bf528SMauro Carvalho Chehab 814*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_LENGTH__A, IRLEN_COARSE_8K), 815*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_FREQINC__A, 1 << (11 - IRLEN_COARSE_8K)), 816*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_KAISINC__A, 1 << (17 - IRLEN_COARSE_8K)), 817*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_LENGTH__A, IRLEN_FINE_8K), 818*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_FREQINC__A, 1 << (11 - IRLEN_FINE_8K)), 819*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_KAISINC__A, 1 << (17 - IRLEN_FINE_8K)), 820*9a0bf528SMauro Carvalho Chehab 821*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_LENGTH__A, IRLEN_COARSE_2K), 822*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_FREQINC__A, 1 << (11 - IRLEN_COARSE_2K)), 823*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_KAISINC__A, 1 << (17 - IRLEN_COARSE_2K)), 824*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_LENGTH__A, IRLEN_FINE_2K), 825*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_FREQINC__A, 1 << (11 - IRLEN_FINE_2K)), 826*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_KAISINC__A, 1 << (17 - IRLEN_FINE_2K)), 827*9a0bf528SMauro Carvalho Chehab 828*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_CRMM_A__A, 7), 829*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_CRMM_B__A, 4), 830*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SRMM_A__A, 7), 831*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SRMM_B__A, 4), 832*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SYM_SET__A, 500), 833*9a0bf528SMauro Carvalho Chehab 834*9a0bf528SMauro Carvalho Chehab WR16(B_CC_REG_DIVERSITY__A, 0x0001), 835*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 836*9a0bf528SMauro Carvalho Chehab }; 837*9a0bf528SMauro Carvalho Chehab 838*9a0bf528SMauro Carvalho Chehab u8 DRXD_DisableDiversity[] = { 839*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_LC_ABS_2K__A, B_SC_RA_RAM_LC_ABS_2K__PRE), 840*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_LC_ABS_8K__A, B_SC_RA_RAM_LC_ABS_8K__PRE), 841*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_LENGTH__A, 842*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_COARSE_8K_LENGTH__PRE), 843*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_FREQINC__A, 844*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_COARSE_8K_FREQINC__PRE), 845*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_8K_KAISINC__A, 846*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_COARSE_8K_KAISINC__PRE), 847*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_LENGTH__A, 848*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_FINE_8K_LENGTH__PRE), 849*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_FREQINC__A, 850*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_FINE_8K_FREQINC__PRE), 851*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_8K_KAISINC__A, 852*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_FINE_8K_KAISINC__PRE), 853*9a0bf528SMauro Carvalho Chehab 854*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_LENGTH__A, 855*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_COARSE_2K_LENGTH__PRE), 856*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_FREQINC__A, 857*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_COARSE_2K_FREQINC__PRE), 858*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_COARSE_2K_KAISINC__A, 859*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_COARSE_2K_KAISINC__PRE), 860*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_LENGTH__A, 861*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_FINE_2K_LENGTH__PRE), 862*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_FREQINC__A, 863*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_FINE_2K_FREQINC__PRE), 864*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_IR_FINE_2K_KAISINC__A, 865*9a0bf528SMauro Carvalho Chehab B_SC_RA_RAM_IR_FINE_2K_KAISINC__PRE), 866*9a0bf528SMauro Carvalho Chehab 867*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_CRMM_A__A, B_LC_RA_RAM_FILTER_CRMM_A__PRE), 868*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_CRMM_B__A, B_LC_RA_RAM_FILTER_CRMM_B__PRE), 869*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SRMM_A__A, B_LC_RA_RAM_FILTER_SRMM_A__PRE), 870*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SRMM_B__A, B_LC_RA_RAM_FILTER_SRMM_B__PRE), 871*9a0bf528SMauro Carvalho Chehab WR16(B_LC_RA_RAM_FILTER_SYM_SET__A, B_LC_RA_RAM_FILTER_SYM_SET__PRE), 872*9a0bf528SMauro Carvalho Chehab 873*9a0bf528SMauro Carvalho Chehab WR16(B_CC_REG_DIVERSITY__A, 0x0000), 874*9a0bf528SMauro Carvalho Chehab WR16(B_EQ_REG_RC_SEL_CAR__A, B_EQ_REG_RC_SEL_CAR_INIT), /* combining disabled */ 875*9a0bf528SMauro Carvalho Chehab 876*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 877*9a0bf528SMauro Carvalho Chehab }; 878*9a0bf528SMauro Carvalho Chehab 879*9a0bf528SMauro Carvalho Chehab u8 DRXD_StartDiversityFront[] = { 880*9a0bf528SMauro Carvalho Chehab /* Start demod, RF in and diversity out, no combining */ 881*9a0bf528SMauro Carvalho Chehab WR16(B_FE_CF_REG_IMP_VAL__A, 0x0), 882*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AD_REG_FDB_IN__A, 0x0), 883*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AD_REG_INVEXT__A, 0x0), 884*9a0bf528SMauro Carvalho Chehab WR16(B_EQ_REG_COMM_MB__A, 0x12), /* EQ to MB out */ 885*9a0bf528SMauro Carvalho Chehab WR16(B_EQ_REG_RC_SEL_CAR__A, B_EQ_REG_RC_SEL_CAR_PASS_B_CE | /* CE to PASS mux */ 886*9a0bf528SMauro Carvalho Chehab B_EQ_REG_RC_SEL_CAR_LOCAL_B_CE | B_EQ_REG_RC_SEL_CAR_MEAS_B_CE), 887*9a0bf528SMauro Carvalho Chehab 888*9a0bf528SMauro Carvalho Chehab WR16(SC_RA_RAM_ECHO_SHIFT_LIM__A, 2), 889*9a0bf528SMauro Carvalho Chehab 890*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 891*9a0bf528SMauro Carvalho Chehab }; 892*9a0bf528SMauro Carvalho Chehab 893*9a0bf528SMauro Carvalho Chehab u8 DRXD_StartDiversityEnd[] = { 894*9a0bf528SMauro Carvalho Chehab /* End demod, combining RF in and diversity in, MPEG TS out */ 895*9a0bf528SMauro Carvalho Chehab WR16(B_FE_CF_REG_IMP_VAL__A, 0x0), /* disable impulse noise cruncher */ 896*9a0bf528SMauro Carvalho Chehab WR16(B_FE_AD_REG_INVEXT__A, 0x0), /* clock inversion (for sohard board) */ 897*9a0bf528SMauro Carvalho Chehab WR16(B_CP_REG_BR_STR_DEL__A, 10), /* apperently no mb delay matching is best */ 898*9a0bf528SMauro Carvalho Chehab 899*9a0bf528SMauro Carvalho Chehab WR16(B_EQ_REG_RC_SEL_CAR__A, B_EQ_REG_RC_SEL_CAR_DIV_ON | /* org = 0x81 combining enabled */ 900*9a0bf528SMauro Carvalho Chehab B_EQ_REG_RC_SEL_CAR_MEAS_A_CC | 901*9a0bf528SMauro Carvalho Chehab B_EQ_REG_RC_SEL_CAR_PASS_A_CC | B_EQ_REG_RC_SEL_CAR_LOCAL_A_CC), 902*9a0bf528SMauro Carvalho Chehab 903*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 904*9a0bf528SMauro Carvalho Chehab }; 905*9a0bf528SMauro Carvalho Chehab 906*9a0bf528SMauro Carvalho Chehab u8 DRXD_DiversityDelay8MHZ[] = { 907*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_32__A, 1150 - 50), 908*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_16__A, 1100 - 50), 909*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_8__A, 1000 - 50), 910*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_4__A, 800 - 50), 911*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_32__A, 5420 - 50), 912*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_16__A, 5200 - 50), 913*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_8__A, 4800 - 50), 914*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_4__A, 4000 - 50), 915*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 916*9a0bf528SMauro Carvalho Chehab }; 917*9a0bf528SMauro Carvalho Chehab 918*9a0bf528SMauro Carvalho Chehab u8 DRXD_DiversityDelay6MHZ[] = /* also used ok for 7 MHz */ 919*9a0bf528SMauro Carvalho Chehab { 920*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_32__A, 1100 - 50), 921*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_16__A, 1000 - 50), 922*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_8__A, 900 - 50), 923*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_4__A, 600 - 50), 924*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_32__A, 5300 - 50), 925*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_16__A, 5000 - 50), 926*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_8__A, 4500 - 50), 927*9a0bf528SMauro Carvalho Chehab WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_4__A, 3500 - 50), 928*9a0bf528SMauro Carvalho Chehab END_OF_TABLE 929*9a0bf528SMauro Carvalho Chehab }; 930