18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * drxd_firm.c : DRXD firmware tables
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2006-2007 Micronas
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/* TODO: generate this file with a script from a settings file */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci/* Contains A2 firmware version: 1.4.2
118c2ecf20Sopenharmony_ci * Contains B1 firmware version: 3.3.33
128c2ecf20Sopenharmony_ci * Contains settings from driver 1.4.23
138c2ecf20Sopenharmony_ci*/
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#include "drxd_firm.h"
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define ADDRESS(x)     ((x) & 0xFF), (((x)>>8) & 0xFF), (((x)>>16) & 0xFF), (((x)>>24) & 0xFF)
188c2ecf20Sopenharmony_ci#define LENGTH(x)      ((x) & 0xFF), (((x)>>8) & 0xFF)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci/* Is written via block write, must be little endian */
218c2ecf20Sopenharmony_ci#define DATA16(x)      ((x) & 0xFF), (((x)>>8) & 0xFF)
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#define WRBLOCK(a, l) ADDRESS(a), LENGTH(l)
248c2ecf20Sopenharmony_ci#define WR16(a, d) ADDRESS(a), LENGTH(1), DATA16(d)
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#define END_OF_TABLE      0xFF, 0xFF, 0xFF, 0xFF
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci/* HI firmware patches */
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci#define HI_TR_FUNC_ADDR HI_IF_RAM_USR_BEGIN__A
318c2ecf20Sopenharmony_ci#define HI_TR_FUNC_SIZE 9	/* size of this function in instruction words */
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciu8 DRXD_InitAtomicRead[] = {
348c2ecf20Sopenharmony_ci	WRBLOCK(HI_TR_FUNC_ADDR, HI_TR_FUNC_SIZE),
358c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;           */
368c2ecf20Sopenharmony_ci	0x60, 0x04,		/* r0rami.dt -> ring.xba;           */
378c2ecf20Sopenharmony_ci	0x61, 0x04,		/* r0rami.dt -> ring.xad;           */
388c2ecf20Sopenharmony_ci	0xE3, 0x07,		/* HI_RA_RAM_USR_BEGIN -> ring.iad; */
398c2ecf20Sopenharmony_ci	0x40, 0x00,		/* (long immediate)                 */
408c2ecf20Sopenharmony_ci	0x64, 0x04,		/* r0rami.dt -> ring.len;           */
418c2ecf20Sopenharmony_ci	0x65, 0x04,		/* r0rami.dt -> ring.ctl;           */
428c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;           */
438c2ecf20Sopenharmony_ci	0x38, 0x00,		/* 0         -> jumps.ad;           */
448c2ecf20Sopenharmony_ci	END_OF_TABLE
458c2ecf20Sopenharmony_ci};
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci/* Pins D0 and D1 of the parallel MPEG output can be used
488c2ecf20Sopenharmony_ci   to set the I2C address of a device. */
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci#define HI_RST_FUNC_ADDR (HI_IF_RAM_USR_BEGIN__A + HI_TR_FUNC_SIZE)
518c2ecf20Sopenharmony_ci#define HI_RST_FUNC_SIZE 54	/* size of this function in instruction words */
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci/* D0 Version */
548c2ecf20Sopenharmony_ciu8 DRXD_HiI2cPatch_1[] = {
558c2ecf20Sopenharmony_ci	WRBLOCK(HI_RST_FUNC_ADDR, HI_RST_FUNC_SIZE),
568c2ecf20Sopenharmony_ci	0xC8, 0x07, 0x01, 0x00,	/* MASK      -> reg0.dt;                        */
578c2ecf20Sopenharmony_ci	0xE0, 0x07, 0x15, 0x02,	/* (EC__BLK << 6) + EC_OC_REG__BNK -> ring.xba; */
588c2ecf20Sopenharmony_ci	0xE1, 0x07, 0x12, 0x00,	/* EC_OC_REG_OC_MPG_SIO__A -> ring.xad;         */
598c2ecf20Sopenharmony_ci	0xA2, 0x00,		/* M_BNK_ID_DAT -> ring.iba;                    */
608c2ecf20Sopenharmony_ci	0x23, 0x00,		/* &data     -> ring.iad;                       */
618c2ecf20Sopenharmony_ci	0x24, 0x00,		/* 0         -> ring.len;                       */
628c2ecf20Sopenharmony_ci	0xA5, 0x02,		/* M_RC_CTR_SWAP | M_RC_CTR_READ -> ring.ctl;   */
638c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;                       */
648c2ecf20Sopenharmony_ci	0x42, 0x00,		/* &data+1   -> w0ram.ad;                       */
658c2ecf20Sopenharmony_ci	0xC0, 0x07, 0xFF, 0x0F,	/* -1        -> w0ram.dt;                       */
668c2ecf20Sopenharmony_ci	0x63, 0x00,		/* &data+1   -> ring.iad;                       */
678c2ecf20Sopenharmony_ci	0x65, 0x02,		/* M_RC_CTR_SWAP | M_RC_CTR_WRITE -> ring.ctl;  */
688c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;                       */
698c2ecf20Sopenharmony_ci	0xE1, 0x07, 0x38, 0x00,	/* EC_OC_REG_OCR_MPG_USR_DAT__A -> ring.xad;    */
708c2ecf20Sopenharmony_ci	0xA5, 0x02,		/* M_RC_CTR_SWAP | M_RC_CTR_READ -> ring.ctl;   */
718c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;                       */
728c2ecf20Sopenharmony_ci	0xE1, 0x07, 0x12, 0x00,	/* EC_OC_REG_OC_MPG_SIO__A -> ring.xad;         */
738c2ecf20Sopenharmony_ci	0x23, 0x00,		/* &data     -> ring.iad;                       */
748c2ecf20Sopenharmony_ci	0x65, 0x02,		/* M_RC_CTR_SWAP | M_RC_CTR_WRITE -> ring.ctl;  */
758c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;                       */
768c2ecf20Sopenharmony_ci	0x42, 0x00,		/* &data+1   -> w0ram.ad;                       */
778c2ecf20Sopenharmony_ci	0x0F, 0x04,		/* r0ram.dt  -> and.op;                         */
788c2ecf20Sopenharmony_ci	0x1C, 0x06,		/* reg0.dt   -> and.tr;                         */
798c2ecf20Sopenharmony_ci	0xCF, 0x04,		/* and.rs    -> add.op;                         */
808c2ecf20Sopenharmony_ci	0xD0, 0x07, 0x70, 0x00,	/* DEF_DEV_ID -> add.tr;                        */
818c2ecf20Sopenharmony_ci	0xD0, 0x04,		/* add.rs    -> add.tr;                         */
828c2ecf20Sopenharmony_ci	0xC8, 0x04,		/* add.rs    -> reg0.dt;                        */
838c2ecf20Sopenharmony_ci	0x60, 0x00,		/* reg0.dt   -> w0ram.dt;                       */
848c2ecf20Sopenharmony_ci	0xC2, 0x07, 0x10, 0x00,	/* SLV0_BASE -> w0rami.ad;                      */
858c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
868c2ecf20Sopenharmony_ci	0x01, 0x06,		/* reg0.dt   -> w0rami.dt;                      */
878c2ecf20Sopenharmony_ci	0xC2, 0x07, 0x20, 0x00,	/* SLV1_BASE -> w0rami.ad;                      */
888c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
898c2ecf20Sopenharmony_ci	0x01, 0x06,		/* reg0.dt   -> w0rami.dt;                      */
908c2ecf20Sopenharmony_ci	0xC2, 0x07, 0x30, 0x00,	/* CMD_BASE  -> w0rami.ad;                      */
918c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
928c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
938c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
948c2ecf20Sopenharmony_ci	0x68, 0x00,		/* M_IC_SEL_PT1 -> i2c.sel;                     */
958c2ecf20Sopenharmony_ci	0x29, 0x00,		/* M_IC_CMD_RESET -> i2c.cmd;                   */
968c2ecf20Sopenharmony_ci	0x28, 0x00,		/* M_IC_SEL_PT0 -> i2c.sel;                     */
978c2ecf20Sopenharmony_ci	0x29, 0x00,		/* M_IC_CMD_RESET -> i2c.cmd;                   */
988c2ecf20Sopenharmony_ci	0xF8, 0x07, 0x2F, 0x00,	/* 0x2F      -> jumps.ad;                       */
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci	WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 0) + 1)),
1018c2ecf20Sopenharmony_ci	     (u16) (HI_RST_FUNC_ADDR & 0x3FF)),
1028c2ecf20Sopenharmony_ci	WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 1) + 1)),
1038c2ecf20Sopenharmony_ci	     (u16) (HI_RST_FUNC_ADDR & 0x3FF)),
1048c2ecf20Sopenharmony_ci	WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 2) + 1)),
1058c2ecf20Sopenharmony_ci	     (u16) (HI_RST_FUNC_ADDR & 0x3FF)),
1068c2ecf20Sopenharmony_ci	WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 3) + 1)),
1078c2ecf20Sopenharmony_ci	     (u16) (HI_RST_FUNC_ADDR & 0x3FF)),
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci	/* Force quick and dirty reset */
1108c2ecf20Sopenharmony_ci	WR16(B_HI_CT_REG_COMM_STATE__A, 0),
1118c2ecf20Sopenharmony_ci	END_OF_TABLE
1128c2ecf20Sopenharmony_ci};
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci/* D0,D1 Version */
1158c2ecf20Sopenharmony_ciu8 DRXD_HiI2cPatch_3[] = {
1168c2ecf20Sopenharmony_ci	WRBLOCK(HI_RST_FUNC_ADDR, HI_RST_FUNC_SIZE),
1178c2ecf20Sopenharmony_ci	0xC8, 0x07, 0x03, 0x00,	/* MASK      -> reg0.dt;                        */
1188c2ecf20Sopenharmony_ci	0xE0, 0x07, 0x15, 0x02,	/* (EC__BLK << 6) + EC_OC_REG__BNK -> ring.xba; */
1198c2ecf20Sopenharmony_ci	0xE1, 0x07, 0x12, 0x00,	/* EC_OC_REG_OC_MPG_SIO__A -> ring.xad;         */
1208c2ecf20Sopenharmony_ci	0xA2, 0x00,		/* M_BNK_ID_DAT -> ring.iba;                    */
1218c2ecf20Sopenharmony_ci	0x23, 0x00,		/* &data     -> ring.iad;                       */
1228c2ecf20Sopenharmony_ci	0x24, 0x00,		/* 0         -> ring.len;                       */
1238c2ecf20Sopenharmony_ci	0xA5, 0x02,		/* M_RC_CTR_SWAP | M_RC_CTR_READ -> ring.ctl;   */
1248c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;                       */
1258c2ecf20Sopenharmony_ci	0x42, 0x00,		/* &data+1   -> w0ram.ad;                       */
1268c2ecf20Sopenharmony_ci	0xC0, 0x07, 0xFF, 0x0F,	/* -1        -> w0ram.dt;                       */
1278c2ecf20Sopenharmony_ci	0x63, 0x00,		/* &data+1   -> ring.iad;                       */
1288c2ecf20Sopenharmony_ci	0x65, 0x02,		/* M_RC_CTR_SWAP | M_RC_CTR_WRITE -> ring.ctl;  */
1298c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;                       */
1308c2ecf20Sopenharmony_ci	0xE1, 0x07, 0x38, 0x00,	/* EC_OC_REG_OCR_MPG_USR_DAT__A -> ring.xad;    */
1318c2ecf20Sopenharmony_ci	0xA5, 0x02,		/* M_RC_CTR_SWAP | M_RC_CTR_READ -> ring.ctl;   */
1328c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;                       */
1338c2ecf20Sopenharmony_ci	0xE1, 0x07, 0x12, 0x00,	/* EC_OC_REG_OC_MPG_SIO__A -> ring.xad;         */
1348c2ecf20Sopenharmony_ci	0x23, 0x00,		/* &data     -> ring.iad;                       */
1358c2ecf20Sopenharmony_ci	0x65, 0x02,		/* M_RC_CTR_SWAP | M_RC_CTR_WRITE -> ring.ctl;  */
1368c2ecf20Sopenharmony_ci	0x26, 0x00,		/* 0         -> ring.rdy;                       */
1378c2ecf20Sopenharmony_ci	0x42, 0x00,		/* &data+1   -> w0ram.ad;                       */
1388c2ecf20Sopenharmony_ci	0x0F, 0x04,		/* r0ram.dt  -> and.op;                         */
1398c2ecf20Sopenharmony_ci	0x1C, 0x06,		/* reg0.dt   -> and.tr;                         */
1408c2ecf20Sopenharmony_ci	0xCF, 0x04,		/* and.rs    -> add.op;                         */
1418c2ecf20Sopenharmony_ci	0xD0, 0x07, 0x70, 0x00,	/* DEF_DEV_ID -> add.tr;                        */
1428c2ecf20Sopenharmony_ci	0xD0, 0x04,		/* add.rs    -> add.tr;                         */
1438c2ecf20Sopenharmony_ci	0xC8, 0x04,		/* add.rs    -> reg0.dt;                        */
1448c2ecf20Sopenharmony_ci	0x60, 0x00,		/* reg0.dt   -> w0ram.dt;                       */
1458c2ecf20Sopenharmony_ci	0xC2, 0x07, 0x10, 0x00,	/* SLV0_BASE -> w0rami.ad;                      */
1468c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
1478c2ecf20Sopenharmony_ci	0x01, 0x06,		/* reg0.dt   -> w0rami.dt;                      */
1488c2ecf20Sopenharmony_ci	0xC2, 0x07, 0x20, 0x00,	/* SLV1_BASE -> w0rami.ad;                      */
1498c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
1508c2ecf20Sopenharmony_ci	0x01, 0x06,		/* reg0.dt   -> w0rami.dt;                      */
1518c2ecf20Sopenharmony_ci	0xC2, 0x07, 0x30, 0x00,	/* CMD_BASE  -> w0rami.ad;                      */
1528c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
1538c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
1548c2ecf20Sopenharmony_ci	0x01, 0x00,		/* 0         -> w0rami.dt;                      */
1558c2ecf20Sopenharmony_ci	0x68, 0x00,		/* M_IC_SEL_PT1 -> i2c.sel;                     */
1568c2ecf20Sopenharmony_ci	0x29, 0x00,		/* M_IC_CMD_RESET -> i2c.cmd;                   */
1578c2ecf20Sopenharmony_ci	0x28, 0x00,		/* M_IC_SEL_PT0 -> i2c.sel;                     */
1588c2ecf20Sopenharmony_ci	0x29, 0x00,		/* M_IC_CMD_RESET -> i2c.cmd;                   */
1598c2ecf20Sopenharmony_ci	0xF8, 0x07, 0x2F, 0x00,	/* 0x2F      -> jumps.ad;                       */
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ci	WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 0) + 1)),
1628c2ecf20Sopenharmony_ci	     (u16) (HI_RST_FUNC_ADDR & 0x3FF)),
1638c2ecf20Sopenharmony_ci	WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 1) + 1)),
1648c2ecf20Sopenharmony_ci	     (u16) (HI_RST_FUNC_ADDR & 0x3FF)),
1658c2ecf20Sopenharmony_ci	WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 2) + 1)),
1668c2ecf20Sopenharmony_ci	     (u16) (HI_RST_FUNC_ADDR & 0x3FF)),
1678c2ecf20Sopenharmony_ci	WR16((B_HI_IF_RAM_TRP_BPT0__AX + ((2 * 3) + 1)),
1688c2ecf20Sopenharmony_ci	     (u16) (HI_RST_FUNC_ADDR & 0x3FF)),
1698c2ecf20Sopenharmony_ci
1708c2ecf20Sopenharmony_ci	/* Force quick and dirty reset */
1718c2ecf20Sopenharmony_ci	WR16(B_HI_CT_REG_COMM_STATE__A, 0),
1728c2ecf20Sopenharmony_ci	END_OF_TABLE
1738c2ecf20Sopenharmony_ci};
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_ciu8 DRXD_ResetCEFR[] = {
1768c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_FR_TREAL00__A, 57),
1778c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL00__A */
1788c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG00__A */
1798c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL01__A */
1808c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG01__A */
1818c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL02__A */
1828c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG02__A */
1838c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL03__A */
1848c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG03__A */
1858c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL04__A */
1868c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG04__A */
1878c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL05__A */
1888c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG05__A */
1898c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL06__A */
1908c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG06__A */
1918c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL07__A */
1928c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG07__A */
1938c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL08__A */
1948c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG08__A */
1958c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL09__A */
1968c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG09__A */
1978c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL10__A */
1988c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG10__A */
1998c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_TREAL11__A */
2008c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_TIMAG11__A */
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci	0x52, 0x00,		/* CE_REG_FR_MID_TAP__A */
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G00__A */
2058c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G01__A */
2068c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G02__A */
2078c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G03__A */
2088c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G04__A */
2098c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G05__A */
2108c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G06__A */
2118c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G07__A */
2128c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G08__A */
2138c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G09__A */
2148c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G10__A */
2158c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G11__A */
2168c2ecf20Sopenharmony_ci	0x0B, 0x00,		/* CE_REG_FR_SQS_G12__A */
2178c2ecf20Sopenharmony_ci
2188c2ecf20Sopenharmony_ci	0xFF, 0x01,		/* CE_REG_FR_RIO_G00__A */
2198c2ecf20Sopenharmony_ci	0x90, 0x01,		/* CE_REG_FR_RIO_G01__A */
2208c2ecf20Sopenharmony_ci	0x0B, 0x01,		/* CE_REG_FR_RIO_G02__A */
2218c2ecf20Sopenharmony_ci	0xC8, 0x00,		/* CE_REG_FR_RIO_G03__A */
2228c2ecf20Sopenharmony_ci	0xA0, 0x00,		/* CE_REG_FR_RIO_G04__A */
2238c2ecf20Sopenharmony_ci	0x85, 0x00,		/* CE_REG_FR_RIO_G05__A */
2248c2ecf20Sopenharmony_ci	0x72, 0x00,		/* CE_REG_FR_RIO_G06__A */
2258c2ecf20Sopenharmony_ci	0x64, 0x00,		/* CE_REG_FR_RIO_G07__A */
2268c2ecf20Sopenharmony_ci	0x59, 0x00,		/* CE_REG_FR_RIO_G08__A */
2278c2ecf20Sopenharmony_ci	0x50, 0x00,		/* CE_REG_FR_RIO_G09__A */
2288c2ecf20Sopenharmony_ci	0x49, 0x00,		/* CE_REG_FR_RIO_G10__A */
2298c2ecf20Sopenharmony_ci
2308c2ecf20Sopenharmony_ci	0x10, 0x00,		/* CE_REG_FR_MODE__A     */
2318c2ecf20Sopenharmony_ci	0x78, 0x00,		/* CE_REG_FR_SQS_TRH__A  */
2328c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_FR_RIO_GAIN__A */
2338c2ecf20Sopenharmony_ci	0x00, 0x02,		/* CE_REG_FR_BYPASS__A   */
2348c2ecf20Sopenharmony_ci	0x0D, 0x00,		/* CE_REG_FR_PM_SET__A   */
2358c2ecf20Sopenharmony_ci	0x07, 0x00,		/* CE_REG_FR_ERR_SH__A   */
2368c2ecf20Sopenharmony_ci	0x04, 0x00,		/* CE_REG_FR_MAN_SH__A   */
2378c2ecf20Sopenharmony_ci	0x06, 0x00,		/* CE_REG_FR_TAP_SH__A   */
2388c2ecf20Sopenharmony_ci
2398c2ecf20Sopenharmony_ci	END_OF_TABLE
2408c2ecf20Sopenharmony_ci};
2418c2ecf20Sopenharmony_ci
2428c2ecf20Sopenharmony_ciu8 DRXD_InitFEA2_1[] = {
2438c2ecf20Sopenharmony_ci	WRBLOCK(FE_AD_REG_PD__A, 3),
2448c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AD_REG_PD__A          */
2458c2ecf20Sopenharmony_ci	0x01, 0x00,		/* FE_AD_REG_INVEXT__A      */
2468c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AD_REG_CLKNEG__A      */
2478c2ecf20Sopenharmony_ci
2488c2ecf20Sopenharmony_ci	WRBLOCK(FE_AG_REG_DCE_AUR_CNT__A, 2),
2498c2ecf20Sopenharmony_ci	0x10, 0x00,		/* FE_AG_REG_DCE_AUR_CNT__A */
2508c2ecf20Sopenharmony_ci	0x10, 0x00,		/* FE_AG_REG_DCE_RUR_CNT__A */
2518c2ecf20Sopenharmony_ci
2528c2ecf20Sopenharmony_ci	WRBLOCK(FE_AG_REG_ACE_AUR_CNT__A, 2),
2538c2ecf20Sopenharmony_ci	0x0E, 0x00,		/* FE_AG_REG_ACE_AUR_CNT__A */
2548c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_ACE_RUR_CNT__A */
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci	WRBLOCK(FE_AG_REG_EGC_FLA_RGN__A, 5),
2578c2ecf20Sopenharmony_ci	0x04, 0x00,		/* FE_AG_REG_EGC_FLA_RGN__A */
2588c2ecf20Sopenharmony_ci	0x1F, 0x00,		/* FE_AG_REG_EGC_SLO_RGN__A */
2598c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_EGC_JMP_PSN__A */
2608c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_EGC_FLA_INC__A */
2618c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_EGC_FLA_DEC__A */
2628c2ecf20Sopenharmony_ci
2638c2ecf20Sopenharmony_ci	WRBLOCK(FE_AG_REG_GC1_AGC_MAX__A, 2),
2648c2ecf20Sopenharmony_ci	0xFF, 0x01,		/* FE_AG_REG_GC1_AGC_MAX__A */
2658c2ecf20Sopenharmony_ci	0x00, 0xFE,		/* FE_AG_REG_GC1_AGC_MIN__A */
2668c2ecf20Sopenharmony_ci
2678c2ecf20Sopenharmony_ci	WRBLOCK(FE_AG_REG_IND_WIN__A, 29),
2688c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_IND_WIN__A     */
2698c2ecf20Sopenharmony_ci	0x05, 0x00,		/* FE_AG_REG_IND_THD_LOL__A */
2708c2ecf20Sopenharmony_ci	0x0F, 0x00,		/* FE_AG_REG_IND_THD_HIL__A */
2718c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_IND_DEL__A     don't care */
2728c2ecf20Sopenharmony_ci	0x1E, 0x00,		/* FE_AG_REG_IND_PD1_WRI__A */
2738c2ecf20Sopenharmony_ci	0x0C, 0x00,		/* FE_AG_REG_PDA_AUR_CNT__A */
2748c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_PDA_RUR_CNT__A */
2758c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_PDA_AVE_DAT__A don't care  */
2768c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_PDC_RUR_CNT__A */
2778c2ecf20Sopenharmony_ci	0x01, 0x00,		/* FE_AG_REG_PDC_SET_LVL__A */
2788c2ecf20Sopenharmony_ci	0x02, 0x00,		/* FE_AG_REG_PDC_FLA_RGN__A */
2798c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_PDC_JMP_PSN__A don't care  */
2808c2ecf20Sopenharmony_ci	0xFF, 0xFF,		/* FE_AG_REG_PDC_FLA_STP__A */
2818c2ecf20Sopenharmony_ci	0xFF, 0xFF,		/* FE_AG_REG_PDC_SLO_STP__A */
2828c2ecf20Sopenharmony_ci	0x00, 0x1F,		/* FE_AG_REG_PDC_PD2_WRI__A don't care  */
2838c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_PDC_MAP_DAT__A don't care  */
2848c2ecf20Sopenharmony_ci	0x02, 0x00,		/* FE_AG_REG_PDC_MAX__A     */
2858c2ecf20Sopenharmony_ci	0x0C, 0x00,		/* FE_AG_REG_TGA_AUR_CNT__A */
2868c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_TGA_RUR_CNT__A */
2878c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_TGA_AVE_DAT__A don't care  */
2888c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_TGC_RUR_CNT__A */
2898c2ecf20Sopenharmony_ci	0x22, 0x00,		/* FE_AG_REG_TGC_SET_LVL__A */
2908c2ecf20Sopenharmony_ci	0x15, 0x00,		/* FE_AG_REG_TGC_FLA_RGN__A */
2918c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_TGC_JMP_PSN__A don't care  */
2928c2ecf20Sopenharmony_ci	0x01, 0x00,		/* FE_AG_REG_TGC_FLA_STP__A */
2938c2ecf20Sopenharmony_ci	0x0A, 0x00,		/* FE_AG_REG_TGC_SLO_STP__A */
2948c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_TGC_MAP_DAT__A don't care  */
2958c2ecf20Sopenharmony_ci	0x10, 0x00,		/* FE_AG_REG_FGA_AUR_CNT__A */
2968c2ecf20Sopenharmony_ci	0x10, 0x00,		/* FE_AG_REG_FGA_RUR_CNT__A */
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ci	WRBLOCK(FE_AG_REG_BGC_FGC_WRI__A, 2),
2998c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_BGC_FGC_WRI__A */
3008c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_AG_REG_BGC_CGC_WRI__A */
3018c2ecf20Sopenharmony_ci
3028c2ecf20Sopenharmony_ci	WRBLOCK(FE_FD_REG_SCL__A, 3),
3038c2ecf20Sopenharmony_ci	0x05, 0x00,		/* FE_FD_REG_SCL__A         */
3048c2ecf20Sopenharmony_ci	0x03, 0x00,		/* FE_FD_REG_MAX_LEV__A     */
3058c2ecf20Sopenharmony_ci	0x05, 0x00,		/* FE_FD_REG_NR__A          */
3068c2ecf20Sopenharmony_ci
3078c2ecf20Sopenharmony_ci	WRBLOCK(FE_CF_REG_SCL__A, 5),
3088c2ecf20Sopenharmony_ci	0x16, 0x00,		/* FE_CF_REG_SCL__A         */
3098c2ecf20Sopenharmony_ci	0x04, 0x00,		/* FE_CF_REG_MAX_LEV__A     */
3108c2ecf20Sopenharmony_ci	0x06, 0x00,		/* FE_CF_REG_NR__A          */
3118c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_CF_REG_IMP_VAL__A     */
3128c2ecf20Sopenharmony_ci	0x01, 0x00,		/* FE_CF_REG_MEAS_VAL__A    */
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_ci	WRBLOCK(FE_CU_REG_FRM_CNT_RST__A, 2),
3158c2ecf20Sopenharmony_ci	0x00, 0x08,		/* FE_CU_REG_FRM_CNT_RST__A */
3168c2ecf20Sopenharmony_ci	0x00, 0x00,		/* FE_CU_REG_FRM_CNT_STR__A */
3178c2ecf20Sopenharmony_ci
3188c2ecf20Sopenharmony_ci	END_OF_TABLE
3198c2ecf20Sopenharmony_ci};
3208c2ecf20Sopenharmony_ci
3218c2ecf20Sopenharmony_ci   /* with PGA */
3228c2ecf20Sopenharmony_ci/*   WR16COND( DRXD_WITH_PGA, FE_AG_REG_AG_PGA_MODE__A   , 0x0004), */
3238c2ecf20Sopenharmony_ci   /* without PGA */
3248c2ecf20Sopenharmony_ci/*   WR16COND( DRXD_WITHOUT_PGA, FE_AG_REG_AG_PGA_MODE__A   , 0x0001), */
3258c2ecf20Sopenharmony_ci/*   WR16(FE_AG_REG_AG_AGC_SIO__A,  (extAttr -> FeAgRegAgAgcSio), 0x0000 );*/
3268c2ecf20Sopenharmony_ci/*   WR16(FE_AG_REG_AG_PWD__A        ,(extAttr -> FeAgRegAgPwd), 0x0000 );*/
3278c2ecf20Sopenharmony_ci
3288c2ecf20Sopenharmony_ciu8 DRXD_InitFEA2_2[] = {
3298c2ecf20Sopenharmony_ci	WR16(FE_AG_REG_CDR_RUR_CNT__A, 0x0010),
3308c2ecf20Sopenharmony_ci	WR16(FE_AG_REG_FGM_WRI__A, 48),
3318c2ecf20Sopenharmony_ci	/* Activate measurement, activate scale */
3328c2ecf20Sopenharmony_ci	WR16(FE_FD_REG_MEAS_VAL__A, 0x0001),
3338c2ecf20Sopenharmony_ci
3348c2ecf20Sopenharmony_ci	WR16(FE_CU_REG_COMM_EXEC__A, 0x0001),
3358c2ecf20Sopenharmony_ci	WR16(FE_CF_REG_COMM_EXEC__A, 0x0001),
3368c2ecf20Sopenharmony_ci	WR16(FE_IF_REG_COMM_EXEC__A, 0x0001),
3378c2ecf20Sopenharmony_ci	WR16(FE_FD_REG_COMM_EXEC__A, 0x0001),
3388c2ecf20Sopenharmony_ci	WR16(FE_FS_REG_COMM_EXEC__A, 0x0001),
3398c2ecf20Sopenharmony_ci	WR16(FE_AD_REG_COMM_EXEC__A, 0x0001),
3408c2ecf20Sopenharmony_ci	WR16(FE_AG_REG_COMM_EXEC__A, 0x0001),
3418c2ecf20Sopenharmony_ci	WR16(FE_AG_REG_AG_MODE_LOP__A, 0x895E),
3428c2ecf20Sopenharmony_ci
3438c2ecf20Sopenharmony_ci	END_OF_TABLE
3448c2ecf20Sopenharmony_ci};
3458c2ecf20Sopenharmony_ci
3468c2ecf20Sopenharmony_ciu8 DRXD_InitFEB1_1[] = {
3478c2ecf20Sopenharmony_ci	WR16(B_FE_AD_REG_PD__A, 0x0000),
3488c2ecf20Sopenharmony_ci	WR16(B_FE_AD_REG_CLKNEG__A, 0x0000),
3498c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_BGC_FGC_WRI__A, 0x0000),
3508c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_BGC_CGC_WRI__A, 0x0000),
3518c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_AG_MODE_LOP__A, 0x000a),
3528c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_IND_PD1_WRI__A, 35),
3538c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_IND_WIN__A, 0),
3548c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_IND_THD_LOL__A, 8),
3558c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_IND_THD_HIL__A, 8),
3568c2ecf20Sopenharmony_ci	WR16(B_FE_CF_REG_IMP_VAL__A, 1),
3578c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_EGC_FLA_RGN__A, 7),
3588c2ecf20Sopenharmony_ci	END_OF_TABLE
3598c2ecf20Sopenharmony_ci};
3608c2ecf20Sopenharmony_ci
3618c2ecf20Sopenharmony_ci	/* with PGA */
3628c2ecf20Sopenharmony_ci/*      WR16(B_FE_AG_REG_AG_PGA_MODE__A   , 0x0000, 0x0000); */
3638c2ecf20Sopenharmony_ci       /* without PGA */
3648c2ecf20Sopenharmony_ci/*      WR16(B_FE_AG_REG_AG_PGA_MODE__A   ,
3658c2ecf20Sopenharmony_ci	     B_FE_AG_REG_AG_PGA_MODE_PFN_PCN_AFY_REN, 0x0000);*/
3668c2ecf20Sopenharmony_ci									     /*   WR16(B_FE_AG_REG_AG_AGC_SIO__A,(extAttr -> FeAgRegAgAgcSio), 0x0000 );*//*added HS 23-05-2005 */
3678c2ecf20Sopenharmony_ci/*   WR16(B_FE_AG_REG_AG_PWD__A    ,(extAttr -> FeAgRegAgPwd), 0x0000 );*/
3688c2ecf20Sopenharmony_ci
3698c2ecf20Sopenharmony_ciu8 DRXD_InitFEB1_2[] = {
3708c2ecf20Sopenharmony_ci	WR16(B_FE_COMM_EXEC__A, 0x0001),
3718c2ecf20Sopenharmony_ci
3728c2ecf20Sopenharmony_ci	/* RF-AGC setup */
3738c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_PDA_AUR_CNT__A, 0x0C),
3748c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_PDC_SET_LVL__A, 0x01),
3758c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_PDC_FLA_RGN__A, 0x02),
3768c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_PDC_FLA_STP__A, 0xFFFF),
3778c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_PDC_SLO_STP__A, 0xFFFF),
3788c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_PDC_MAX__A, 0x02),
3798c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_TGA_AUR_CNT__A, 0x0C),
3808c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_TGC_SET_LVL__A, 0x22),
3818c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_TGC_FLA_RGN__A, 0x15),
3828c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_TGC_FLA_STP__A, 0x01),
3838c2ecf20Sopenharmony_ci	WR16(B_FE_AG_REG_TGC_SLO_STP__A, 0x0A),
3848c2ecf20Sopenharmony_ci
3858c2ecf20Sopenharmony_ci	WR16(B_FE_CU_REG_DIV_NFC_CLP__A, 0),
3868c2ecf20Sopenharmony_ci	WR16(B_FE_CU_REG_CTR_NFC_OCR__A, 25000),
3878c2ecf20Sopenharmony_ci	WR16(B_FE_CU_REG_CTR_NFC_ICR__A, 1),
3888c2ecf20Sopenharmony_ci	END_OF_TABLE
3898c2ecf20Sopenharmony_ci};
3908c2ecf20Sopenharmony_ci
3918c2ecf20Sopenharmony_ciu8 DRXD_InitCPA2[] = {
3928c2ecf20Sopenharmony_ci	WRBLOCK(CP_REG_BR_SPL_OFFSET__A, 2),
3938c2ecf20Sopenharmony_ci	0x07, 0x00,		/* CP_REG_BR_SPL_OFFSET__A  */
3948c2ecf20Sopenharmony_ci	0x0A, 0x00,		/* CP_REG_BR_STR_DEL__A     */
3958c2ecf20Sopenharmony_ci
3968c2ecf20Sopenharmony_ci	WRBLOCK(CP_REG_RT_ANG_INC0__A, 4),
3978c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CP_REG_RT_ANG_INC0__A    */
3988c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CP_REG_RT_ANG_INC1__A    */
3998c2ecf20Sopenharmony_ci	0x03, 0x00,		/* CP_REG_RT_DETECT_ENA__A  */
4008c2ecf20Sopenharmony_ci	0x03, 0x00,		/* CP_REG_RT_DETECT_TRH__A  */
4018c2ecf20Sopenharmony_ci
4028c2ecf20Sopenharmony_ci	WRBLOCK(CP_REG_AC_NEXP_OFFS__A, 5),
4038c2ecf20Sopenharmony_ci	0x32, 0x00,		/* CP_REG_AC_NEXP_OFFS__A   */
4048c2ecf20Sopenharmony_ci	0x62, 0x00,		/* CP_REG_AC_AVER_POW__A    */
4058c2ecf20Sopenharmony_ci	0x82, 0x00,		/* CP_REG_AC_MAX_POW__A     */
4068c2ecf20Sopenharmony_ci	0x26, 0x00,		/* CP_REG_AC_WEIGHT_MAN__A  */
4078c2ecf20Sopenharmony_ci	0x0F, 0x00,		/* CP_REG_AC_WEIGHT_EXP__A  */
4088c2ecf20Sopenharmony_ci
4098c2ecf20Sopenharmony_ci	WRBLOCK(CP_REG_AC_AMP_MODE__A, 2),
4108c2ecf20Sopenharmony_ci	0x02, 0x00,		/* CP_REG_AC_AMP_MODE__A    */
4118c2ecf20Sopenharmony_ci	0x01, 0x00,		/* CP_REG_AC_AMP_FIX__A     */
4128c2ecf20Sopenharmony_ci
4138c2ecf20Sopenharmony_ci	WR16(CP_REG_INTERVAL__A, 0x0005),
4148c2ecf20Sopenharmony_ci	WR16(CP_REG_RT_EXP_MARG__A, 0x0004),
4158c2ecf20Sopenharmony_ci	WR16(CP_REG_AC_ANG_MODE__A, 0x0003),
4168c2ecf20Sopenharmony_ci
4178c2ecf20Sopenharmony_ci	WR16(CP_REG_COMM_EXEC__A, 0x0001),
4188c2ecf20Sopenharmony_ci	END_OF_TABLE
4198c2ecf20Sopenharmony_ci};
4208c2ecf20Sopenharmony_ci
4218c2ecf20Sopenharmony_ciu8 DRXD_InitCPB1[] = {
4228c2ecf20Sopenharmony_ci	WR16(B_CP_REG_BR_SPL_OFFSET__A, 0x0008),
4238c2ecf20Sopenharmony_ci	WR16(B_CP_COMM_EXEC__A, 0x0001),
4248c2ecf20Sopenharmony_ci	END_OF_TABLE
4258c2ecf20Sopenharmony_ci};
4268c2ecf20Sopenharmony_ci
4278c2ecf20Sopenharmony_ciu8 DRXD_InitCEA2[] = {
4288c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_AVG_POW__A, 4),
4298c2ecf20Sopenharmony_ci	0x62, 0x00,		/* CE_REG_AVG_POW__A        */
4308c2ecf20Sopenharmony_ci	0x78, 0x00,		/* CE_REG_MAX_POW__A        */
4318c2ecf20Sopenharmony_ci	0x62, 0x00,		/* CE_REG_ATT__A            */
4328c2ecf20Sopenharmony_ci	0x17, 0x00,		/* CE_REG_NRED__A           */
4338c2ecf20Sopenharmony_ci
4348c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_NE_ERR_SELECT__A, 2),
4358c2ecf20Sopenharmony_ci	0x07, 0x00,		/* CE_REG_NE_ERR_SELECT__A  */
4368c2ecf20Sopenharmony_ci	0xEB, 0xFF,		/* CE_REG_NE_TD_CAL__A      */
4378c2ecf20Sopenharmony_ci
4388c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_NE_MIXAVG__A, 2),
4398c2ecf20Sopenharmony_ci	0x06, 0x00,		/* CE_REG_NE_MIXAVG__A      */
4408c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_NE_NUPD_OFS__A    */
4418c2ecf20Sopenharmony_ci
4428c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_PE_NEXP_OFFS__A, 2),
4438c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_PE_NEXP_OFFS__A   */
4448c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_PE_TIMESHIFT__A   */
4458c2ecf20Sopenharmony_ci
4468c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_TP_A0_TAP_NEW__A, 3),
4478c2ecf20Sopenharmony_ci	0x00, 0x01,		/* CE_REG_TP_A0_TAP_NEW__A       */
4488c2ecf20Sopenharmony_ci	0x01, 0x00,		/* CE_REG_TP_A0_TAP_NEW_VALID__A */
4498c2ecf20Sopenharmony_ci	0x0E, 0x00,		/* CE_REG_TP_A0_MU_LMS_STEP__A   */
4508c2ecf20Sopenharmony_ci
4518c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_TP_A1_TAP_NEW__A, 3),
4528c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_TP_A1_TAP_NEW__A        */
4538c2ecf20Sopenharmony_ci	0x01, 0x00,		/* CE_REG_TP_A1_TAP_NEW_VALID__A  */
4548c2ecf20Sopenharmony_ci	0x0A, 0x00,		/* CE_REG_TP_A1_MU_LMS_STEP__A    */
4558c2ecf20Sopenharmony_ci
4568c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_FI_SHT_INCR__A, 2),
4578c2ecf20Sopenharmony_ci	0x12, 0x00,		/* CE_REG_FI_SHT_INCR__A          */
4588c2ecf20Sopenharmony_ci	0x0C, 0x00,		/* CE_REG_FI_EXP_NORM__A          */
4598c2ecf20Sopenharmony_ci
4608c2ecf20Sopenharmony_ci	WRBLOCK(CE_REG_IR_INPUTSEL__A, 3),
4618c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_IR_INPUTSEL__A          */
4628c2ecf20Sopenharmony_ci	0x00, 0x00,		/* CE_REG_IR_STARTPOS__A          */
4638c2ecf20Sopenharmony_ci	0xFF, 0x00,		/* CE_REG_IR_NEXP_THRES__A        */
4648c2ecf20Sopenharmony_ci
4658c2ecf20Sopenharmony_ci	WR16(CE_REG_TI_NEXP_OFFS__A, 0x0000),
4668c2ecf20Sopenharmony_ci
4678c2ecf20Sopenharmony_ci	END_OF_TABLE
4688c2ecf20Sopenharmony_ci};
4698c2ecf20Sopenharmony_ci
4708c2ecf20Sopenharmony_ciu8 DRXD_InitCEB1[] = {
4718c2ecf20Sopenharmony_ci	WR16(B_CE_REG_TI_PHN_ENABLE__A, 0x0001),
4728c2ecf20Sopenharmony_ci	WR16(B_CE_REG_FR_PM_SET__A, 0x000D),
4738c2ecf20Sopenharmony_ci
4748c2ecf20Sopenharmony_ci	END_OF_TABLE
4758c2ecf20Sopenharmony_ci};
4768c2ecf20Sopenharmony_ci
4778c2ecf20Sopenharmony_ciu8 DRXD_InitEQA2[] = {
4788c2ecf20Sopenharmony_ci	WRBLOCK(EQ_REG_OT_QNT_THRES0__A, 4),
4798c2ecf20Sopenharmony_ci	0x1E, 0x00,		/* EQ_REG_OT_QNT_THRES0__A        */
4808c2ecf20Sopenharmony_ci	0x1F, 0x00,		/* EQ_REG_OT_QNT_THRES1__A        */
4818c2ecf20Sopenharmony_ci	0x06, 0x00,		/* EQ_REG_OT_CSI_STEP__A          */
4828c2ecf20Sopenharmony_ci	0x02, 0x00,		/* EQ_REG_OT_CSI_OFFSET__A        */
4838c2ecf20Sopenharmony_ci
4848c2ecf20Sopenharmony_ci	WR16(EQ_REG_TD_REQ_SMB_CNT__A, 0x0200),
4858c2ecf20Sopenharmony_ci	WR16(EQ_REG_IS_CLIP_EXP__A, 0x001F),
4868c2ecf20Sopenharmony_ci	WR16(EQ_REG_SN_OFFSET__A, (u16) (-7)),
4878c2ecf20Sopenharmony_ci	WR16(EQ_REG_RC_SEL_CAR__A, 0x0002),
4888c2ecf20Sopenharmony_ci	WR16(EQ_REG_COMM_EXEC__A, 0x0001),
4898c2ecf20Sopenharmony_ci	END_OF_TABLE
4908c2ecf20Sopenharmony_ci};
4918c2ecf20Sopenharmony_ci
4928c2ecf20Sopenharmony_ciu8 DRXD_InitEQB1[] = {
4938c2ecf20Sopenharmony_ci	WR16(B_EQ_REG_COMM_EXEC__A, 0x0001),
4948c2ecf20Sopenharmony_ci	END_OF_TABLE
4958c2ecf20Sopenharmony_ci};
4968c2ecf20Sopenharmony_ci
4978c2ecf20Sopenharmony_ciu8 DRXD_ResetECRAM[] = {
4988c2ecf20Sopenharmony_ci	/* Reset packet sync bytes in EC_VD ram */
4998c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (0 * 17), 0x0000),
5008c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (1 * 17), 0x0000),
5018c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (2 * 17), 0x0000),
5028c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (3 * 17), 0x0000),
5038c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (4 * 17), 0x0000),
5048c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (5 * 17), 0x0000),
5058c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (6 * 17), 0x0000),
5068c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (7 * 17), 0x0000),
5078c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (8 * 17), 0x0000),
5088c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (9 * 17), 0x0000),
5098c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (10 * 17), 0x0000),
5108c2ecf20Sopenharmony_ci
5118c2ecf20Sopenharmony_ci	/* Reset packet sync bytes in EC_RS ram */
5128c2ecf20Sopenharmony_ci	WR16(EC_RS_EC_RAM__A, 0x0000),
5138c2ecf20Sopenharmony_ci	WR16(EC_RS_EC_RAM__A + 204, 0x0000),
5148c2ecf20Sopenharmony_ci	END_OF_TABLE
5158c2ecf20Sopenharmony_ci};
5168c2ecf20Sopenharmony_ci
5178c2ecf20Sopenharmony_ciu8 DRXD_InitECA2[] = {
5188c2ecf20Sopenharmony_ci	WRBLOCK(EC_SB_REG_CSI_HI__A, 6),
5198c2ecf20Sopenharmony_ci	0x1F, 0x00,		/* EC_SB_REG_CSI_HI__A            */
5208c2ecf20Sopenharmony_ci	0x1E, 0x00,		/* EC_SB_REG_CSI_LO__A            */
5218c2ecf20Sopenharmony_ci	0x01, 0x00,		/* EC_SB_REG_SMB_TGL__A           */
5228c2ecf20Sopenharmony_ci	0x7F, 0x00,		/* EC_SB_REG_SNR_HI__A            */
5238c2ecf20Sopenharmony_ci	0x7F, 0x00,		/* EC_SB_REG_SNR_MID__A           */
5248c2ecf20Sopenharmony_ci	0x7F, 0x00,		/* EC_SB_REG_SNR_LO__A            */
5258c2ecf20Sopenharmony_ci
5268c2ecf20Sopenharmony_ci	WRBLOCK(EC_RS_REG_REQ_PCK_CNT__A, 2),
5278c2ecf20Sopenharmony_ci	0x00, 0x10,		/* EC_RS_REG_REQ_PCK_CNT__A       */
5288c2ecf20Sopenharmony_ci	DATA16(EC_RS_REG_VAL_PCK),	/* EC_RS_REG_VAL__A               */
5298c2ecf20Sopenharmony_ci
5308c2ecf20Sopenharmony_ci	WRBLOCK(EC_OC_REG_TMD_TOP_MODE__A, 5),
5318c2ecf20Sopenharmony_ci	0x03, 0x00,		/* EC_OC_REG_TMD_TOP_MODE__A      */
5328c2ecf20Sopenharmony_ci	0xF4, 0x01,		/* EC_OC_REG_TMD_TOP_CNT__A       */
5338c2ecf20Sopenharmony_ci	0xC0, 0x03,		/* EC_OC_REG_TMD_HIL_MAR__A       */
5348c2ecf20Sopenharmony_ci	0x40, 0x00,		/* EC_OC_REG_TMD_LOL_MAR__A       */
5358c2ecf20Sopenharmony_ci	0x03, 0x00,		/* EC_OC_REG_TMD_CUR_CNT__A       */
5368c2ecf20Sopenharmony_ci
5378c2ecf20Sopenharmony_ci	WRBLOCK(EC_OC_REG_AVR_ASH_CNT__A, 2),
5388c2ecf20Sopenharmony_ci	0x06, 0x00,		/* EC_OC_REG_AVR_ASH_CNT__A       */
5398c2ecf20Sopenharmony_ci	0x02, 0x00,		/* EC_OC_REG_AVR_BSH_CNT__A       */
5408c2ecf20Sopenharmony_ci
5418c2ecf20Sopenharmony_ci	WRBLOCK(EC_OC_REG_RCN_MODE__A, 7),
5428c2ecf20Sopenharmony_ci	0x07, 0x00,		/* EC_OC_REG_RCN_MODE__A          */
5438c2ecf20Sopenharmony_ci	0x00, 0x00,		/* EC_OC_REG_RCN_CRA_LOP__A       */
5448c2ecf20Sopenharmony_ci	0xc0, 0x00,		/* EC_OC_REG_RCN_CRA_HIP__A       */
5458c2ecf20Sopenharmony_ci	0x00, 0x10,		/* EC_OC_REG_RCN_CST_LOP__A       */
5468c2ecf20Sopenharmony_ci	0x00, 0x00,		/* EC_OC_REG_RCN_CST_HIP__A       */
5478c2ecf20Sopenharmony_ci	0xFF, 0x01,		/* EC_OC_REG_RCN_SET_LVL__A       */
5488c2ecf20Sopenharmony_ci	0x0D, 0x00,		/* EC_OC_REG_RCN_GAI_LVL__A       */
5498c2ecf20Sopenharmony_ci
5508c2ecf20Sopenharmony_ci	WRBLOCK(EC_OC_REG_RCN_CLP_LOP__A, 2),
5518c2ecf20Sopenharmony_ci	0x00, 0x00,		/* EC_OC_REG_RCN_CLP_LOP__A       */
5528c2ecf20Sopenharmony_ci	0xC0, 0x00,		/* EC_OC_REG_RCN_CLP_HIP__A       */
5538c2ecf20Sopenharmony_ci
5548c2ecf20Sopenharmony_ci	WR16(EC_SB_REG_CSI_OFS__A, 0x0001),
5558c2ecf20Sopenharmony_ci	WR16(EC_VD_REG_FORCE__A, 0x0002),
5568c2ecf20Sopenharmony_ci	WR16(EC_VD_REG_REQ_SMB_CNT__A, 0x0001),
5578c2ecf20Sopenharmony_ci	WR16(EC_VD_REG_RLK_ENA__A, 0x0001),
5588c2ecf20Sopenharmony_ci	WR16(EC_OD_REG_SYNC__A, 0x0664),
5598c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_OC_MON_SIO__A, 0x0000),
5608c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_SNC_ISC_LVL__A, 0x0D0C),
5618c2ecf20Sopenharmony_ci	/* Output zero on monitorbus pads, power saving */
5628c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_OCR_MON_UOS__A,
5638c2ecf20Sopenharmony_ci	     (EC_OC_REG_OCR_MON_UOS_DAT_0_ENABLE |
5648c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_1_ENABLE |
5658c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_2_ENABLE |
5668c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_3_ENABLE |
5678c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_4_ENABLE |
5688c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_5_ENABLE |
5698c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_6_ENABLE |
5708c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_7_ENABLE |
5718c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_8_ENABLE |
5728c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_9_ENABLE |
5738c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_VAL_ENABLE |
5748c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_CLK_ENABLE)),
5758c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_OCR_MON_WRI__A,
5768c2ecf20Sopenharmony_ci	     EC_OC_REG_OCR_MON_WRI_INIT),
5778c2ecf20Sopenharmony_ci
5788c2ecf20Sopenharmony_ci/*   CHK_ERROR(ResetECRAM(demod)); */
5798c2ecf20Sopenharmony_ci	/* Reset packet sync bytes in EC_VD ram */
5808c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (0 * 17), 0x0000),
5818c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (1 * 17), 0x0000),
5828c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (2 * 17), 0x0000),
5838c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (3 * 17), 0x0000),
5848c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (4 * 17), 0x0000),
5858c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (5 * 17), 0x0000),
5868c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (6 * 17), 0x0000),
5878c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (7 * 17), 0x0000),
5888c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (8 * 17), 0x0000),
5898c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (9 * 17), 0x0000),
5908c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (10 * 17), 0x0000),
5918c2ecf20Sopenharmony_ci
5928c2ecf20Sopenharmony_ci	/* Reset packet sync bytes in EC_RS ram */
5938c2ecf20Sopenharmony_ci	WR16(EC_RS_EC_RAM__A, 0x0000),
5948c2ecf20Sopenharmony_ci	WR16(EC_RS_EC_RAM__A + 204, 0x0000),
5958c2ecf20Sopenharmony_ci
5968c2ecf20Sopenharmony_ci	WR16(EC_SB_REG_COMM_EXEC__A, 0x0001),
5978c2ecf20Sopenharmony_ci	WR16(EC_VD_REG_COMM_EXEC__A, 0x0001),
5988c2ecf20Sopenharmony_ci	WR16(EC_OD_REG_COMM_EXEC__A, 0x0001),
5998c2ecf20Sopenharmony_ci	WR16(EC_RS_REG_COMM_EXEC__A, 0x0001),
6008c2ecf20Sopenharmony_ci	END_OF_TABLE
6018c2ecf20Sopenharmony_ci};
6028c2ecf20Sopenharmony_ci
6038c2ecf20Sopenharmony_ciu8 DRXD_InitECB1[] = {
6048c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_CSI_OFS0__A, 0x0001),
6058c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_CSI_OFS1__A, 0x0001),
6068c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_CSI_OFS2__A, 0x0001),
6078c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_CSI_LO__A, 0x000c),
6088c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_CSI_HI__A, 0x0018),
6098c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_SNR_HI__A, 0x007f),
6108c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_SNR_MID__A, 0x007f),
6118c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_SNR_LO__A, 0x007f),
6128c2ecf20Sopenharmony_ci
6138c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_DTO_CLKMODE__A, 0x0002),
6148c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_DTO_PER__A, 0x0006),
6158c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_DTO_BUR__A, 0x0001),
6168c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_RCR_CLKMODE__A, 0x0000),
6178c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_RCN_GAI_LVL__A, 0x000D),
6188c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_OC_MPG_SIO__A, 0x0000),
6198c2ecf20Sopenharmony_ci
6208c2ecf20Sopenharmony_ci	/* Needed because shadow registers do not have correct default value */
6218c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_RCN_CST_LOP__A, 0x1000),
6228c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_RCN_CST_HIP__A, 0x0000),
6238c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_RCN_CRA_LOP__A, 0x0000),
6248c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_RCN_CRA_HIP__A, 0x00C0),
6258c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_RCN_CLP_LOP__A, 0x0000),
6268c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_RCN_CLP_HIP__A, 0x00C0),
6278c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_DTO_INC_LOP__A, 0x0000),
6288c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_DTO_INC_HIP__A, 0x00C0),
6298c2ecf20Sopenharmony_ci
6308c2ecf20Sopenharmony_ci	WR16(B_EC_OD_REG_SYNC__A, 0x0664),
6318c2ecf20Sopenharmony_ci	WR16(B_EC_RS_REG_REQ_PCK_CNT__A, 0x1000),
6328c2ecf20Sopenharmony_ci
6338c2ecf20Sopenharmony_ci/*   CHK_ERROR(ResetECRAM(demod)); */
6348c2ecf20Sopenharmony_ci	/* Reset packet sync bytes in EC_VD ram */
6358c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (0 * 17), 0x0000),
6368c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (1 * 17), 0x0000),
6378c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (2 * 17), 0x0000),
6388c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (3 * 17), 0x0000),
6398c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (4 * 17), 0x0000),
6408c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (5 * 17), 0x0000),
6418c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (6 * 17), 0x0000),
6428c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (7 * 17), 0x0000),
6438c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (8 * 17), 0x0000),
6448c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (9 * 17), 0x0000),
6458c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (10 * 17), 0x0000),
6468c2ecf20Sopenharmony_ci
6478c2ecf20Sopenharmony_ci	/* Reset packet sync bytes in EC_RS ram */
6488c2ecf20Sopenharmony_ci	WR16(EC_RS_EC_RAM__A, 0x0000),
6498c2ecf20Sopenharmony_ci	WR16(EC_RS_EC_RAM__A + 204, 0x0000),
6508c2ecf20Sopenharmony_ci
6518c2ecf20Sopenharmony_ci	WR16(B_EC_SB_REG_COMM_EXEC__A, 0x0001),
6528c2ecf20Sopenharmony_ci	WR16(B_EC_VD_REG_COMM_EXEC__A, 0x0001),
6538c2ecf20Sopenharmony_ci	WR16(B_EC_OD_REG_COMM_EXEC__A, 0x0001),
6548c2ecf20Sopenharmony_ci	WR16(B_EC_RS_REG_COMM_EXEC__A, 0x0001),
6558c2ecf20Sopenharmony_ci	END_OF_TABLE
6568c2ecf20Sopenharmony_ci};
6578c2ecf20Sopenharmony_ci
6588c2ecf20Sopenharmony_ciu8 DRXD_ResetECA2[] = {
6598c2ecf20Sopenharmony_ci
6608c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_COMM_EXEC__A, 0x0000),
6618c2ecf20Sopenharmony_ci	WR16(EC_OD_REG_COMM_EXEC__A, 0x0000),
6628c2ecf20Sopenharmony_ci
6638c2ecf20Sopenharmony_ci	WRBLOCK(EC_OC_REG_TMD_TOP_MODE__A, 5),
6648c2ecf20Sopenharmony_ci	0x03, 0x00,		/* EC_OC_REG_TMD_TOP_MODE__A      */
6658c2ecf20Sopenharmony_ci	0xF4, 0x01,		/* EC_OC_REG_TMD_TOP_CNT__A       */
6668c2ecf20Sopenharmony_ci	0xC0, 0x03,		/* EC_OC_REG_TMD_HIL_MAR__A       */
6678c2ecf20Sopenharmony_ci	0x40, 0x00,		/* EC_OC_REG_TMD_LOL_MAR__A       */
6688c2ecf20Sopenharmony_ci	0x03, 0x00,		/* EC_OC_REG_TMD_CUR_CNT__A       */
6698c2ecf20Sopenharmony_ci
6708c2ecf20Sopenharmony_ci	WRBLOCK(EC_OC_REG_AVR_ASH_CNT__A, 2),
6718c2ecf20Sopenharmony_ci	0x06, 0x00,		/* EC_OC_REG_AVR_ASH_CNT__A       */
6728c2ecf20Sopenharmony_ci	0x02, 0x00,		/* EC_OC_REG_AVR_BSH_CNT__A       */
6738c2ecf20Sopenharmony_ci
6748c2ecf20Sopenharmony_ci	WRBLOCK(EC_OC_REG_RCN_MODE__A, 7),
6758c2ecf20Sopenharmony_ci	0x07, 0x00,		/* EC_OC_REG_RCN_MODE__A          */
6768c2ecf20Sopenharmony_ci	0x00, 0x00,		/* EC_OC_REG_RCN_CRA_LOP__A       */
6778c2ecf20Sopenharmony_ci	0xc0, 0x00,		/* EC_OC_REG_RCN_CRA_HIP__A       */
6788c2ecf20Sopenharmony_ci	0x00, 0x10,		/* EC_OC_REG_RCN_CST_LOP__A       */
6798c2ecf20Sopenharmony_ci	0x00, 0x00,		/* EC_OC_REG_RCN_CST_HIP__A       */
6808c2ecf20Sopenharmony_ci	0xFF, 0x01,		/* EC_OC_REG_RCN_SET_LVL__A       */
6818c2ecf20Sopenharmony_ci	0x0D, 0x00,		/* EC_OC_REG_RCN_GAI_LVL__A       */
6828c2ecf20Sopenharmony_ci
6838c2ecf20Sopenharmony_ci	WRBLOCK(EC_OC_REG_RCN_CLP_LOP__A, 2),
6848c2ecf20Sopenharmony_ci	0x00, 0x00,		/* EC_OC_REG_RCN_CLP_LOP__A       */
6858c2ecf20Sopenharmony_ci	0xC0, 0x00,		/* EC_OC_REG_RCN_CLP_HIP__A       */
6868c2ecf20Sopenharmony_ci
6878c2ecf20Sopenharmony_ci	WR16(EC_OD_REG_SYNC__A, 0x0664),
6888c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_OC_MON_SIO__A, 0x0000),
6898c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_SNC_ISC_LVL__A, 0x0D0C),
6908c2ecf20Sopenharmony_ci	/* Output zero on monitorbus pads, power saving */
6918c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_OCR_MON_UOS__A,
6928c2ecf20Sopenharmony_ci	     (EC_OC_REG_OCR_MON_UOS_DAT_0_ENABLE |
6938c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_1_ENABLE |
6948c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_2_ENABLE |
6958c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_3_ENABLE |
6968c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_4_ENABLE |
6978c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_5_ENABLE |
6988c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_6_ENABLE |
6998c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_7_ENABLE |
7008c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_8_ENABLE |
7018c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_DAT_9_ENABLE |
7028c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_VAL_ENABLE |
7038c2ecf20Sopenharmony_ci	      EC_OC_REG_OCR_MON_UOS_CLK_ENABLE)),
7048c2ecf20Sopenharmony_ci	WR16(EC_OC_REG_OCR_MON_WRI__A,
7058c2ecf20Sopenharmony_ci	     EC_OC_REG_OCR_MON_WRI_INIT),
7068c2ecf20Sopenharmony_ci
7078c2ecf20Sopenharmony_ci/*   CHK_ERROR(ResetECRAM(demod)); */
7088c2ecf20Sopenharmony_ci	/* Reset packet sync bytes in EC_VD ram */
7098c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (0 * 17), 0x0000),
7108c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (1 * 17), 0x0000),
7118c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (2 * 17), 0x0000),
7128c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (3 * 17), 0x0000),
7138c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (4 * 17), 0x0000),
7148c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (5 * 17), 0x0000),
7158c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (6 * 17), 0x0000),
7168c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (7 * 17), 0x0000),
7178c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (8 * 17), 0x0000),
7188c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (9 * 17), 0x0000),
7198c2ecf20Sopenharmony_ci	WR16(EC_OD_DEINT_RAM__A + 0x3b7 + (10 * 17), 0x0000),
7208c2ecf20Sopenharmony_ci
7218c2ecf20Sopenharmony_ci	/* Reset packet sync bytes in EC_RS ram */
7228c2ecf20Sopenharmony_ci	WR16(EC_RS_EC_RAM__A, 0x0000),
7238c2ecf20Sopenharmony_ci	WR16(EC_RS_EC_RAM__A + 204, 0x0000),
7248c2ecf20Sopenharmony_ci
7258c2ecf20Sopenharmony_ci	WR16(EC_OD_REG_COMM_EXEC__A, 0x0001),
7268c2ecf20Sopenharmony_ci	END_OF_TABLE
7278c2ecf20Sopenharmony_ci};
7288c2ecf20Sopenharmony_ci
7298c2ecf20Sopenharmony_ciu8 DRXD_InitSC[] = {
7308c2ecf20Sopenharmony_ci	WR16(SC_COMM_EXEC__A, 0),
7318c2ecf20Sopenharmony_ci	WR16(SC_COMM_STATE__A, 0),
7328c2ecf20Sopenharmony_ci
7338c2ecf20Sopenharmony_ci#ifdef COMPILE_FOR_QT
7348c2ecf20Sopenharmony_ci	WR16(SC_RA_RAM_BE_OPT_DELAY__A, 0x100),
7358c2ecf20Sopenharmony_ci#endif
7368c2ecf20Sopenharmony_ci
7378c2ecf20Sopenharmony_ci	/* SC is not started, this is done in SetChannels() */
7388c2ecf20Sopenharmony_ci	END_OF_TABLE
7398c2ecf20Sopenharmony_ci};
7408c2ecf20Sopenharmony_ci
7418c2ecf20Sopenharmony_ci/* Diversity settings */
7428c2ecf20Sopenharmony_ci
7438c2ecf20Sopenharmony_ciu8 DRXD_InitDiversityFront[] = {
7448c2ecf20Sopenharmony_ci	/* Start demod ********* RF in , diversity out **************************** */
7458c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_CONFIG__A, B_SC_RA_RAM_CONFIG_FR_ENABLE__M |
7468c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_CONFIG_FREQSCAN__M),
7478c2ecf20Sopenharmony_ci
7488c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_LC_ABS_2K__A, 0x7),
7498c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_LC_ABS_8K__A, 0x7),
7508c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_LENGTH__A, IRLEN_COARSE_8K),
7518c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_FREQINC__A, 1 << (11 - IRLEN_COARSE_8K)),
7528c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_KAISINC__A, 1 << (17 - IRLEN_COARSE_8K)),
7538c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_LENGTH__A, IRLEN_FINE_8K),
7548c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_FREQINC__A, 1 << (11 - IRLEN_FINE_8K)),
7558c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_KAISINC__A, 1 << (17 - IRLEN_FINE_8K)),
7568c2ecf20Sopenharmony_ci
7578c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_LENGTH__A, IRLEN_COARSE_2K),
7588c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_FREQINC__A, 1 << (11 - IRLEN_COARSE_2K)),
7598c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_KAISINC__A, 1 << (17 - IRLEN_COARSE_2K)),
7608c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_LENGTH__A, IRLEN_FINE_2K),
7618c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_FREQINC__A, 1 << (11 - IRLEN_FINE_2K)),
7628c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_KAISINC__A, 1 << (17 - IRLEN_FINE_2K)),
7638c2ecf20Sopenharmony_ci
7648c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_CRMM_A__A, 7),
7658c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_CRMM_B__A, 4),
7668c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SRMM_A__A, 7),
7678c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SRMM_B__A, 4),
7688c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SYM_SET__A, 500),
7698c2ecf20Sopenharmony_ci
7708c2ecf20Sopenharmony_ci	WR16(B_CC_REG_DIVERSITY__A, 0x0001),
7718c2ecf20Sopenharmony_ci	WR16(B_EC_OC_REG_OC_MODE_HIP__A, 0x0010),
7728c2ecf20Sopenharmony_ci	WR16(B_EQ_REG_RC_SEL_CAR__A, B_EQ_REG_RC_SEL_CAR_PASS_B_CE |
7738c2ecf20Sopenharmony_ci	     B_EQ_REG_RC_SEL_CAR_LOCAL_B_CE | B_EQ_REG_RC_SEL_CAR_MEAS_B_CE),
7748c2ecf20Sopenharmony_ci
7758c2ecf20Sopenharmony_ci	/*    0x2a ), *//* CE to PASS mux */
7768c2ecf20Sopenharmony_ci
7778c2ecf20Sopenharmony_ci	END_OF_TABLE
7788c2ecf20Sopenharmony_ci};
7798c2ecf20Sopenharmony_ci
7808c2ecf20Sopenharmony_ciu8 DRXD_InitDiversityEnd[] = {
7818c2ecf20Sopenharmony_ci	/* End demod *********** combining RF in and diversity in, MPEG TS out **** */
7828c2ecf20Sopenharmony_ci	/* disable near/far; switch on timing slave mode */
7838c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_CONFIG__A, B_SC_RA_RAM_CONFIG_FR_ENABLE__M |
7848c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_CONFIG_FREQSCAN__M |
7858c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_CONFIG_DIV_ECHO_ENABLE__M |
7868c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_CONFIG_SLAVE__M |
7878c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_CONFIG_DIV_BLANK_ENABLE__M
7888c2ecf20Sopenharmony_ci/* MV from CtrlDiversity */
7898c2ecf20Sopenharmony_ci	    ),
7908c2ecf20Sopenharmony_ci#ifdef DRXDDIV_SRMM_SLAVING
7918c2ecf20Sopenharmony_ci	WR16(SC_RA_RAM_LC_ABS_2K__A, 0x3c7),
7928c2ecf20Sopenharmony_ci	WR16(SC_RA_RAM_LC_ABS_8K__A, 0x3c7),
7938c2ecf20Sopenharmony_ci#else
7948c2ecf20Sopenharmony_ci	WR16(SC_RA_RAM_LC_ABS_2K__A, 0x7),
7958c2ecf20Sopenharmony_ci	WR16(SC_RA_RAM_LC_ABS_8K__A, 0x7),
7968c2ecf20Sopenharmony_ci#endif
7978c2ecf20Sopenharmony_ci
7988c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_LENGTH__A, IRLEN_COARSE_8K),
7998c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_FREQINC__A, 1 << (11 - IRLEN_COARSE_8K)),
8008c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_KAISINC__A, 1 << (17 - IRLEN_COARSE_8K)),
8018c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_LENGTH__A, IRLEN_FINE_8K),
8028c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_FREQINC__A, 1 << (11 - IRLEN_FINE_8K)),
8038c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_KAISINC__A, 1 << (17 - IRLEN_FINE_8K)),
8048c2ecf20Sopenharmony_ci
8058c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_LENGTH__A, IRLEN_COARSE_2K),
8068c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_FREQINC__A, 1 << (11 - IRLEN_COARSE_2K)),
8078c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_KAISINC__A, 1 << (17 - IRLEN_COARSE_2K)),
8088c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_LENGTH__A, IRLEN_FINE_2K),
8098c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_FREQINC__A, 1 << (11 - IRLEN_FINE_2K)),
8108c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_KAISINC__A, 1 << (17 - IRLEN_FINE_2K)),
8118c2ecf20Sopenharmony_ci
8128c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_CRMM_A__A, 7),
8138c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_CRMM_B__A, 4),
8148c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SRMM_A__A, 7),
8158c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SRMM_B__A, 4),
8168c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SYM_SET__A, 500),
8178c2ecf20Sopenharmony_ci
8188c2ecf20Sopenharmony_ci	WR16(B_CC_REG_DIVERSITY__A, 0x0001),
8198c2ecf20Sopenharmony_ci	END_OF_TABLE
8208c2ecf20Sopenharmony_ci};
8218c2ecf20Sopenharmony_ci
8228c2ecf20Sopenharmony_ciu8 DRXD_DisableDiversity[] = {
8238c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_LC_ABS_2K__A, B_SC_RA_RAM_LC_ABS_2K__PRE),
8248c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_LC_ABS_8K__A, B_SC_RA_RAM_LC_ABS_8K__PRE),
8258c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_LENGTH__A,
8268c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_COARSE_8K_LENGTH__PRE),
8278c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_FREQINC__A,
8288c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_COARSE_8K_FREQINC__PRE),
8298c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_8K_KAISINC__A,
8308c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_COARSE_8K_KAISINC__PRE),
8318c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_LENGTH__A,
8328c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_FINE_8K_LENGTH__PRE),
8338c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_FREQINC__A,
8348c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_FINE_8K_FREQINC__PRE),
8358c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_8K_KAISINC__A,
8368c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_FINE_8K_KAISINC__PRE),
8378c2ecf20Sopenharmony_ci
8388c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_LENGTH__A,
8398c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_COARSE_2K_LENGTH__PRE),
8408c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_FREQINC__A,
8418c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_COARSE_2K_FREQINC__PRE),
8428c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_COARSE_2K_KAISINC__A,
8438c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_COARSE_2K_KAISINC__PRE),
8448c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_LENGTH__A,
8458c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_FINE_2K_LENGTH__PRE),
8468c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_FREQINC__A,
8478c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_FINE_2K_FREQINC__PRE),
8488c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_IR_FINE_2K_KAISINC__A,
8498c2ecf20Sopenharmony_ci	     B_SC_RA_RAM_IR_FINE_2K_KAISINC__PRE),
8508c2ecf20Sopenharmony_ci
8518c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_CRMM_A__A, B_LC_RA_RAM_FILTER_CRMM_A__PRE),
8528c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_CRMM_B__A, B_LC_RA_RAM_FILTER_CRMM_B__PRE),
8538c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SRMM_A__A, B_LC_RA_RAM_FILTER_SRMM_A__PRE),
8548c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SRMM_B__A, B_LC_RA_RAM_FILTER_SRMM_B__PRE),
8558c2ecf20Sopenharmony_ci	WR16(B_LC_RA_RAM_FILTER_SYM_SET__A, B_LC_RA_RAM_FILTER_SYM_SET__PRE),
8568c2ecf20Sopenharmony_ci
8578c2ecf20Sopenharmony_ci	WR16(B_CC_REG_DIVERSITY__A, 0x0000),
8588c2ecf20Sopenharmony_ci	WR16(B_EQ_REG_RC_SEL_CAR__A, B_EQ_REG_RC_SEL_CAR_INIT),	/* combining disabled */
8598c2ecf20Sopenharmony_ci
8608c2ecf20Sopenharmony_ci	END_OF_TABLE
8618c2ecf20Sopenharmony_ci};
8628c2ecf20Sopenharmony_ci
8638c2ecf20Sopenharmony_ciu8 DRXD_StartDiversityFront[] = {
8648c2ecf20Sopenharmony_ci	/* Start demod, RF in and diversity out, no combining */
8658c2ecf20Sopenharmony_ci	WR16(B_FE_CF_REG_IMP_VAL__A, 0x0),
8668c2ecf20Sopenharmony_ci	WR16(B_FE_AD_REG_FDB_IN__A, 0x0),
8678c2ecf20Sopenharmony_ci	WR16(B_FE_AD_REG_INVEXT__A, 0x0),
8688c2ecf20Sopenharmony_ci	WR16(B_EQ_REG_COMM_MB__A, 0x12),	/* EQ to MB out */
8698c2ecf20Sopenharmony_ci	WR16(B_EQ_REG_RC_SEL_CAR__A, B_EQ_REG_RC_SEL_CAR_PASS_B_CE |	/* CE to PASS mux */
8708c2ecf20Sopenharmony_ci	     B_EQ_REG_RC_SEL_CAR_LOCAL_B_CE | B_EQ_REG_RC_SEL_CAR_MEAS_B_CE),
8718c2ecf20Sopenharmony_ci
8728c2ecf20Sopenharmony_ci	WR16(SC_RA_RAM_ECHO_SHIFT_LIM__A, 2),
8738c2ecf20Sopenharmony_ci
8748c2ecf20Sopenharmony_ci	END_OF_TABLE
8758c2ecf20Sopenharmony_ci};
8768c2ecf20Sopenharmony_ci
8778c2ecf20Sopenharmony_ciu8 DRXD_StartDiversityEnd[] = {
8788c2ecf20Sopenharmony_ci	/* End demod, combining RF in and diversity in, MPEG TS out */
8798c2ecf20Sopenharmony_ci	WR16(B_FE_CF_REG_IMP_VAL__A, 0x0),	/* disable impulse noise cruncher */
8808c2ecf20Sopenharmony_ci	WR16(B_FE_AD_REG_INVEXT__A, 0x0),	/* clock inversion (for sohard board) */
8818c2ecf20Sopenharmony_ci	WR16(B_CP_REG_BR_STR_DEL__A, 10),	/* apparently no mb delay matching is best */
8828c2ecf20Sopenharmony_ci
8838c2ecf20Sopenharmony_ci	WR16(B_EQ_REG_RC_SEL_CAR__A, B_EQ_REG_RC_SEL_CAR_DIV_ON |	/* org = 0x81 combining enabled */
8848c2ecf20Sopenharmony_ci	     B_EQ_REG_RC_SEL_CAR_MEAS_A_CC |
8858c2ecf20Sopenharmony_ci	     B_EQ_REG_RC_SEL_CAR_PASS_A_CC | B_EQ_REG_RC_SEL_CAR_LOCAL_A_CC),
8868c2ecf20Sopenharmony_ci
8878c2ecf20Sopenharmony_ci	END_OF_TABLE
8888c2ecf20Sopenharmony_ci};
8898c2ecf20Sopenharmony_ci
8908c2ecf20Sopenharmony_ciu8 DRXD_DiversityDelay8MHZ[] = {
8918c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_32__A, 1150 - 50),
8928c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_16__A, 1100 - 50),
8938c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_8__A, 1000 - 50),
8948c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_4__A, 800 - 50),
8958c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_32__A, 5420 - 50),
8968c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_16__A, 5200 - 50),
8978c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_8__A, 4800 - 50),
8988c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_4__A, 4000 - 50),
8998c2ecf20Sopenharmony_ci	END_OF_TABLE
9008c2ecf20Sopenharmony_ci};
9018c2ecf20Sopenharmony_ci
9028c2ecf20Sopenharmony_ciu8 DRXD_DiversityDelay6MHZ[] =	/* also used ok for 7 MHz */
9038c2ecf20Sopenharmony_ci{
9048c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_32__A, 1100 - 50),
9058c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_16__A, 1000 - 50),
9068c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_8__A, 900 - 50),
9078c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_2K_4__A, 600 - 50),
9088c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_32__A, 5300 - 50),
9098c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_16__A, 5000 - 50),
9108c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_8__A, 4500 - 50),
9118c2ecf20Sopenharmony_ci	WR16(B_SC_RA_RAM_DIVERSITY_DELAY_8K_4__A, 3500 - 50),
9128c2ecf20Sopenharmony_ci	END_OF_TABLE
9138c2ecf20Sopenharmony_ci};
914