18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for the Conexant CX25821 PCIe bridge 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2009 Conexant Systems Inc. 68c2ecf20Sopenharmony_ci * Authors <shu.lin@conexant.com>, <hiep.huynh@conexant.com> 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef __MEDUSA_REGISTERS__ 108c2ecf20Sopenharmony_ci#define __MEDUSA_REGISTERS__ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* Serial Slave Registers */ 138c2ecf20Sopenharmony_ci#define HOST_REGISTER1 0x0000 148c2ecf20Sopenharmony_ci#define HOST_REGISTER2 0x0001 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* Chip Configuration Registers */ 178c2ecf20Sopenharmony_ci#define CHIP_CTRL 0x0100 188c2ecf20Sopenharmony_ci#define AFE_AB_CTRL 0x0104 198c2ecf20Sopenharmony_ci#define AFE_CD_CTRL 0x0108 208c2ecf20Sopenharmony_ci#define AFE_EF_CTRL 0x010C 218c2ecf20Sopenharmony_ci#define AFE_GH_CTRL 0x0110 228c2ecf20Sopenharmony_ci#define DENC_AB_CTRL 0x0114 238c2ecf20Sopenharmony_ci#define BYP_AB_CTRL 0x0118 248c2ecf20Sopenharmony_ci#define MON_A_CTRL 0x011C 258c2ecf20Sopenharmony_ci#define DISP_SEQ_A 0x0120 268c2ecf20Sopenharmony_ci#define DISP_SEQ_B 0x0124 278c2ecf20Sopenharmony_ci#define DISP_AB_CNT 0x0128 288c2ecf20Sopenharmony_ci#define DISP_CD_CNT 0x012C 298c2ecf20Sopenharmony_ci#define DISP_EF_CNT 0x0130 308c2ecf20Sopenharmony_ci#define DISP_GH_CNT 0x0134 318c2ecf20Sopenharmony_ci#define DISP_IJ_CNT 0x0138 328c2ecf20Sopenharmony_ci#define PIN_OE_CTRL 0x013C 338c2ecf20Sopenharmony_ci#define PIN_SPD_CTRL 0x0140 348c2ecf20Sopenharmony_ci#define PIN_SPD_CTRL2 0x0144 358c2ecf20Sopenharmony_ci#define IRQ_STAT_CTRL 0x0148 368c2ecf20Sopenharmony_ci#define POWER_CTRL_AB 0x014C 378c2ecf20Sopenharmony_ci#define POWER_CTRL_CD 0x0150 388c2ecf20Sopenharmony_ci#define POWER_CTRL_EF 0x0154 398c2ecf20Sopenharmony_ci#define POWER_CTRL_GH 0x0158 408c2ecf20Sopenharmony_ci#define TUNE_CTRL 0x015C 418c2ecf20Sopenharmony_ci#define BIAS_CTRL 0x0160 428c2ecf20Sopenharmony_ci#define AFE_AB_DIAG_CTRL 0x0164 438c2ecf20Sopenharmony_ci#define AFE_CD_DIAG_CTRL 0x0168 448c2ecf20Sopenharmony_ci#define AFE_EF_DIAG_CTRL 0x016C 458c2ecf20Sopenharmony_ci#define AFE_GH_DIAG_CTRL 0x0170 468c2ecf20Sopenharmony_ci#define PLL_AB_DIAG_CTRL 0x0174 478c2ecf20Sopenharmony_ci#define PLL_CD_DIAG_CTRL 0x0178 488c2ecf20Sopenharmony_ci#define PLL_EF_DIAG_CTRL 0x017C 498c2ecf20Sopenharmony_ci#define PLL_GH_DIAG_CTRL 0x0180 508c2ecf20Sopenharmony_ci#define TEST_CTRL 0x0184 518c2ecf20Sopenharmony_ci#define BIST_STAT 0x0188 528c2ecf20Sopenharmony_ci#define BIST_STAT2 0x018C 538c2ecf20Sopenharmony_ci#define BIST_VID_PLL_AB_STAT 0x0190 548c2ecf20Sopenharmony_ci#define BIST_VID_PLL_CD_STAT 0x0194 558c2ecf20Sopenharmony_ci#define BIST_VID_PLL_EF_STAT 0x0198 568c2ecf20Sopenharmony_ci#define BIST_VID_PLL_GH_STAT 0x019C 578c2ecf20Sopenharmony_ci#define DLL_DIAG_CTRL 0x01A0 588c2ecf20Sopenharmony_ci#define DEV_CH_ID_CTRL 0x01A4 598c2ecf20Sopenharmony_ci#define ABIST_CTRL_STATUS 0x01A8 608c2ecf20Sopenharmony_ci#define ABIST_FREQ 0x01AC 618c2ecf20Sopenharmony_ci#define ABIST_GOERT_SHIFT 0x01B0 628c2ecf20Sopenharmony_ci#define ABIST_COEF12 0x01B4 638c2ecf20Sopenharmony_ci#define ABIST_COEF34 0x01B8 648c2ecf20Sopenharmony_ci#define ABIST_COEF56 0x01BC 658c2ecf20Sopenharmony_ci#define ABIST_COEF7_SNR 0x01C0 668c2ecf20Sopenharmony_ci#define ABIST_ADC_CAL 0x01C4 678c2ecf20Sopenharmony_ci#define ABIST_BIN1_VGA0 0x01C8 688c2ecf20Sopenharmony_ci#define ABIST_BIN2_VGA1 0x01CC 698c2ecf20Sopenharmony_ci#define ABIST_BIN3_VGA2 0x01D0 708c2ecf20Sopenharmony_ci#define ABIST_BIN4_VGA3 0x01D4 718c2ecf20Sopenharmony_ci#define ABIST_BIN5_VGA4 0x01D8 728c2ecf20Sopenharmony_ci#define ABIST_BIN6_VGA5 0x01DC 738c2ecf20Sopenharmony_ci#define ABIST_BIN7_VGA6 0x01E0 748c2ecf20Sopenharmony_ci#define ABIST_CLAMP_A 0x01E4 758c2ecf20Sopenharmony_ci#define ABIST_CLAMP_B 0x01E8 768c2ecf20Sopenharmony_ci#define ABIST_CLAMP_C 0x01EC 778c2ecf20Sopenharmony_ci#define ABIST_CLAMP_D 0x01F0 788c2ecf20Sopenharmony_ci#define ABIST_CLAMP_E 0x01F4 798c2ecf20Sopenharmony_ci#define ABIST_CLAMP_F 0x01F8 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci/* Digital Video Encoder A Registers */ 828c2ecf20Sopenharmony_ci#define DENC_A_REG_1 0x0200 838c2ecf20Sopenharmony_ci#define DENC_A_REG_2 0x0204 848c2ecf20Sopenharmony_ci#define DENC_A_REG_3 0x0208 858c2ecf20Sopenharmony_ci#define DENC_A_REG_4 0x020C 868c2ecf20Sopenharmony_ci#define DENC_A_REG_5 0x0210 878c2ecf20Sopenharmony_ci#define DENC_A_REG_6 0x0214 888c2ecf20Sopenharmony_ci#define DENC_A_REG_7 0x0218 898c2ecf20Sopenharmony_ci#define DENC_A_REG_8 0x021C 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ci/* Digital Video Encoder B Registers */ 928c2ecf20Sopenharmony_ci#define DENC_B_REG_1 0x0300 938c2ecf20Sopenharmony_ci#define DENC_B_REG_2 0x0304 948c2ecf20Sopenharmony_ci#define DENC_B_REG_3 0x0308 958c2ecf20Sopenharmony_ci#define DENC_B_REG_4 0x030C 968c2ecf20Sopenharmony_ci#define DENC_B_REG_5 0x0310 978c2ecf20Sopenharmony_ci#define DENC_B_REG_6 0x0314 988c2ecf20Sopenharmony_ci#define DENC_B_REG_7 0x0318 998c2ecf20Sopenharmony_ci#define DENC_B_REG_8 0x031C 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci/* Video Decoder A Registers */ 1028c2ecf20Sopenharmony_ci#define MODE_CTRL 0x1000 1038c2ecf20Sopenharmony_ci#define OUT_CTRL1 0x1004 1048c2ecf20Sopenharmony_ci#define OUT_CTRL_NS 0x1008 1058c2ecf20Sopenharmony_ci#define GEN_STAT 0x100C 1068c2ecf20Sopenharmony_ci#define INT_STAT_MASK 0x1010 1078c2ecf20Sopenharmony_ci#define LUMA_CTRL 0x1014 1088c2ecf20Sopenharmony_ci#define CHROMA_CTRL 0x1018 1098c2ecf20Sopenharmony_ci#define CRUSH_CTRL 0x101C 1108c2ecf20Sopenharmony_ci#define HORIZ_TIM_CTRL 0x1020 1118c2ecf20Sopenharmony_ci#define VERT_TIM_CTRL 0x1024 1128c2ecf20Sopenharmony_ci#define MISC_TIM_CTRL 0x1028 1138c2ecf20Sopenharmony_ci#define FIELD_COUNT 0x102C 1148c2ecf20Sopenharmony_ci#define HSCALE_CTRL 0x1030 1158c2ecf20Sopenharmony_ci#define VSCALE_CTRL 0x1034 1168c2ecf20Sopenharmony_ci#define MAN_VGA_CTRL 0x1038 1178c2ecf20Sopenharmony_ci#define MAN_AGC_CTRL 0x103C 1188c2ecf20Sopenharmony_ci#define DFE_CTRL1 0x1040 1198c2ecf20Sopenharmony_ci#define DFE_CTRL2 0x1044 1208c2ecf20Sopenharmony_ci#define DFE_CTRL3 0x1048 1218c2ecf20Sopenharmony_ci#define PLL_CTRL 0x104C 1228c2ecf20Sopenharmony_ci#define PLL_CTRL_FAST 0x1050 1238c2ecf20Sopenharmony_ci#define HTL_CTRL 0x1054 1248c2ecf20Sopenharmony_ci#define SRC_CFG 0x1058 1258c2ecf20Sopenharmony_ci#define SC_STEP_SIZE 0x105C 1268c2ecf20Sopenharmony_ci#define SC_CONVERGE_CTRL 0x1060 1278c2ecf20Sopenharmony_ci#define SC_LOOP_CTRL 0x1064 1288c2ecf20Sopenharmony_ci#define COMB_2D_HFS_CFG 0x1068 1298c2ecf20Sopenharmony_ci#define COMB_2D_HFD_CFG 0x106C 1308c2ecf20Sopenharmony_ci#define COMB_2D_LF_CFG 0x1070 1318c2ecf20Sopenharmony_ci#define COMB_2D_BLEND 0x1074 1328c2ecf20Sopenharmony_ci#define COMB_MISC_CTRL 0x1078 1338c2ecf20Sopenharmony_ci#define COMB_FLAT_THRESH_CTRL 0x107C 1348c2ecf20Sopenharmony_ci#define COMB_TEST 0x1080 1358c2ecf20Sopenharmony_ci#define BP_MISC_CTRL 0x1084 1368c2ecf20Sopenharmony_ci#define VCR_DET_CTRL 0x1088 1378c2ecf20Sopenharmony_ci#define NOISE_DET_CTRL 0x108C 1388c2ecf20Sopenharmony_ci#define COMB_FLAT_NOISE_CTRL 0x1090 1398c2ecf20Sopenharmony_ci#define VERSION 0x11F8 1408c2ecf20Sopenharmony_ci#define SOFT_RST_CTRL 0x11FC 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ci/* Video Decoder B Registers */ 1438c2ecf20Sopenharmony_ci#define VDEC_B_MODE_CTRL 0x1200 1448c2ecf20Sopenharmony_ci#define VDEC_B_OUT_CTRL1 0x1204 1458c2ecf20Sopenharmony_ci#define VDEC_B_OUT_CTRL_NS 0x1208 1468c2ecf20Sopenharmony_ci#define VDEC_B_GEN_STAT 0x120C 1478c2ecf20Sopenharmony_ci#define VDEC_B_INT_STAT_MASK 0x1210 1488c2ecf20Sopenharmony_ci#define VDEC_B_LUMA_CTRL 0x1214 1498c2ecf20Sopenharmony_ci#define VDEC_B_CHROMA_CTRL 0x1218 1508c2ecf20Sopenharmony_ci#define VDEC_B_CRUSH_CTRL 0x121C 1518c2ecf20Sopenharmony_ci#define VDEC_B_HORIZ_TIM_CTRL 0x1220 1528c2ecf20Sopenharmony_ci#define VDEC_B_VERT_TIM_CTRL 0x1224 1538c2ecf20Sopenharmony_ci#define VDEC_B_MISC_TIM_CTRL 0x1228 1548c2ecf20Sopenharmony_ci#define VDEC_B_FIELD_COUNT 0x122C 1558c2ecf20Sopenharmony_ci#define VDEC_B_HSCALE_CTRL 0x1230 1568c2ecf20Sopenharmony_ci#define VDEC_B_VSCALE_CTRL 0x1234 1578c2ecf20Sopenharmony_ci#define VDEC_B_MAN_VGA_CTRL 0x1238 1588c2ecf20Sopenharmony_ci#define VDEC_B_MAN_AGC_CTRL 0x123C 1598c2ecf20Sopenharmony_ci#define VDEC_B_DFE_CTRL1 0x1240 1608c2ecf20Sopenharmony_ci#define VDEC_B_DFE_CTRL2 0x1244 1618c2ecf20Sopenharmony_ci#define VDEC_B_DFE_CTRL3 0x1248 1628c2ecf20Sopenharmony_ci#define VDEC_B_PLL_CTRL 0x124C 1638c2ecf20Sopenharmony_ci#define VDEC_B_PLL_CTRL_FAST 0x1250 1648c2ecf20Sopenharmony_ci#define VDEC_B_HTL_CTRL 0x1254 1658c2ecf20Sopenharmony_ci#define VDEC_B_SRC_CFG 0x1258 1668c2ecf20Sopenharmony_ci#define VDEC_B_SC_STEP_SIZE 0x125C 1678c2ecf20Sopenharmony_ci#define VDEC_B_SC_CONVERGE_CTRL 0x1260 1688c2ecf20Sopenharmony_ci#define VDEC_B_SC_LOOP_CTRL 0x1264 1698c2ecf20Sopenharmony_ci#define VDEC_B_COMB_2D_HFS_CFG 0x1268 1708c2ecf20Sopenharmony_ci#define VDEC_B_COMB_2D_HFD_CFG 0x126C 1718c2ecf20Sopenharmony_ci#define VDEC_B_COMB_2D_LF_CFG 0x1270 1728c2ecf20Sopenharmony_ci#define VDEC_B_COMB_2D_BLEND 0x1274 1738c2ecf20Sopenharmony_ci#define VDEC_B_COMB_MISC_CTRL 0x1278 1748c2ecf20Sopenharmony_ci#define VDEC_B_COMB_FLAT_THRESH_CTRL 0x127C 1758c2ecf20Sopenharmony_ci#define VDEC_B_COMB_TEST 0x1280 1768c2ecf20Sopenharmony_ci#define VDEC_B_BP_MISC_CTRL 0x1284 1778c2ecf20Sopenharmony_ci#define VDEC_B_VCR_DET_CTRL 0x1288 1788c2ecf20Sopenharmony_ci#define VDEC_B_NOISE_DET_CTRL 0x128C 1798c2ecf20Sopenharmony_ci#define VDEC_B_COMB_FLAT_NOISE_CTRL 0x1290 1808c2ecf20Sopenharmony_ci#define VDEC_B_VERSION 0x13F8 1818c2ecf20Sopenharmony_ci#define VDEC_B_SOFT_RST_CTRL 0x13FC 1828c2ecf20Sopenharmony_ci 1838c2ecf20Sopenharmony_ci/* Video Decoder C Registers */ 1848c2ecf20Sopenharmony_ci#define VDEC_C_MODE_CTRL 0x1400 1858c2ecf20Sopenharmony_ci#define VDEC_C_OUT_CTRL1 0x1404 1868c2ecf20Sopenharmony_ci#define VDEC_C_OUT_CTRL_NS 0x1408 1878c2ecf20Sopenharmony_ci#define VDEC_C_GEN_STAT 0x140C 1888c2ecf20Sopenharmony_ci#define VDEC_C_INT_STAT_MASK 0x1410 1898c2ecf20Sopenharmony_ci#define VDEC_C_LUMA_CTRL 0x1414 1908c2ecf20Sopenharmony_ci#define VDEC_C_CHROMA_CTRL 0x1418 1918c2ecf20Sopenharmony_ci#define VDEC_C_CRUSH_CTRL 0x141C 1928c2ecf20Sopenharmony_ci#define VDEC_C_HORIZ_TIM_CTRL 0x1420 1938c2ecf20Sopenharmony_ci#define VDEC_C_VERT_TIM_CTRL 0x1424 1948c2ecf20Sopenharmony_ci#define VDEC_C_MISC_TIM_CTRL 0x1428 1958c2ecf20Sopenharmony_ci#define VDEC_C_FIELD_COUNT 0x142C 1968c2ecf20Sopenharmony_ci#define VDEC_C_HSCALE_CTRL 0x1430 1978c2ecf20Sopenharmony_ci#define VDEC_C_VSCALE_CTRL 0x1434 1988c2ecf20Sopenharmony_ci#define VDEC_C_MAN_VGA_CTRL 0x1438 1998c2ecf20Sopenharmony_ci#define VDEC_C_MAN_AGC_CTRL 0x143C 2008c2ecf20Sopenharmony_ci#define VDEC_C_DFE_CTRL1 0x1440 2018c2ecf20Sopenharmony_ci#define VDEC_C_DFE_CTRL2 0x1444 2028c2ecf20Sopenharmony_ci#define VDEC_C_DFE_CTRL3 0x1448 2038c2ecf20Sopenharmony_ci#define VDEC_C_PLL_CTRL 0x144C 2048c2ecf20Sopenharmony_ci#define VDEC_C_PLL_CTRL_FAST 0x1450 2058c2ecf20Sopenharmony_ci#define VDEC_C_HTL_CTRL 0x1454 2068c2ecf20Sopenharmony_ci#define VDEC_C_SRC_CFG 0x1458 2078c2ecf20Sopenharmony_ci#define VDEC_C_SC_STEP_SIZE 0x145C 2088c2ecf20Sopenharmony_ci#define VDEC_C_SC_CONVERGE_CTRL 0x1460 2098c2ecf20Sopenharmony_ci#define VDEC_C_SC_LOOP_CTRL 0x1464 2108c2ecf20Sopenharmony_ci#define VDEC_C_COMB_2D_HFS_CFG 0x1468 2118c2ecf20Sopenharmony_ci#define VDEC_C_COMB_2D_HFD_CFG 0x146C 2128c2ecf20Sopenharmony_ci#define VDEC_C_COMB_2D_LF_CFG 0x1470 2138c2ecf20Sopenharmony_ci#define VDEC_C_COMB_2D_BLEND 0x1474 2148c2ecf20Sopenharmony_ci#define VDEC_C_COMB_MISC_CTRL 0x1478 2158c2ecf20Sopenharmony_ci#define VDEC_C_COMB_FLAT_THRESH_CTRL 0x147C 2168c2ecf20Sopenharmony_ci#define VDEC_C_COMB_TEST 0x1480 2178c2ecf20Sopenharmony_ci#define VDEC_C_BP_MISC_CTRL 0x1484 2188c2ecf20Sopenharmony_ci#define VDEC_C_VCR_DET_CTRL 0x1488 2198c2ecf20Sopenharmony_ci#define VDEC_C_NOISE_DET_CTRL 0x148C 2208c2ecf20Sopenharmony_ci#define VDEC_C_COMB_FLAT_NOISE_CTRL 0x1490 2218c2ecf20Sopenharmony_ci#define VDEC_C_VERSION 0x15F8 2228c2ecf20Sopenharmony_ci#define VDEC_C_SOFT_RST_CTRL 0x15FC 2238c2ecf20Sopenharmony_ci 2248c2ecf20Sopenharmony_ci/* Video Decoder D Registers */ 2258c2ecf20Sopenharmony_ci#define VDEC_D_MODE_CTRL 0x1600 2268c2ecf20Sopenharmony_ci#define VDEC_D_OUT_CTRL1 0x1604 2278c2ecf20Sopenharmony_ci#define VDEC_D_OUT_CTRL_NS 0x1608 2288c2ecf20Sopenharmony_ci#define VDEC_D_GEN_STAT 0x160C 2298c2ecf20Sopenharmony_ci#define VDEC_D_INT_STAT_MASK 0x1610 2308c2ecf20Sopenharmony_ci#define VDEC_D_LUMA_CTRL 0x1614 2318c2ecf20Sopenharmony_ci#define VDEC_D_CHROMA_CTRL 0x1618 2328c2ecf20Sopenharmony_ci#define VDEC_D_CRUSH_CTRL 0x161C 2338c2ecf20Sopenharmony_ci#define VDEC_D_HORIZ_TIM_CTRL 0x1620 2348c2ecf20Sopenharmony_ci#define VDEC_D_VERT_TIM_CTRL 0x1624 2358c2ecf20Sopenharmony_ci#define VDEC_D_MISC_TIM_CTRL 0x1628 2368c2ecf20Sopenharmony_ci#define VDEC_D_FIELD_COUNT 0x162C 2378c2ecf20Sopenharmony_ci#define VDEC_D_HSCALE_CTRL 0x1630 2388c2ecf20Sopenharmony_ci#define VDEC_D_VSCALE_CTRL 0x1634 2398c2ecf20Sopenharmony_ci#define VDEC_D_MAN_VGA_CTRL 0x1638 2408c2ecf20Sopenharmony_ci#define VDEC_D_MAN_AGC_CTRL 0x163C 2418c2ecf20Sopenharmony_ci#define VDEC_D_DFE_CTRL1 0x1640 2428c2ecf20Sopenharmony_ci#define VDEC_D_DFE_CTRL2 0x1644 2438c2ecf20Sopenharmony_ci#define VDEC_D_DFE_CTRL3 0x1648 2448c2ecf20Sopenharmony_ci#define VDEC_D_PLL_CTRL 0x164C 2458c2ecf20Sopenharmony_ci#define VDEC_D_PLL_CTRL_FAST 0x1650 2468c2ecf20Sopenharmony_ci#define VDEC_D_HTL_CTRL 0x1654 2478c2ecf20Sopenharmony_ci#define VDEC_D_SRC_CFG 0x1658 2488c2ecf20Sopenharmony_ci#define VDEC_D_SC_STEP_SIZE 0x165C 2498c2ecf20Sopenharmony_ci#define VDEC_D_SC_CONVERGE_CTRL 0x1660 2508c2ecf20Sopenharmony_ci#define VDEC_D_SC_LOOP_CTRL 0x1664 2518c2ecf20Sopenharmony_ci#define VDEC_D_COMB_2D_HFS_CFG 0x1668 2528c2ecf20Sopenharmony_ci#define VDEC_D_COMB_2D_HFD_CFG 0x166C 2538c2ecf20Sopenharmony_ci#define VDEC_D_COMB_2D_LF_CFG 0x1670 2548c2ecf20Sopenharmony_ci#define VDEC_D_COMB_2D_BLEND 0x1674 2558c2ecf20Sopenharmony_ci#define VDEC_D_COMB_MISC_CTRL 0x1678 2568c2ecf20Sopenharmony_ci#define VDEC_D_COMB_FLAT_THRESH_CTRL 0x167C 2578c2ecf20Sopenharmony_ci#define VDEC_D_COMB_TEST 0x1680 2588c2ecf20Sopenharmony_ci#define VDEC_D_BP_MISC_CTRL 0x1684 2598c2ecf20Sopenharmony_ci#define VDEC_D_VCR_DET_CTRL 0x1688 2608c2ecf20Sopenharmony_ci#define VDEC_D_NOISE_DET_CTRL 0x168C 2618c2ecf20Sopenharmony_ci#define VDEC_D_COMB_FLAT_NOISE_CTRL 0x1690 2628c2ecf20Sopenharmony_ci#define VDEC_D_VERSION 0x17F8 2638c2ecf20Sopenharmony_ci#define VDEC_D_SOFT_RST_CTRL 0x17FC 2648c2ecf20Sopenharmony_ci 2658c2ecf20Sopenharmony_ci/* Video Decoder E Registers */ 2668c2ecf20Sopenharmony_ci#define VDEC_E_MODE_CTRL 0x1800 2678c2ecf20Sopenharmony_ci#define VDEC_E_OUT_CTRL1 0x1804 2688c2ecf20Sopenharmony_ci#define VDEC_E_OUT_CTRL_NS 0x1808 2698c2ecf20Sopenharmony_ci#define VDEC_E_GEN_STAT 0x180C 2708c2ecf20Sopenharmony_ci#define VDEC_E_INT_STAT_MASK 0x1810 2718c2ecf20Sopenharmony_ci#define VDEC_E_LUMA_CTRL 0x1814 2728c2ecf20Sopenharmony_ci#define VDEC_E_CHROMA_CTRL 0x1818 2738c2ecf20Sopenharmony_ci#define VDEC_E_CRUSH_CTRL 0x181C 2748c2ecf20Sopenharmony_ci#define VDEC_E_HORIZ_TIM_CTRL 0x1820 2758c2ecf20Sopenharmony_ci#define VDEC_E_VERT_TIM_CTRL 0x1824 2768c2ecf20Sopenharmony_ci#define VDEC_E_MISC_TIM_CTRL 0x1828 2778c2ecf20Sopenharmony_ci#define VDEC_E_FIELD_COUNT 0x182C 2788c2ecf20Sopenharmony_ci#define VDEC_E_HSCALE_CTRL 0x1830 2798c2ecf20Sopenharmony_ci#define VDEC_E_VSCALE_CTRL 0x1834 2808c2ecf20Sopenharmony_ci#define VDEC_E_MAN_VGA_CTRL 0x1838 2818c2ecf20Sopenharmony_ci#define VDEC_E_MAN_AGC_CTRL 0x183C 2828c2ecf20Sopenharmony_ci#define VDEC_E_DFE_CTRL1 0x1840 2838c2ecf20Sopenharmony_ci#define VDEC_E_DFE_CTRL2 0x1844 2848c2ecf20Sopenharmony_ci#define VDEC_E_DFE_CTRL3 0x1848 2858c2ecf20Sopenharmony_ci#define VDEC_E_PLL_CTRL 0x184C 2868c2ecf20Sopenharmony_ci#define VDEC_E_PLL_CTRL_FAST 0x1850 2878c2ecf20Sopenharmony_ci#define VDEC_E_HTL_CTRL 0x1854 2888c2ecf20Sopenharmony_ci#define VDEC_E_SRC_CFG 0x1858 2898c2ecf20Sopenharmony_ci#define VDEC_E_SC_STEP_SIZE 0x185C 2908c2ecf20Sopenharmony_ci#define VDEC_E_SC_CONVERGE_CTRL 0x1860 2918c2ecf20Sopenharmony_ci#define VDEC_E_SC_LOOP_CTRL 0x1864 2928c2ecf20Sopenharmony_ci#define VDEC_E_COMB_2D_HFS_CFG 0x1868 2938c2ecf20Sopenharmony_ci#define VDEC_E_COMB_2D_HFD_CFG 0x186C 2948c2ecf20Sopenharmony_ci#define VDEC_E_COMB_2D_LF_CFG 0x1870 2958c2ecf20Sopenharmony_ci#define VDEC_E_COMB_2D_BLEND 0x1874 2968c2ecf20Sopenharmony_ci#define VDEC_E_COMB_MISC_CTRL 0x1878 2978c2ecf20Sopenharmony_ci#define VDEC_E_COMB_FLAT_THRESH_CTRL 0x187C 2988c2ecf20Sopenharmony_ci#define VDEC_E_COMB_TEST 0x1880 2998c2ecf20Sopenharmony_ci#define VDEC_E_BP_MISC_CTRL 0x1884 3008c2ecf20Sopenharmony_ci#define VDEC_E_VCR_DET_CTRL 0x1888 3018c2ecf20Sopenharmony_ci#define VDEC_E_NOISE_DET_CTRL 0x188C 3028c2ecf20Sopenharmony_ci#define VDEC_E_COMB_FLAT_NOISE_CTRL 0x1890 3038c2ecf20Sopenharmony_ci#define VDEC_E_VERSION 0x19F8 3048c2ecf20Sopenharmony_ci#define VDEC_E_SOFT_RST_CTRL 0x19FC 3058c2ecf20Sopenharmony_ci 3068c2ecf20Sopenharmony_ci/* Video Decoder F Registers */ 3078c2ecf20Sopenharmony_ci#define VDEC_F_MODE_CTRL 0x1A00 3088c2ecf20Sopenharmony_ci#define VDEC_F_OUT_CTRL1 0x1A04 3098c2ecf20Sopenharmony_ci#define VDEC_F_OUT_CTRL_NS 0x1A08 3108c2ecf20Sopenharmony_ci#define VDEC_F_GEN_STAT 0x1A0C 3118c2ecf20Sopenharmony_ci#define VDEC_F_INT_STAT_MASK 0x1A10 3128c2ecf20Sopenharmony_ci#define VDEC_F_LUMA_CTRL 0x1A14 3138c2ecf20Sopenharmony_ci#define VDEC_F_CHROMA_CTRL 0x1A18 3148c2ecf20Sopenharmony_ci#define VDEC_F_CRUSH_CTRL 0x1A1C 3158c2ecf20Sopenharmony_ci#define VDEC_F_HORIZ_TIM_CTRL 0x1A20 3168c2ecf20Sopenharmony_ci#define VDEC_F_VERT_TIM_CTRL 0x1A24 3178c2ecf20Sopenharmony_ci#define VDEC_F_MISC_TIM_CTRL 0x1A28 3188c2ecf20Sopenharmony_ci#define VDEC_F_FIELD_COUNT 0x1A2C 3198c2ecf20Sopenharmony_ci#define VDEC_F_HSCALE_CTRL 0x1A30 3208c2ecf20Sopenharmony_ci#define VDEC_F_VSCALE_CTRL 0x1A34 3218c2ecf20Sopenharmony_ci#define VDEC_F_MAN_VGA_CTRL 0x1A38 3228c2ecf20Sopenharmony_ci#define VDEC_F_MAN_AGC_CTRL 0x1A3C 3238c2ecf20Sopenharmony_ci#define VDEC_F_DFE_CTRL1 0x1A40 3248c2ecf20Sopenharmony_ci#define VDEC_F_DFE_CTRL2 0x1A44 3258c2ecf20Sopenharmony_ci#define VDEC_F_DFE_CTRL3 0x1A48 3268c2ecf20Sopenharmony_ci#define VDEC_F_PLL_CTRL 0x1A4C 3278c2ecf20Sopenharmony_ci#define VDEC_F_PLL_CTRL_FAST 0x1A50 3288c2ecf20Sopenharmony_ci#define VDEC_F_HTL_CTRL 0x1A54 3298c2ecf20Sopenharmony_ci#define VDEC_F_SRC_CFG 0x1A58 3308c2ecf20Sopenharmony_ci#define VDEC_F_SC_STEP_SIZE 0x1A5C 3318c2ecf20Sopenharmony_ci#define VDEC_F_SC_CONVERGE_CTRL 0x1A60 3328c2ecf20Sopenharmony_ci#define VDEC_F_SC_LOOP_CTRL 0x1A64 3338c2ecf20Sopenharmony_ci#define VDEC_F_COMB_2D_HFS_CFG 0x1A68 3348c2ecf20Sopenharmony_ci#define VDEC_F_COMB_2D_HFD_CFG 0x1A6C 3358c2ecf20Sopenharmony_ci#define VDEC_F_COMB_2D_LF_CFG 0x1A70 3368c2ecf20Sopenharmony_ci#define VDEC_F_COMB_2D_BLEND 0x1A74 3378c2ecf20Sopenharmony_ci#define VDEC_F_COMB_MISC_CTRL 0x1A78 3388c2ecf20Sopenharmony_ci#define VDEC_F_COMB_FLAT_THRESH_CTRL 0x1A7C 3398c2ecf20Sopenharmony_ci#define VDEC_F_COMB_TEST 0x1A80 3408c2ecf20Sopenharmony_ci#define VDEC_F_BP_MISC_CTRL 0x1A84 3418c2ecf20Sopenharmony_ci#define VDEC_F_VCR_DET_CTRL 0x1A88 3428c2ecf20Sopenharmony_ci#define VDEC_F_NOISE_DET_CTRL 0x1A8C 3438c2ecf20Sopenharmony_ci#define VDEC_F_COMB_FLAT_NOISE_CTRL 0x1A90 3448c2ecf20Sopenharmony_ci#define VDEC_F_VERSION 0x1BF8 3458c2ecf20Sopenharmony_ci#define VDEC_F_SOFT_RST_CTRL 0x1BFC 3468c2ecf20Sopenharmony_ci 3478c2ecf20Sopenharmony_ci/* Video Decoder G Registers */ 3488c2ecf20Sopenharmony_ci#define VDEC_G_MODE_CTRL 0x1C00 3498c2ecf20Sopenharmony_ci#define VDEC_G_OUT_CTRL1 0x1C04 3508c2ecf20Sopenharmony_ci#define VDEC_G_OUT_CTRL_NS 0x1C08 3518c2ecf20Sopenharmony_ci#define VDEC_G_GEN_STAT 0x1C0C 3528c2ecf20Sopenharmony_ci#define VDEC_G_INT_STAT_MASK 0x1C10 3538c2ecf20Sopenharmony_ci#define VDEC_G_LUMA_CTRL 0x1C14 3548c2ecf20Sopenharmony_ci#define VDEC_G_CHROMA_CTRL 0x1C18 3558c2ecf20Sopenharmony_ci#define VDEC_G_CRUSH_CTRL 0x1C1C 3568c2ecf20Sopenharmony_ci#define VDEC_G_HORIZ_TIM_CTRL 0x1C20 3578c2ecf20Sopenharmony_ci#define VDEC_G_VERT_TIM_CTRL 0x1C24 3588c2ecf20Sopenharmony_ci#define VDEC_G_MISC_TIM_CTRL 0x1C28 3598c2ecf20Sopenharmony_ci#define VDEC_G_FIELD_COUNT 0x1C2C 3608c2ecf20Sopenharmony_ci#define VDEC_G_HSCALE_CTRL 0x1C30 3618c2ecf20Sopenharmony_ci#define VDEC_G_VSCALE_CTRL 0x1C34 3628c2ecf20Sopenharmony_ci#define VDEC_G_MAN_VGA_CTRL 0x1C38 3638c2ecf20Sopenharmony_ci#define VDEC_G_MAN_AGC_CTRL 0x1C3C 3648c2ecf20Sopenharmony_ci#define VDEC_G_DFE_CTRL1 0x1C40 3658c2ecf20Sopenharmony_ci#define VDEC_G_DFE_CTRL2 0x1C44 3668c2ecf20Sopenharmony_ci#define VDEC_G_DFE_CTRL3 0x1C48 3678c2ecf20Sopenharmony_ci#define VDEC_G_PLL_CTRL 0x1C4C 3688c2ecf20Sopenharmony_ci#define VDEC_G_PLL_CTRL_FAST 0x1C50 3698c2ecf20Sopenharmony_ci#define VDEC_G_HTL_CTRL 0x1C54 3708c2ecf20Sopenharmony_ci#define VDEC_G_SRC_CFG 0x1C58 3718c2ecf20Sopenharmony_ci#define VDEC_G_SC_STEP_SIZE 0x1C5C 3728c2ecf20Sopenharmony_ci#define VDEC_G_SC_CONVERGE_CTRL 0x1C60 3738c2ecf20Sopenharmony_ci#define VDEC_G_SC_LOOP_CTRL 0x1C64 3748c2ecf20Sopenharmony_ci#define VDEC_G_COMB_2D_HFS_CFG 0x1C68 3758c2ecf20Sopenharmony_ci#define VDEC_G_COMB_2D_HFD_CFG 0x1C6C 3768c2ecf20Sopenharmony_ci#define VDEC_G_COMB_2D_LF_CFG 0x1C70 3778c2ecf20Sopenharmony_ci#define VDEC_G_COMB_2D_BLEND 0x1C74 3788c2ecf20Sopenharmony_ci#define VDEC_G_COMB_MISC_CTRL 0x1C78 3798c2ecf20Sopenharmony_ci#define VDEC_G_COMB_FLAT_THRESH_CTRL 0x1C7C 3808c2ecf20Sopenharmony_ci#define VDEC_G_COMB_TEST 0x1C80 3818c2ecf20Sopenharmony_ci#define VDEC_G_BP_MISC_CTRL 0x1C84 3828c2ecf20Sopenharmony_ci#define VDEC_G_VCR_DET_CTRL 0x1C88 3838c2ecf20Sopenharmony_ci#define VDEC_G_NOISE_DET_CTRL 0x1C8C 3848c2ecf20Sopenharmony_ci#define VDEC_G_COMB_FLAT_NOISE_CTRL 0x1C90 3858c2ecf20Sopenharmony_ci#define VDEC_G_VERSION 0x1DF8 3868c2ecf20Sopenharmony_ci#define VDEC_G_SOFT_RST_CTRL 0x1DFC 3878c2ecf20Sopenharmony_ci 3888c2ecf20Sopenharmony_ci/* Video Decoder H Registers */ 3898c2ecf20Sopenharmony_ci#define VDEC_H_MODE_CTRL 0x1E00 3908c2ecf20Sopenharmony_ci#define VDEC_H_OUT_CTRL1 0x1E04 3918c2ecf20Sopenharmony_ci#define VDEC_H_OUT_CTRL_NS 0x1E08 3928c2ecf20Sopenharmony_ci#define VDEC_H_GEN_STAT 0x1E0C 3938c2ecf20Sopenharmony_ci#define VDEC_H_INT_STAT_MASK 0x1E1E 3948c2ecf20Sopenharmony_ci#define VDEC_H_LUMA_CTRL 0x1E14 3958c2ecf20Sopenharmony_ci#define VDEC_H_CHROMA_CTRL 0x1E18 3968c2ecf20Sopenharmony_ci#define VDEC_H_CRUSH_CTRL 0x1E1C 3978c2ecf20Sopenharmony_ci#define VDEC_H_HORIZ_TIM_CTRL 0x1E20 3988c2ecf20Sopenharmony_ci#define VDEC_H_VERT_TIM_CTRL 0x1E24 3998c2ecf20Sopenharmony_ci#define VDEC_H_MISC_TIM_CTRL 0x1E28 4008c2ecf20Sopenharmony_ci#define VDEC_H_FIELD_COUNT 0x1E2C 4018c2ecf20Sopenharmony_ci#define VDEC_H_HSCALE_CTRL 0x1E30 4028c2ecf20Sopenharmony_ci#define VDEC_H_VSCALE_CTRL 0x1E34 4038c2ecf20Sopenharmony_ci#define VDEC_H_MAN_VGA_CTRL 0x1E38 4048c2ecf20Sopenharmony_ci#define VDEC_H_MAN_AGC_CTRL 0x1E3C 4058c2ecf20Sopenharmony_ci#define VDEC_H_DFE_CTRL1 0x1E40 4068c2ecf20Sopenharmony_ci#define VDEC_H_DFE_CTRL2 0x1E44 4078c2ecf20Sopenharmony_ci#define VDEC_H_DFE_CTRL3 0x1E48 4088c2ecf20Sopenharmony_ci#define VDEC_H_PLL_CTRL 0x1E4C 4098c2ecf20Sopenharmony_ci#define VDEC_H_PLL_CTRL_FAST 0x1E50 4108c2ecf20Sopenharmony_ci#define VDEC_H_HTL_CTRL 0x1E54 4118c2ecf20Sopenharmony_ci#define VDEC_H_SRC_CFG 0x1E58 4128c2ecf20Sopenharmony_ci#define VDEC_H_SC_STEP_SIZE 0x1E5C 4138c2ecf20Sopenharmony_ci#define VDEC_H_SC_CONVERGE_CTRL 0x1E60 4148c2ecf20Sopenharmony_ci#define VDEC_H_SC_LOOP_CTRL 0x1E64 4158c2ecf20Sopenharmony_ci#define VDEC_H_COMB_2D_HFS_CFG 0x1E68 4168c2ecf20Sopenharmony_ci#define VDEC_H_COMB_2D_HFD_CFG 0x1E6C 4178c2ecf20Sopenharmony_ci#define VDEC_H_COMB_2D_LF_CFG 0x1E70 4188c2ecf20Sopenharmony_ci#define VDEC_H_COMB_2D_BLEND 0x1E74 4198c2ecf20Sopenharmony_ci#define VDEC_H_COMB_MISC_CTRL 0x1E78 4208c2ecf20Sopenharmony_ci#define VDEC_H_COMB_FLAT_THRESH_CTRL 0x1E7C 4218c2ecf20Sopenharmony_ci#define VDEC_H_COMB_TEST 0x1E80 4228c2ecf20Sopenharmony_ci#define VDEC_H_BP_MISC_CTRL 0x1E84 4238c2ecf20Sopenharmony_ci#define VDEC_H_VCR_DET_CTRL 0x1E88 4248c2ecf20Sopenharmony_ci#define VDEC_H_NOISE_DET_CTRL 0x1E8C 4258c2ecf20Sopenharmony_ci#define VDEC_H_COMB_FLAT_NOISE_CTRL 0x1E90 4268c2ecf20Sopenharmony_ci#define VDEC_H_VERSION 0x1FF8 4278c2ecf20Sopenharmony_ci#define VDEC_H_SOFT_RST_CTRL 0x1FFC 4288c2ecf20Sopenharmony_ci 4298c2ecf20Sopenharmony_ci/*****************************************************************************/ 4308c2ecf20Sopenharmony_ci/* LUMA_CTRL register fields */ 4318c2ecf20Sopenharmony_ci#define VDEC_A_BRITE_CTRL 0x1014 4328c2ecf20Sopenharmony_ci#define VDEC_A_CNTRST_CTRL 0x1015 4338c2ecf20Sopenharmony_ci#define VDEC_A_PEAK_SEL 0x1016 4348c2ecf20Sopenharmony_ci 4358c2ecf20Sopenharmony_ci/*****************************************************************************/ 4368c2ecf20Sopenharmony_ci/* CHROMA_CTRL register fields */ 4378c2ecf20Sopenharmony_ci#define VDEC_A_USAT_CTRL 0x1018 4388c2ecf20Sopenharmony_ci#define VDEC_A_VSAT_CTRL 0x1019 4398c2ecf20Sopenharmony_ci#define VDEC_A_HUE_CTRL 0x101A 4408c2ecf20Sopenharmony_ci 4418c2ecf20Sopenharmony_ci#endif 442