18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci cx231xx-reg.h - driver for Conexant Cx23100/101/102 48c2ecf20Sopenharmony_ci USB video capture devices 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci Copyright (C) 2008 <srinivasa.deevi at conexant dot com> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#ifndef _CX231XX_REG_H 118c2ecf20Sopenharmony_ci#define _CX231XX_REG_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/***************************************************************************** 148c2ecf20Sopenharmony_ci * VBI codes * 158c2ecf20Sopenharmony_ci*****************************************************************************/ 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#define SAV_ACTIVE_VIDEO_FIELD1 0x80 188c2ecf20Sopenharmony_ci#define EAV_ACTIVE_VIDEO_FIELD1 0x90 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define SAV_ACTIVE_VIDEO_FIELD2 0xc0 218c2ecf20Sopenharmony_ci#define EAV_ACTIVE_VIDEO_FIELD2 0xd0 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define SAV_VBLANK_FIELD1 0xa0 248c2ecf20Sopenharmony_ci#define EAV_VBLANK_FIELD1 0xb0 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#define SAV_VBLANK_FIELD2 0xe0 278c2ecf20Sopenharmony_ci#define EAV_VBLANK_FIELD2 0xf0 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#define SAV_VBI_FIELD1 0x20 308c2ecf20Sopenharmony_ci#define EAV_VBI_FIELD1 0x30 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#define SAV_VBI_FIELD2 0x60 338c2ecf20Sopenharmony_ci#define EAV_VBI_FIELD2 0x70 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci/*****************************************************************************/ 368c2ecf20Sopenharmony_ci/* Audio ADC Registers */ 378c2ecf20Sopenharmony_ci#define CH_PWR_CTRL1 0x0000000e 388c2ecf20Sopenharmony_ci#define CH_PWR_CTRL2 0x0000000f 398c2ecf20Sopenharmony_ci/*****************************************************************************/ 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci#define HOST_REG1 0x000 428c2ecf20Sopenharmony_ci#define FLD_FORCE_CHIP_SEL 0x80 438c2ecf20Sopenharmony_ci#define FLD_AUTO_INC_DIS 0x20 448c2ecf20Sopenharmony_ci#define FLD_PREFETCH_EN 0x10 458c2ecf20Sopenharmony_ci/* Reserved [2:3] */ 468c2ecf20Sopenharmony_ci#define FLD_DIGITAL_PWR_DN 0x02 478c2ecf20Sopenharmony_ci#define FLD_SLEEP 0x01 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci/*****************************************************************************/ 508c2ecf20Sopenharmony_ci#define HOST_REG2 0x001 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci/*****************************************************************************/ 538c2ecf20Sopenharmony_ci#define HOST_REG3 0x002 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci/*****************************************************************************/ 568c2ecf20Sopenharmony_ci/* added for polaris */ 578c2ecf20Sopenharmony_ci#define GPIO_PIN_CTL0 0x3 588c2ecf20Sopenharmony_ci#define GPIO_PIN_CTL1 0x4 598c2ecf20Sopenharmony_ci#define GPIO_PIN_CTL2 0x5 608c2ecf20Sopenharmony_ci#define GPIO_PIN_CTL3 0x6 618c2ecf20Sopenharmony_ci#define TS1_PIN_CTL0 0x7 628c2ecf20Sopenharmony_ci#define TS1_PIN_CTL1 0x8 638c2ecf20Sopenharmony_ci/*****************************************************************************/ 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci#define FLD_CLK_IN_EN 0x80 668c2ecf20Sopenharmony_ci#define FLD_XTAL_CTRL 0x70 678c2ecf20Sopenharmony_ci#define FLD_BB_CLK_MODE 0x0C 688c2ecf20Sopenharmony_ci#define FLD_REF_DIV_PLL 0x02 698c2ecf20Sopenharmony_ci#define FLD_REF_SEL_PLL1 0x01 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci/*****************************************************************************/ 728c2ecf20Sopenharmony_ci#define CHIP_CTRL 0x100 738c2ecf20Sopenharmony_ci/* Reserved [27] */ 748c2ecf20Sopenharmony_ci/* Reserved [31:21] */ 758c2ecf20Sopenharmony_ci#define FLD_CHIP_ACFG_DIS 0x00100000 768c2ecf20Sopenharmony_ci/* Reserved [19] */ 778c2ecf20Sopenharmony_ci#define FLD_DUAL_MODE_ADC2 0x00040000 788c2ecf20Sopenharmony_ci#define FLD_SIF_EN 0x00020000 798c2ecf20Sopenharmony_ci#define FLD_SOFT_RST 0x00010000 808c2ecf20Sopenharmony_ci#define FLD_DEVICE_ID 0x0000ffff 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci/*****************************************************************************/ 838c2ecf20Sopenharmony_ci#define AFE_CTRL 0x104 848c2ecf20Sopenharmony_ci#define AFE_CTRL_C2HH_SRC_CTRL 0x104 858c2ecf20Sopenharmony_ci#define FLD_DIF_OUT_SEL 0xc0000000 868c2ecf20Sopenharmony_ci#define FLD_AUX_PLL_CLK_ALT_SEL 0x3c000000 878c2ecf20Sopenharmony_ci#define FLD_UV_ORDER_MODE 0x02000000 888c2ecf20Sopenharmony_ci#define FLD_FUNC_MODE 0x01800000 898c2ecf20Sopenharmony_ci#define FLD_ROT1_PHASE_CTL 0x007f8000 908c2ecf20Sopenharmony_ci#define FLD_AUD_IN_SEL 0x00004000 918c2ecf20Sopenharmony_ci#define FLD_LUMA_IN_SEL 0x00002000 928c2ecf20Sopenharmony_ci#define FLD_CHROMA_IN_SEL 0x00001000 938c2ecf20Sopenharmony_ci/* reserve [11:10] */ 948c2ecf20Sopenharmony_ci#define FLD_INV_SPEC_DIS 0x00000200 958c2ecf20Sopenharmony_ci#define FLD_VGA_SEL_CH3 0x00000100 968c2ecf20Sopenharmony_ci#define FLD_VGA_SEL_CH2 0x00000080 978c2ecf20Sopenharmony_ci#define FLD_VGA_SEL_CH1 0x00000040 988c2ecf20Sopenharmony_ci#define FLD_DCR_BYP_CH1 0x00000020 998c2ecf20Sopenharmony_ci#define FLD_DCR_BYP_CH2 0x00000010 1008c2ecf20Sopenharmony_ci#define FLD_DCR_BYP_CH3 0x00000008 1018c2ecf20Sopenharmony_ci#define FLD_EN_12DB_CH3 0x00000004 1028c2ecf20Sopenharmony_ci#define FLD_EN_12DB_CH2 0x00000002 1038c2ecf20Sopenharmony_ci#define FLD_EN_12DB_CH1 0x00000001 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci/* redefine in Cx231xx */ 1068c2ecf20Sopenharmony_ci/*****************************************************************************/ 1078c2ecf20Sopenharmony_ci#define DC_CTRL1 0x108 1088c2ecf20Sopenharmony_ci/* reserve [31:30] */ 1098c2ecf20Sopenharmony_ci#define FLD_CLAMP_LVL_CH1 0x3fff8000 1108c2ecf20Sopenharmony_ci#define FLD_CLAMP_LVL_CH2 0x00007fff 1118c2ecf20Sopenharmony_ci/*****************************************************************************/ 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci/*****************************************************************************/ 1148c2ecf20Sopenharmony_ci#define DC_CTRL2 0x10c 1158c2ecf20Sopenharmony_ci/* reserve [31:28] */ 1168c2ecf20Sopenharmony_ci#define FLD_CLAMP_LVL_CH3 0x00fffe00 1178c2ecf20Sopenharmony_ci#define FLD_CLAMP_WIND_LENTH 0x000001e0 1188c2ecf20Sopenharmony_ci#define FLD_C2HH_SAT_MIN 0x0000001e 1198c2ecf20Sopenharmony_ci#define FLD_FLT_BYP_SEL 0x00000001 1208c2ecf20Sopenharmony_ci/*****************************************************************************/ 1218c2ecf20Sopenharmony_ci 1228c2ecf20Sopenharmony_ci/*****************************************************************************/ 1238c2ecf20Sopenharmony_ci#define DC_CTRL3 0x110 1248c2ecf20Sopenharmony_ci/* reserve [31:16] */ 1258c2ecf20Sopenharmony_ci#define FLD_ERR_GAIN_CTL 0x00070000 1268c2ecf20Sopenharmony_ci#define FLD_LPF_MIN 0x0000ffff 1278c2ecf20Sopenharmony_ci/*****************************************************************************/ 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ci/*****************************************************************************/ 1308c2ecf20Sopenharmony_ci#define DC_CTRL4 0x114 1318c2ecf20Sopenharmony_ci/* reserve [31:31] */ 1328c2ecf20Sopenharmony_ci#define FLD_INTG_CH1 0x7fffffff 1338c2ecf20Sopenharmony_ci/*****************************************************************************/ 1348c2ecf20Sopenharmony_ci 1358c2ecf20Sopenharmony_ci/*****************************************************************************/ 1368c2ecf20Sopenharmony_ci#define DC_CTRL5 0x118 1378c2ecf20Sopenharmony_ci/* reserve [31:31] */ 1388c2ecf20Sopenharmony_ci#define FLD_INTG_CH2 0x7fffffff 1398c2ecf20Sopenharmony_ci/*****************************************************************************/ 1408c2ecf20Sopenharmony_ci 1418c2ecf20Sopenharmony_ci/*****************************************************************************/ 1428c2ecf20Sopenharmony_ci#define DC_CTRL6 0x11c 1438c2ecf20Sopenharmony_ci/* reserve [31:31] */ 1448c2ecf20Sopenharmony_ci#define FLD_INTG_CH3 0x7fffffff 1458c2ecf20Sopenharmony_ci/*****************************************************************************/ 1468c2ecf20Sopenharmony_ci 1478c2ecf20Sopenharmony_ci/*****************************************************************************/ 1488c2ecf20Sopenharmony_ci#define PIN_CTRL 0x120 1498c2ecf20Sopenharmony_ci#define FLD_OEF_AGC_RF 0x00000001 1508c2ecf20Sopenharmony_ci#define FLD_OEF_AGC_IFVGA 0x00000002 1518c2ecf20Sopenharmony_ci#define FLD_OEF_AGC_IF 0x00000004 1528c2ecf20Sopenharmony_ci#define FLD_REG_BO_PUD 0x80000000 1538c2ecf20Sopenharmony_ci#define FLD_IR_IRQ_STAT 0x40000000 1548c2ecf20Sopenharmony_ci#define FLD_AUD_IRQ_STAT 0x20000000 1558c2ecf20Sopenharmony_ci#define FLD_VID_IRQ_STAT 0x10000000 1568c2ecf20Sopenharmony_ci/* Reserved [27:26] */ 1578c2ecf20Sopenharmony_ci#define FLD_IRQ_N_OUT_EN 0x02000000 1588c2ecf20Sopenharmony_ci#define FLD_IRQ_N_POLAR 0x01000000 1598c2ecf20Sopenharmony_ci/* Reserved [23:6] */ 1608c2ecf20Sopenharmony_ci#define FLD_OE_AUX_PLL_CLK 0x00000020 1618c2ecf20Sopenharmony_ci#define FLD_OE_I2S_BCLK 0x00000010 1628c2ecf20Sopenharmony_ci#define FLD_OE_I2S_WCLK 0x00000008 1638c2ecf20Sopenharmony_ci#define FLD_OE_AGC_IF 0x00000004 1648c2ecf20Sopenharmony_ci#define FLD_OE_AGC_IFVGA 0x00000002 1658c2ecf20Sopenharmony_ci#define FLD_OE_AGC_RF 0x00000001 1668c2ecf20Sopenharmony_ci 1678c2ecf20Sopenharmony_ci/*****************************************************************************/ 1688c2ecf20Sopenharmony_ci#define AUD_IO_CTRL 0x124 1698c2ecf20Sopenharmony_ci/* Reserved [31:8] */ 1708c2ecf20Sopenharmony_ci#define FLD_I2S_PORT_DIR 0x00000080 1718c2ecf20Sopenharmony_ci#define FLD_I2S_OUT_SRC 0x00000040 1728c2ecf20Sopenharmony_ci#define FLD_AUD_CHAN3_SRC 0x00000030 1738c2ecf20Sopenharmony_ci#define FLD_AUD_CHAN2_SRC 0x0000000c 1748c2ecf20Sopenharmony_ci#define FLD_AUD_CHAN1_SRC 0x00000003 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci/*****************************************************************************/ 1778c2ecf20Sopenharmony_ci#define AUD_LOCK1 0x128 1788c2ecf20Sopenharmony_ci#define FLD_AUD_LOCK_KI_SHIFT 0xc0000000 1798c2ecf20Sopenharmony_ci#define FLD_AUD_LOCK_KD_SHIFT 0x30000000 1808c2ecf20Sopenharmony_ci/* Reserved [27:25] */ 1818c2ecf20Sopenharmony_ci#define FLD_EN_AV_LOCK 0x01000000 1828c2ecf20Sopenharmony_ci#define FLD_VID_COUNT 0x00ffffff 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_ci/*****************************************************************************/ 1858c2ecf20Sopenharmony_ci#define AUD_LOCK2 0x12c 1868c2ecf20Sopenharmony_ci#define FLD_AUD_LOCK_KI_MULT 0xf0000000 1878c2ecf20Sopenharmony_ci#define FLD_AUD_LOCK_KD_MULT 0x0F000000 1888c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 1898c2ecf20Sopenharmony_ci#define FLD_AUD_LOCK_FREQ_SHIFT 0x00300000 1908c2ecf20Sopenharmony_ci#define FLD_AUD_COUNT 0x000fffff 1918c2ecf20Sopenharmony_ci 1928c2ecf20Sopenharmony_ci/*****************************************************************************/ 1938c2ecf20Sopenharmony_ci#define AFE_DIAG_CTRL1 0x134 1948c2ecf20Sopenharmony_ci/* Reserved [31:16] */ 1958c2ecf20Sopenharmony_ci#define FLD_CUV_DLY_LENGTH 0x0000ff00 1968c2ecf20Sopenharmony_ci#define FLD_YC_DLY_LENGTH 0x000000ff 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_ci/*****************************************************************************/ 1998c2ecf20Sopenharmony_ci/* Poalris redefine */ 2008c2ecf20Sopenharmony_ci#define AFE_DIAG_CTRL3 0x138 2018c2ecf20Sopenharmony_ci/* Reserved [31:26] */ 2028c2ecf20Sopenharmony_ci#define FLD_AUD_DUAL_FLAG_POL 0x02000000 2038c2ecf20Sopenharmony_ci#define FLD_VID_DUAL_FLAG_POL 0x01000000 2048c2ecf20Sopenharmony_ci/* Reserved [23:23] */ 2058c2ecf20Sopenharmony_ci#define FLD_COL_CLAMP_DIS_CH1 0x00400000 2068c2ecf20Sopenharmony_ci#define FLD_COL_CLAMP_DIS_CH2 0x00200000 2078c2ecf20Sopenharmony_ci#define FLD_COL_CLAMP_DIS_CH3 0x00100000 2088c2ecf20Sopenharmony_ci 2098c2ecf20Sopenharmony_ci#define TEST_CTRL1 0x144 2108c2ecf20Sopenharmony_ci/* Reserved [31:29] */ 2118c2ecf20Sopenharmony_ci#define FLD_LBIST_EN 0x10000000 2128c2ecf20Sopenharmony_ci/* Reserved [27:10] */ 2138c2ecf20Sopenharmony_ci#define FLD_FI_BIST_INTR_R 0x0000200 2148c2ecf20Sopenharmony_ci#define FLD_FI_BIST_INTR_L 0x0000100 2158c2ecf20Sopenharmony_ci#define FLD_BIST_FAIL_AUD_PLL 0x0000080 2168c2ecf20Sopenharmony_ci#define FLD_BIST_INTR_AUD_PLL 0x0000040 2178c2ecf20Sopenharmony_ci#define FLD_BIST_FAIL_VID_PLL 0x0000020 2188c2ecf20Sopenharmony_ci#define FLD_BIST_INTR_VID_PLL 0x0000010 2198c2ecf20Sopenharmony_ci/* Reserved [3:1] */ 2208c2ecf20Sopenharmony_ci#define FLD_CIR_TEST_DIS 0x00000001 2218c2ecf20Sopenharmony_ci 2228c2ecf20Sopenharmony_ci/*****************************************************************************/ 2238c2ecf20Sopenharmony_ci#define TEST_CTRL2 0x148 2248c2ecf20Sopenharmony_ci#define FLD_TSXCLK_POL_CTL 0x80000000 2258c2ecf20Sopenharmony_ci#define FLD_ISO_CTL_SEL 0x40000000 2268c2ecf20Sopenharmony_ci#define FLD_ISO_CTL_EN 0x20000000 2278c2ecf20Sopenharmony_ci#define FLD_BIST_DEBUGZ 0x10000000 2288c2ecf20Sopenharmony_ci#define FLD_AUD_BIST_TEST_H 0x0f000000 2298c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 2308c2ecf20Sopenharmony_ci#define FLD_FLTRN_BIST_TEST_H 0x00020000 2318c2ecf20Sopenharmony_ci#define FLD_VID_BIST_TEST_H 0x00010000 2328c2ecf20Sopenharmony_ci/* Reserved [19:17] */ 2338c2ecf20Sopenharmony_ci#define FLD_BIST_TEST_H 0x00010000 2348c2ecf20Sopenharmony_ci/* Reserved [15:13] */ 2358c2ecf20Sopenharmony_ci#define FLD_TAB_EN 0x00001000 2368c2ecf20Sopenharmony_ci/* Reserved [11:0] */ 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ci/*****************************************************************************/ 2398c2ecf20Sopenharmony_ci#define BIST_STAT 0x14c 2408c2ecf20Sopenharmony_ci#define FLD_AUD_BIST_FAIL_H 0xfff00000 2418c2ecf20Sopenharmony_ci#define FLD_FLTRN_BIST_FAIL_H 0x00180000 2428c2ecf20Sopenharmony_ci#define FLD_VID_BIST_FAIL_H 0x00070000 2438c2ecf20Sopenharmony_ci#define FLD_AUD_BIST_TST_DONE 0x0000fff0 2448c2ecf20Sopenharmony_ci#define FLD_FLTRN_BIST_TST_DONE 0x00000008 2458c2ecf20Sopenharmony_ci#define FLD_VID_BIST_TST_DONE 0x00000007 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_ci/*****************************************************************************/ 2488c2ecf20Sopenharmony_ci/* DirectIF registers definition have been moved to DIF_reg.h */ 2498c2ecf20Sopenharmony_ci/*****************************************************************************/ 2508c2ecf20Sopenharmony_ci#define MODE_CTRL 0x400 2518c2ecf20Sopenharmony_ci#define FLD_AFD_PAL60_DIS 0x20000000 2528c2ecf20Sopenharmony_ci#define FLD_AFD_FORCE_SECAM 0x10000000 2538c2ecf20Sopenharmony_ci#define FLD_AFD_FORCE_PALNC 0x08000000 2548c2ecf20Sopenharmony_ci#define FLD_AFD_FORCE_PAL 0x04000000 2558c2ecf20Sopenharmony_ci#define FLD_AFD_PALM_SEL 0x03000000 2568c2ecf20Sopenharmony_ci#define FLD_CKILL_MODE 0x00300000 2578c2ecf20Sopenharmony_ci#define FLD_COMB_NOTCH_MODE 0x00c00000 /* bit[19:18] */ 2588c2ecf20Sopenharmony_ci#define FLD_CLR_LOCK_STAT 0x00020000 2598c2ecf20Sopenharmony_ci#define FLD_FAST_LOCK_MD 0x00010000 2608c2ecf20Sopenharmony_ci#define FLD_WCEN 0x00008000 2618c2ecf20Sopenharmony_ci#define FLD_CAGCEN 0x00004000 2628c2ecf20Sopenharmony_ci#define FLD_CKILLEN 0x00002000 2638c2ecf20Sopenharmony_ci#define FLD_AUTO_SC_LOCK 0x00001000 2648c2ecf20Sopenharmony_ci#define FLD_MAN_SC_FAST_LOCK 0x00000800 2658c2ecf20Sopenharmony_ci#define FLD_INPUT_MODE 0x00000600 2668c2ecf20Sopenharmony_ci#define FLD_AFD_ACQUIRE 0x00000100 2678c2ecf20Sopenharmony_ci#define FLD_AFD_NTSC_SEL 0x00000080 2688c2ecf20Sopenharmony_ci#define FLD_AFD_PAL_SEL 0x00000040 2698c2ecf20Sopenharmony_ci#define FLD_ACFG_DIS 0x00000020 2708c2ecf20Sopenharmony_ci#define FLD_SQ_PIXEL 0x00000010 2718c2ecf20Sopenharmony_ci#define FLD_VID_FMT_SEL 0x0000000f 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_ci/*****************************************************************************/ 2748c2ecf20Sopenharmony_ci#define OUT_CTRL1 0x404 2758c2ecf20Sopenharmony_ci#define FLD_POLAR 0x7f000000 2768c2ecf20Sopenharmony_ci/* Reserved [23] */ 2778c2ecf20Sopenharmony_ci#define FLD_RND_MODE 0x00600000 2788c2ecf20Sopenharmony_ci#define FLD_VIPCLAMP_EN 0x00100000 2798c2ecf20Sopenharmony_ci#define FLD_VIPBLANK_EN 0x00080000 2808c2ecf20Sopenharmony_ci#define FLD_VIP_OPT_AL 0x00040000 2818c2ecf20Sopenharmony_ci#define FLD_IDID0_SOURCE 0x00020000 2828c2ecf20Sopenharmony_ci#define FLD_DCMODE 0x00010000 2838c2ecf20Sopenharmony_ci#define FLD_CLK_GATING 0x0000c000 2848c2ecf20Sopenharmony_ci#define FLD_CLK_INVERT 0x00002000 2858c2ecf20Sopenharmony_ci#define FLD_HSFMT 0x00001000 2868c2ecf20Sopenharmony_ci#define FLD_VALIDFMT 0x00000800 2878c2ecf20Sopenharmony_ci#define FLD_ACTFMT 0x00000400 2888c2ecf20Sopenharmony_ci#define FLD_SWAPRAW 0x00000200 2898c2ecf20Sopenharmony_ci#define FLD_CLAMPRAW_EN 0x00000100 2908c2ecf20Sopenharmony_ci#define FLD_BLUE_FIELD_EN 0x00000080 2918c2ecf20Sopenharmony_ci#define FLD_BLUE_FIELD_ACT 0x00000040 2928c2ecf20Sopenharmony_ci#define FLD_TASKBIT_VAL 0x00000020 2938c2ecf20Sopenharmony_ci#define FLD_ANC_DATA_EN 0x00000010 2948c2ecf20Sopenharmony_ci#define FLD_VBIHACTRAW_EN 0x00000008 2958c2ecf20Sopenharmony_ci#define FLD_MODE10B 0x00000004 2968c2ecf20Sopenharmony_ci#define FLD_OUT_MODE 0x00000003 2978c2ecf20Sopenharmony_ci 2988c2ecf20Sopenharmony_ci/*****************************************************************************/ 2998c2ecf20Sopenharmony_ci#define OUT_CTRL2 0x408 3008c2ecf20Sopenharmony_ci#define FLD_AUD_GRP 0xc0000000 3018c2ecf20Sopenharmony_ci#define FLD_SAMPLE_RATE 0x30000000 3028c2ecf20Sopenharmony_ci#define FLD_AUD_ANC_EN 0x08000000 3038c2ecf20Sopenharmony_ci#define FLD_EN_C 0x04000000 3048c2ecf20Sopenharmony_ci#define FLD_EN_B 0x02000000 3058c2ecf20Sopenharmony_ci#define FLD_EN_A 0x01000000 3068c2ecf20Sopenharmony_ci/* Reserved [23:20] */ 3078c2ecf20Sopenharmony_ci#define FLD_IDID1_LSB 0x000c0000 3088c2ecf20Sopenharmony_ci#define FLD_IDID0_LSB 0x00030000 3098c2ecf20Sopenharmony_ci#define FLD_IDID1_MSB 0x0000ff00 3108c2ecf20Sopenharmony_ci#define FLD_IDID0_MSB 0x000000ff 3118c2ecf20Sopenharmony_ci 3128c2ecf20Sopenharmony_ci/*****************************************************************************/ 3138c2ecf20Sopenharmony_ci#define GEN_STAT 0x40c 3148c2ecf20Sopenharmony_ci#define FLD_VCR_DETECT 0x00800000 3158c2ecf20Sopenharmony_ci#define FLD_SPECIAL_PLAY_N 0x00400000 3168c2ecf20Sopenharmony_ci#define FLD_VPRES 0x00200000 3178c2ecf20Sopenharmony_ci#define FLD_AGC_LOCK 0x00100000 3188c2ecf20Sopenharmony_ci#define FLD_CSC_LOCK 0x00080000 3198c2ecf20Sopenharmony_ci#define FLD_VLOCK 0x00040000 3208c2ecf20Sopenharmony_ci#define FLD_SRC_LOCK 0x00020000 3218c2ecf20Sopenharmony_ci#define FLD_HLOCK 0x00010000 3228c2ecf20Sopenharmony_ci#define FLD_VSYNC_N 0x00008000 3238c2ecf20Sopenharmony_ci#define FLD_SRC_FIFO_UFLOW 0x00004000 3248c2ecf20Sopenharmony_ci#define FLD_SRC_FIFO_OFLOW 0x00002000 3258c2ecf20Sopenharmony_ci#define FLD_FIELD 0x00001000 3268c2ecf20Sopenharmony_ci#define FLD_AFD_FMT_STAT 0x00000f00 3278c2ecf20Sopenharmony_ci#define FLD_MV_TYPE2_PAIR 0x00000080 3288c2ecf20Sopenharmony_ci#define FLD_MV_T3CS 0x00000040 3298c2ecf20Sopenharmony_ci#define FLD_MV_CS 0x00000020 3308c2ecf20Sopenharmony_ci#define FLD_MV_PSP 0x00000010 3318c2ecf20Sopenharmony_ci/* Reserved [3] */ 3328c2ecf20Sopenharmony_ci#define FLD_MV_CDAT 0x00000003 3338c2ecf20Sopenharmony_ci 3348c2ecf20Sopenharmony_ci/*****************************************************************************/ 3358c2ecf20Sopenharmony_ci#define INT_STAT_MASK 0x410 3368c2ecf20Sopenharmony_ci#define FLD_COMB_3D_FIFO_MSK 0x80000000 3378c2ecf20Sopenharmony_ci#define FLD_WSS_DAT_AVAIL_MSK 0x40000000 3388c2ecf20Sopenharmony_ci#define FLD_GS2_DAT_AVAIL_MSK 0x20000000 3398c2ecf20Sopenharmony_ci#define FLD_GS1_DAT_AVAIL_MSK 0x10000000 3408c2ecf20Sopenharmony_ci#define FLD_CC_DAT_AVAIL_MSK 0x08000000 3418c2ecf20Sopenharmony_ci#define FLD_VPRES_CHANGE_MSK 0x04000000 3428c2ecf20Sopenharmony_ci#define FLD_MV_CHANGE_MSK 0x02000000 3438c2ecf20Sopenharmony_ci#define FLD_END_VBI_EVEN_MSK 0x01000000 3448c2ecf20Sopenharmony_ci#define FLD_END_VBI_ODD_MSK 0x00800000 3458c2ecf20Sopenharmony_ci#define FLD_FMT_CHANGE_MSK 0x00400000 3468c2ecf20Sopenharmony_ci#define FLD_VSYNC_TRAIL_MSK 0x00200000 3478c2ecf20Sopenharmony_ci#define FLD_HLOCK_CHANGE_MSK 0x00100000 3488c2ecf20Sopenharmony_ci#define FLD_VLOCK_CHANGE_MSK 0x00080000 3498c2ecf20Sopenharmony_ci#define FLD_CSC_LOCK_CHANGE_MSK 0x00040000 3508c2ecf20Sopenharmony_ci#define FLD_SRC_FIFO_UFLOW_MSK 0x00020000 3518c2ecf20Sopenharmony_ci#define FLD_SRC_FIFO_OFLOW_MSK 0x00010000 3528c2ecf20Sopenharmony_ci#define FLD_COMB_3D_FIFO_STAT 0x00008000 3538c2ecf20Sopenharmony_ci#define FLD_WSS_DAT_AVAIL_STAT 0x00004000 3548c2ecf20Sopenharmony_ci#define FLD_GS2_DAT_AVAIL_STAT 0x00002000 3558c2ecf20Sopenharmony_ci#define FLD_GS1_DAT_AVAIL_STAT 0x00001000 3568c2ecf20Sopenharmony_ci#define FLD_CC_DAT_AVAIL_STAT 0x00000800 3578c2ecf20Sopenharmony_ci#define FLD_VPRES_CHANGE_STAT 0x00000400 3588c2ecf20Sopenharmony_ci#define FLD_MV_CHANGE_STAT 0x00000200 3598c2ecf20Sopenharmony_ci#define FLD_END_VBI_EVEN_STAT 0x00000100 3608c2ecf20Sopenharmony_ci#define FLD_END_VBI_ODD_STAT 0x00000080 3618c2ecf20Sopenharmony_ci#define FLD_FMT_CHANGE_STAT 0x00000040 3628c2ecf20Sopenharmony_ci#define FLD_VSYNC_TRAIL_STAT 0x00000020 3638c2ecf20Sopenharmony_ci#define FLD_HLOCK_CHANGE_STAT 0x00000010 3648c2ecf20Sopenharmony_ci#define FLD_VLOCK_CHANGE_STAT 0x00000008 3658c2ecf20Sopenharmony_ci#define FLD_CSC_LOCK_CHANGE_STAT 0x00000004 3668c2ecf20Sopenharmony_ci#define FLD_SRC_FIFO_UFLOW_STAT 0x00000002 3678c2ecf20Sopenharmony_ci#define FLD_SRC_FIFO_OFLOW_STAT 0x00000001 3688c2ecf20Sopenharmony_ci 3698c2ecf20Sopenharmony_ci/*****************************************************************************/ 3708c2ecf20Sopenharmony_ci#define LUMA_CTRL 0x414 3718c2ecf20Sopenharmony_ci#define BRIGHTNESS_CTRL_BYTE 0x414 3728c2ecf20Sopenharmony_ci#define CONTRAST_CTRL_BYTE 0x415 3738c2ecf20Sopenharmony_ci#define LUMA_CTRL_BYTE_3 0x416 3748c2ecf20Sopenharmony_ci#define FLD_LUMA_CORE_SEL 0x00c00000 3758c2ecf20Sopenharmony_ci#define FLD_RANGE 0x00300000 3768c2ecf20Sopenharmony_ci/* Reserved [19] */ 3778c2ecf20Sopenharmony_ci#define FLD_PEAK_EN 0x00040000 3788c2ecf20Sopenharmony_ci#define FLD_PEAK_SEL 0x00030000 3798c2ecf20Sopenharmony_ci#define FLD_CNTRST 0x0000ff00 3808c2ecf20Sopenharmony_ci#define FLD_BRITE 0x000000ff 3818c2ecf20Sopenharmony_ci 3828c2ecf20Sopenharmony_ci/*****************************************************************************/ 3838c2ecf20Sopenharmony_ci#define HSCALE_CTRL 0x418 3848c2ecf20Sopenharmony_ci#define FLD_HFILT 0x03000000 3858c2ecf20Sopenharmony_ci#define FLD_HSCALE 0x00ffffff 3868c2ecf20Sopenharmony_ci 3878c2ecf20Sopenharmony_ci/*****************************************************************************/ 3888c2ecf20Sopenharmony_ci#define VSCALE_CTRL 0x41c 3898c2ecf20Sopenharmony_ci#define FLD_LINE_AVG_DIS 0x01000000 3908c2ecf20Sopenharmony_ci/* Reserved [23:20] */ 3918c2ecf20Sopenharmony_ci#define FLD_VS_INTRLACE 0x00080000 3928c2ecf20Sopenharmony_ci#define FLD_VFILT 0x00070000 3938c2ecf20Sopenharmony_ci/* Reserved [15:13] */ 3948c2ecf20Sopenharmony_ci#define FLD_VSCALE 0x00001fff 3958c2ecf20Sopenharmony_ci 3968c2ecf20Sopenharmony_ci/*****************************************************************************/ 3978c2ecf20Sopenharmony_ci#define CHROMA_CTRL 0x420 3988c2ecf20Sopenharmony_ci#define USAT_CTRL_BYTE 0x420 3998c2ecf20Sopenharmony_ci#define VSAT_CTRL_BYTE 0x421 4008c2ecf20Sopenharmony_ci#define HUE_CTRL_BYTE 0x422 4018c2ecf20Sopenharmony_ci#define FLD_C_LPF_EN 0x20000000 4028c2ecf20Sopenharmony_ci#define FLD_CHR_DELAY 0x1c000000 4038c2ecf20Sopenharmony_ci#define FLD_C_CORE_SEL 0x03000000 4048c2ecf20Sopenharmony_ci#define FLD_HUE 0x00ff0000 4058c2ecf20Sopenharmony_ci#define FLD_VSAT 0x0000ff00 4068c2ecf20Sopenharmony_ci#define FLD_USAT 0x000000ff 4078c2ecf20Sopenharmony_ci 4088c2ecf20Sopenharmony_ci/*****************************************************************************/ 4098c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL1 0x424 4108c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE4 0xff000000 4118c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE3 0x00ff0000 4128c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE2 0x0000ff00 4138c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE1 0x000000ff 4148c2ecf20Sopenharmony_ci 4158c2ecf20Sopenharmony_ci/*****************************************************************************/ 4168c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL2 0x428 4178c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE8 0xff000000 4188c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE7 0x00ff0000 4198c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE6 0x0000ff00 4208c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE5 0x000000ff 4218c2ecf20Sopenharmony_ci 4228c2ecf20Sopenharmony_ci/*****************************************************************************/ 4238c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL3 0x42c 4248c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE12 0xff000000 4258c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE11 0x00ff0000 4268c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE10 0x0000ff00 4278c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE9 0x000000ff 4288c2ecf20Sopenharmony_ci 4298c2ecf20Sopenharmony_ci/*****************************************************************************/ 4308c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL4 0x430 4318c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE16 0xff000000 4328c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE15 0x00ff0000 4338c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE14 0x0000ff00 4348c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE13 0x000000ff 4358c2ecf20Sopenharmony_ci 4368c2ecf20Sopenharmony_ci/*****************************************************************************/ 4378c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL5 0x434 4388c2ecf20Sopenharmony_ci#define FLD_VBI_MD_LINE17 0x000000ff 4398c2ecf20Sopenharmony_ci 4408c2ecf20Sopenharmony_ci/*****************************************************************************/ 4418c2ecf20Sopenharmony_ci#define VBI_FC_CFG 0x438 4428c2ecf20Sopenharmony_ci#define FLD_FC_ALT2 0xff000000 4438c2ecf20Sopenharmony_ci#define FLD_FC_ALT1 0x00ff0000 4448c2ecf20Sopenharmony_ci#define FLD_FC_ALT2_TYPE 0x0000f000 4458c2ecf20Sopenharmony_ci#define FLD_FC_ALT1_TYPE 0x00000f00 4468c2ecf20Sopenharmony_ci/* Reserved [7:1] */ 4478c2ecf20Sopenharmony_ci#define FLD_FC_SEARCH_MODE 0x00000001 4488c2ecf20Sopenharmony_ci 4498c2ecf20Sopenharmony_ci/*****************************************************************************/ 4508c2ecf20Sopenharmony_ci#define VBI_MISC_CFG1 0x43c 4518c2ecf20Sopenharmony_ci#define FLD_TTX_PKTADRU 0xfff00000 4528c2ecf20Sopenharmony_ci#define FLD_TTX_PKTADRL 0x000fff00 4538c2ecf20Sopenharmony_ci/* Reserved [7:6] */ 4548c2ecf20Sopenharmony_ci#define FLD_MOJI_PACK_DIS 0x00000020 4558c2ecf20Sopenharmony_ci#define FLD_VPS_DEC_DIS 0x00000010 4568c2ecf20Sopenharmony_ci#define FLD_CRI_MARG_SCALE 0x0000000c 4578c2ecf20Sopenharmony_ci#define FLD_EDGE_RESYNC_EN 0x00000002 4588c2ecf20Sopenharmony_ci#define FLD_ADAPT_SLICE_DIS 0x00000001 4598c2ecf20Sopenharmony_ci 4608c2ecf20Sopenharmony_ci/*****************************************************************************/ 4618c2ecf20Sopenharmony_ci#define VBI_MISC_CFG2 0x440 4628c2ecf20Sopenharmony_ci#define FLD_HAMMING_TYPE 0x0f000000 4638c2ecf20Sopenharmony_ci/* Reserved [23:20] */ 4648c2ecf20Sopenharmony_ci#define FLD_WSS_FIFO_RST 0x00080000 4658c2ecf20Sopenharmony_ci#define FLD_GS2_FIFO_RST 0x00040000 4668c2ecf20Sopenharmony_ci#define FLD_GS1_FIFO_RST 0x00020000 4678c2ecf20Sopenharmony_ci#define FLD_CC_FIFO_RST 0x00010000 4688c2ecf20Sopenharmony_ci/* Reserved [15:12] */ 4698c2ecf20Sopenharmony_ci#define FLD_VBI3_SDID 0x00000f00 4708c2ecf20Sopenharmony_ci#define FLD_VBI2_SDID 0x000000f0 4718c2ecf20Sopenharmony_ci#define FLD_VBI1_SDID 0x0000000f 4728c2ecf20Sopenharmony_ci 4738c2ecf20Sopenharmony_ci/*****************************************************************************/ 4748c2ecf20Sopenharmony_ci#define VBI_PAY1 0x444 4758c2ecf20Sopenharmony_ci#define FLD_GS1_FIFO_DAT 0xFF000000 4768c2ecf20Sopenharmony_ci#define FLD_GS1_STAT 0x00FF0000 4778c2ecf20Sopenharmony_ci#define FLD_CC_FIFO_DAT 0x0000FF00 4788c2ecf20Sopenharmony_ci#define FLD_CC_STAT 0x000000FF 4798c2ecf20Sopenharmony_ci 4808c2ecf20Sopenharmony_ci/*****************************************************************************/ 4818c2ecf20Sopenharmony_ci#define VBI_PAY2 0x448 4828c2ecf20Sopenharmony_ci#define FLD_WSS_FIFO_DAT 0xff000000 4838c2ecf20Sopenharmony_ci#define FLD_WSS_STAT 0x00ff0000 4848c2ecf20Sopenharmony_ci#define FLD_GS2_FIFO_DAT 0x0000ff00 4858c2ecf20Sopenharmony_ci#define FLD_GS2_STAT 0x000000ff 4868c2ecf20Sopenharmony_ci 4878c2ecf20Sopenharmony_ci/*****************************************************************************/ 4888c2ecf20Sopenharmony_ci#define VBI_CUST1_CFG1 0x44c 4898c2ecf20Sopenharmony_ci/* Reserved [31] */ 4908c2ecf20Sopenharmony_ci#define FLD_VBI1_CRIWIN 0x7f000000 4918c2ecf20Sopenharmony_ci#define FLD_VBI1_SLICE_DIST 0x00f00000 4928c2ecf20Sopenharmony_ci#define FLD_VBI1_BITINC 0x000fff00 4938c2ecf20Sopenharmony_ci#define FLD_VBI1_HDELAY 0x000000ff 4948c2ecf20Sopenharmony_ci 4958c2ecf20Sopenharmony_ci/*****************************************************************************/ 4968c2ecf20Sopenharmony_ci#define VBI_CUST1_CFG2 0x450 4978c2ecf20Sopenharmony_ci#define FLD_VBI1_FC_LENGTH 0x1f000000 4988c2ecf20Sopenharmony_ci#define FLD_VBI1_FRAME_CODE 0x00ffffff 4998c2ecf20Sopenharmony_ci 5008c2ecf20Sopenharmony_ci/*****************************************************************************/ 5018c2ecf20Sopenharmony_ci#define VBI_CUST1_CFG3 0x454 5028c2ecf20Sopenharmony_ci#define FLD_VBI1_HAM_EN 0x80000000 5038c2ecf20Sopenharmony_ci#define FLD_VBI1_FIFO_MODE 0x70000000 5048c2ecf20Sopenharmony_ci#define FLD_VBI1_FORMAT_TYPE 0x0f000000 5058c2ecf20Sopenharmony_ci#define FLD_VBI1_PAYLD_LENGTH 0x00ff0000 5068c2ecf20Sopenharmony_ci#define FLD_VBI1_CRI_LENGTH 0x0000f000 5078c2ecf20Sopenharmony_ci#define FLD_VBI1_CRI_MARGIN 0x00000f00 5088c2ecf20Sopenharmony_ci#define FLD_VBI1_CRI_TIME 0x000000ff 5098c2ecf20Sopenharmony_ci 5108c2ecf20Sopenharmony_ci/*****************************************************************************/ 5118c2ecf20Sopenharmony_ci#define VBI_CUST2_CFG1 0x458 5128c2ecf20Sopenharmony_ci/* Reserved [31] */ 5138c2ecf20Sopenharmony_ci#define FLD_VBI2_CRIWIN 0x7f000000 5148c2ecf20Sopenharmony_ci#define FLD_VBI2_SLICE_DIST 0x00f00000 5158c2ecf20Sopenharmony_ci#define FLD_VBI2_BITINC 0x000fff00 5168c2ecf20Sopenharmony_ci#define FLD_VBI2_HDELAY 0x000000ff 5178c2ecf20Sopenharmony_ci 5188c2ecf20Sopenharmony_ci/*****************************************************************************/ 5198c2ecf20Sopenharmony_ci#define VBI_CUST2_CFG2 0x45c 5208c2ecf20Sopenharmony_ci#define FLD_VBI2_FC_LENGTH 0x1f000000 5218c2ecf20Sopenharmony_ci#define FLD_VBI2_FRAME_CODE 0x00ffffff 5228c2ecf20Sopenharmony_ci 5238c2ecf20Sopenharmony_ci/*****************************************************************************/ 5248c2ecf20Sopenharmony_ci#define VBI_CUST2_CFG3 0x460 5258c2ecf20Sopenharmony_ci#define FLD_VBI2_HAM_EN 0x80000000 5268c2ecf20Sopenharmony_ci#define FLD_VBI2_FIFO_MODE 0x70000000 5278c2ecf20Sopenharmony_ci#define FLD_VBI2_FORMAT_TYPE 0x0f000000 5288c2ecf20Sopenharmony_ci#define FLD_VBI2_PAYLD_LENGTH 0x00ff0000 5298c2ecf20Sopenharmony_ci#define FLD_VBI2_CRI_LENGTH 0x0000f000 5308c2ecf20Sopenharmony_ci#define FLD_VBI2_CRI_MARGIN 0x00000f00 5318c2ecf20Sopenharmony_ci#define FLD_VBI2_CRI_TIME 0x000000ff 5328c2ecf20Sopenharmony_ci 5338c2ecf20Sopenharmony_ci/*****************************************************************************/ 5348c2ecf20Sopenharmony_ci#define VBI_CUST3_CFG1 0x464 5358c2ecf20Sopenharmony_ci/* Reserved [31] */ 5368c2ecf20Sopenharmony_ci#define FLD_VBI3_CRIWIN 0x7f000000 5378c2ecf20Sopenharmony_ci#define FLD_VBI3_SLICE_DIST 0x00f00000 5388c2ecf20Sopenharmony_ci#define FLD_VBI3_BITINC 0x000fff00 5398c2ecf20Sopenharmony_ci#define FLD_VBI3_HDELAY 0x000000ff 5408c2ecf20Sopenharmony_ci 5418c2ecf20Sopenharmony_ci/*****************************************************************************/ 5428c2ecf20Sopenharmony_ci#define VBI_CUST3_CFG2 0x468 5438c2ecf20Sopenharmony_ci#define FLD_VBI3_FC_LENGTH 0x1f000000 5448c2ecf20Sopenharmony_ci#define FLD_VBI3_FRAME_CODE 0x00ffffff 5458c2ecf20Sopenharmony_ci 5468c2ecf20Sopenharmony_ci/*****************************************************************************/ 5478c2ecf20Sopenharmony_ci#define VBI_CUST3_CFG3 0x46c 5488c2ecf20Sopenharmony_ci#define FLD_VBI3_HAM_EN 0x80000000 5498c2ecf20Sopenharmony_ci#define FLD_VBI3_FIFO_MODE 0x70000000 5508c2ecf20Sopenharmony_ci#define FLD_VBI3_FORMAT_TYPE 0x0f000000 5518c2ecf20Sopenharmony_ci#define FLD_VBI3_PAYLD_LENGTH 0x00ff0000 5528c2ecf20Sopenharmony_ci#define FLD_VBI3_CRI_LENGTH 0x0000f000 5538c2ecf20Sopenharmony_ci#define FLD_VBI3_CRI_MARGIN 0x00000f00 5548c2ecf20Sopenharmony_ci#define FLD_VBI3_CRI_TIME 0x000000ff 5558c2ecf20Sopenharmony_ci 5568c2ecf20Sopenharmony_ci/*****************************************************************************/ 5578c2ecf20Sopenharmony_ci#define HORIZ_TIM_CTRL 0x470 5588c2ecf20Sopenharmony_ci#define FLD_BGDEL_CNT 0xff000000 5598c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 5608c2ecf20Sopenharmony_ci#define FLD_HACTIVE_CNT 0x003ff000 5618c2ecf20Sopenharmony_ci/* Reserved [11:10] */ 5628c2ecf20Sopenharmony_ci#define FLD_HBLANK_CNT 0x000003ff 5638c2ecf20Sopenharmony_ci 5648c2ecf20Sopenharmony_ci/*****************************************************************************/ 5658c2ecf20Sopenharmony_ci#define VERT_TIM_CTRL 0x474 5668c2ecf20Sopenharmony_ci#define FLD_V656BLANK_CNT 0xff000000 5678c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 5688c2ecf20Sopenharmony_ci#define FLD_VACTIVE_CNT 0x003ff000 5698c2ecf20Sopenharmony_ci/* Reserved [11:10] */ 5708c2ecf20Sopenharmony_ci#define FLD_VBLANK_CNT 0x000003ff 5718c2ecf20Sopenharmony_ci 5728c2ecf20Sopenharmony_ci/*****************************************************************************/ 5738c2ecf20Sopenharmony_ci#define SRC_COMB_CFG 0x478 5748c2ecf20Sopenharmony_ci#define FLD_CCOMB_2LN_CHECK 0x80000000 5758c2ecf20Sopenharmony_ci#define FLD_CCOMB_3LN_EN 0x40000000 5768c2ecf20Sopenharmony_ci#define FLD_CCOMB_2LN_EN 0x20000000 5778c2ecf20Sopenharmony_ci#define FLD_CCOMB_3D_EN 0x10000000 5788c2ecf20Sopenharmony_ci/* Reserved [27] */ 5798c2ecf20Sopenharmony_ci#define FLD_LCOMB_3LN_EN 0x04000000 5808c2ecf20Sopenharmony_ci#define FLD_LCOMB_2LN_EN 0x02000000 5818c2ecf20Sopenharmony_ci#define FLD_LCOMB_3D_EN 0x01000000 5828c2ecf20Sopenharmony_ci#define FLD_LUMA_LPF_SEL 0x00c00000 5838c2ecf20Sopenharmony_ci#define FLD_UV_LPF_SEL 0x00300000 5848c2ecf20Sopenharmony_ci#define FLD_BLEND_SLOPE 0x000f0000 5858c2ecf20Sopenharmony_ci#define FLD_CCOMB_REDUCE_EN 0x00008000 5868c2ecf20Sopenharmony_ci/* Reserved [14:10] */ 5878c2ecf20Sopenharmony_ci#define FLD_SRC_DECIM_RATIO 0x000003ff 5888c2ecf20Sopenharmony_ci 5898c2ecf20Sopenharmony_ci/*****************************************************************************/ 5908c2ecf20Sopenharmony_ci#define CHROMA_VBIOFF_CFG 0x47c 5918c2ecf20Sopenharmony_ci#define FLD_VBI_VOFFSET 0x1f000000 5928c2ecf20Sopenharmony_ci/* Reserved [23:20] */ 5938c2ecf20Sopenharmony_ci#define FLD_SC_STEP 0x000fffff 5948c2ecf20Sopenharmony_ci 5958c2ecf20Sopenharmony_ci/*****************************************************************************/ 5968c2ecf20Sopenharmony_ci#define FIELD_COUNT 0x480 5978c2ecf20Sopenharmony_ci#define FLD_FIELD_COUNT_FLD 0x000003ff 5988c2ecf20Sopenharmony_ci 5998c2ecf20Sopenharmony_ci/*****************************************************************************/ 6008c2ecf20Sopenharmony_ci#define MISC_TIM_CTRL 0x484 6018c2ecf20Sopenharmony_ci#define FLD_DEBOUNCE_COUNT 0xc0000000 6028c2ecf20Sopenharmony_ci#define FLD_VT_LINE_CNT_HYST 0x30000000 6038c2ecf20Sopenharmony_ci/* Reserved [27] */ 6048c2ecf20Sopenharmony_ci#define FLD_AFD_STAT 0x07ff0000 6058c2ecf20Sopenharmony_ci#define FLD_VPRES_VERT_EN 0x00008000 6068c2ecf20Sopenharmony_ci/* Reserved [14:12] */ 6078c2ecf20Sopenharmony_ci#define FLD_HR32 0x00000800 6088c2ecf20Sopenharmony_ci#define FLD_TDALGN 0x00000400 6098c2ecf20Sopenharmony_ci#define FLD_TDFIELD 0x00000200 6108c2ecf20Sopenharmony_ci/* Reserved [8:6] */ 6118c2ecf20Sopenharmony_ci#define FLD_TEMPDEC 0x0000003f 6128c2ecf20Sopenharmony_ci 6138c2ecf20Sopenharmony_ci/*****************************************************************************/ 6148c2ecf20Sopenharmony_ci#define DFE_CTRL1 0x488 6158c2ecf20Sopenharmony_ci#define FLD_CLAMP_AUTO_EN 0x80000000 6168c2ecf20Sopenharmony_ci#define FLD_AGC_AUTO_EN 0x40000000 6178c2ecf20Sopenharmony_ci#define FLD_VGA_CRUSH_EN 0x20000000 6188c2ecf20Sopenharmony_ci#define FLD_VGA_AUTO_EN 0x10000000 6198c2ecf20Sopenharmony_ci#define FLD_VBI_GATE_EN 0x08000000 6208c2ecf20Sopenharmony_ci#define FLD_CLAMP_LEVEL 0x07000000 6218c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 6228c2ecf20Sopenharmony_ci#define FLD_CLAMP_SKIP_CNT 0x00300000 6238c2ecf20Sopenharmony_ci#define FLD_AGC_GAIN 0x000fff00 6248c2ecf20Sopenharmony_ci/* Reserved [7:6] */ 6258c2ecf20Sopenharmony_ci#define FLD_VGA_GAIN 0x0000003f 6268c2ecf20Sopenharmony_ci 6278c2ecf20Sopenharmony_ci/*****************************************************************************/ 6288c2ecf20Sopenharmony_ci#define DFE_CTRL2 0x48c 6298c2ecf20Sopenharmony_ci#define FLD_VGA_ACQUIRE_RANGE 0x00ff0000 6308c2ecf20Sopenharmony_ci#define FLD_VGA_TRACK_RANGE 0x0000ff00 6318c2ecf20Sopenharmony_ci#define FLD_VGA_SYNC 0x000000ff 6328c2ecf20Sopenharmony_ci 6338c2ecf20Sopenharmony_ci/*****************************************************************************/ 6348c2ecf20Sopenharmony_ci#define DFE_CTRL3 0x490 6358c2ecf20Sopenharmony_ci#define FLD_BP_PERCENT 0xff000000 6368c2ecf20Sopenharmony_ci#define FLD_DFT_THRESHOLD 0x00ff0000 6378c2ecf20Sopenharmony_ci/* Reserved [15:12] */ 6388c2ecf20Sopenharmony_ci#define FLD_SYNC_WIDTH_SEL 0x00000600 6398c2ecf20Sopenharmony_ci#define FLD_BP_LOOP_GAIN 0x00000300 6408c2ecf20Sopenharmony_ci#define FLD_SYNC_LOOP_GAIN 0x000000c0 6418c2ecf20Sopenharmony_ci/* Reserved [5:4] */ 6428c2ecf20Sopenharmony_ci#define FLD_AGC_LOOP_GAIN 0x0000000c 6438c2ecf20Sopenharmony_ci#define FLD_DCC_LOOP_GAIN 0x00000003 6448c2ecf20Sopenharmony_ci 6458c2ecf20Sopenharmony_ci/*****************************************************************************/ 6468c2ecf20Sopenharmony_ci#define PLL_CTRL 0x494 6478c2ecf20Sopenharmony_ci#define FLD_PLL_KD 0xff000000 6488c2ecf20Sopenharmony_ci#define FLD_PLL_KI 0x00ff0000 6498c2ecf20Sopenharmony_ci#define FLD_PLL_MAX_OFFSET 0x0000ffff 6508c2ecf20Sopenharmony_ci 6518c2ecf20Sopenharmony_ci/*****************************************************************************/ 6528c2ecf20Sopenharmony_ci#define HTL_CTRL 0x498 6538c2ecf20Sopenharmony_ci/* Reserved [31:24] */ 6548c2ecf20Sopenharmony_ci#define FLD_AUTO_LOCK_SPD 0x00080000 6558c2ecf20Sopenharmony_ci#define FLD_MAN_FAST_LOCK 0x00040000 6568c2ecf20Sopenharmony_ci#define FLD_HTL_15K_EN 0x00020000 6578c2ecf20Sopenharmony_ci#define FLD_HTL_500K_EN 0x00010000 6588c2ecf20Sopenharmony_ci#define FLD_HTL_KD 0x0000ff00 6598c2ecf20Sopenharmony_ci#define FLD_HTL_KI 0x000000ff 6608c2ecf20Sopenharmony_ci 6618c2ecf20Sopenharmony_ci/*****************************************************************************/ 6628c2ecf20Sopenharmony_ci#define COMB_CTRL 0x49c 6638c2ecf20Sopenharmony_ci#define FLD_COMB_PHASE_LIMIT 0xff000000 6648c2ecf20Sopenharmony_ci#define FLD_CCOMB_ERR_LIMIT 0x00ff0000 6658c2ecf20Sopenharmony_ci#define FLD_LUMA_THRESHOLD 0x0000ff00 6668c2ecf20Sopenharmony_ci#define FLD_LCOMB_ERR_LIMIT 0x000000ff 6678c2ecf20Sopenharmony_ci 6688c2ecf20Sopenharmony_ci/*****************************************************************************/ 6698c2ecf20Sopenharmony_ci#define CRUSH_CTRL 0x4a0 6708c2ecf20Sopenharmony_ci#define FLD_WTW_EN 0x00400000 6718c2ecf20Sopenharmony_ci#define FLD_CRUSH_FREQ 0x00200000 6728c2ecf20Sopenharmony_ci#define FLD_MAJ_SEL_EN 0x00100000 6738c2ecf20Sopenharmony_ci#define FLD_MAJ_SEL 0x000c0000 6748c2ecf20Sopenharmony_ci/* Reserved [17:15] */ 6758c2ecf20Sopenharmony_ci#define FLD_SYNC_TIP_REDUCE 0x00007e00 6768c2ecf20Sopenharmony_ci/* Reserved [8:6] */ 6778c2ecf20Sopenharmony_ci#define FLD_SYNC_TIP_INC 0x0000003f 6788c2ecf20Sopenharmony_ci 6798c2ecf20Sopenharmony_ci/*****************************************************************************/ 6808c2ecf20Sopenharmony_ci#define SOFT_RST_CTRL 0x4a4 6818c2ecf20Sopenharmony_ci#define FLD_VD_SOFT_RST 0x00008000 6828c2ecf20Sopenharmony_ci/* Reserved [14:12] */ 6838c2ecf20Sopenharmony_ci#define FLD_REG_RST_MSK 0x00000800 6848c2ecf20Sopenharmony_ci#define FLD_VOF_RST_MSK 0x00000400 6858c2ecf20Sopenharmony_ci#define FLD_MVDET_RST_MSK 0x00000200 6868c2ecf20Sopenharmony_ci#define FLD_VBI_RST_MSK 0x00000100 6878c2ecf20Sopenharmony_ci#define FLD_SCALE_RST_MSK 0x00000080 6888c2ecf20Sopenharmony_ci#define FLD_CHROMA_RST_MSK 0x00000040 6898c2ecf20Sopenharmony_ci#define FLD_LUMA_RST_MSK 0x00000020 6908c2ecf20Sopenharmony_ci#define FLD_VTG_RST_MSK 0x00000010 6918c2ecf20Sopenharmony_ci#define FLD_YCSEP_RST_MSK 0x00000008 6928c2ecf20Sopenharmony_ci#define FLD_SRC_RST_MSK 0x00000004 6938c2ecf20Sopenharmony_ci#define FLD_DFE_RST_MSK 0x00000002 6948c2ecf20Sopenharmony_ci/* Reserved [0] */ 6958c2ecf20Sopenharmony_ci 6968c2ecf20Sopenharmony_ci/*****************************************************************************/ 6978c2ecf20Sopenharmony_ci#define MV_DT_CTRL1 0x4a8 6988c2ecf20Sopenharmony_ci/* Reserved [31:29] */ 6998c2ecf20Sopenharmony_ci#define FLD_PSP_STOP_LINE 0x1f000000 7008c2ecf20Sopenharmony_ci/* Reserved [23:21] */ 7018c2ecf20Sopenharmony_ci#define FLD_PSP_STRT_LINE 0x001f0000 7028c2ecf20Sopenharmony_ci/* Reserved [15] */ 7038c2ecf20Sopenharmony_ci#define FLD_PSP_LLIMW 0x00007f00 7048c2ecf20Sopenharmony_ci/* Reserved [7] */ 7058c2ecf20Sopenharmony_ci#define FLD_PSP_ULIMW 0x0000007f 7068c2ecf20Sopenharmony_ci 7078c2ecf20Sopenharmony_ci/*****************************************************************************/ 7088c2ecf20Sopenharmony_ci#define MV_DT_CTRL2 0x4aC 7098c2ecf20Sopenharmony_ci#define FLD_CS_STOPWIN 0xff000000 7108c2ecf20Sopenharmony_ci#define FLD_CS_STRTWIN 0x00ff0000 7118c2ecf20Sopenharmony_ci#define FLD_CS_WIDTH 0x0000ff00 7128c2ecf20Sopenharmony_ci#define FLD_PSP_SPEC_VAL 0x000000ff 7138c2ecf20Sopenharmony_ci 7148c2ecf20Sopenharmony_ci/*****************************************************************************/ 7158c2ecf20Sopenharmony_ci#define MV_DT_CTRL3 0x4B0 7168c2ecf20Sopenharmony_ci#define FLD_AUTO_RATE_DIS 0x80000000 7178c2ecf20Sopenharmony_ci#define FLD_HLOCK_DIS 0x40000000 7188c2ecf20Sopenharmony_ci#define FLD_SEL_FIELD_CNT 0x20000000 7198c2ecf20Sopenharmony_ci#define FLD_CS_TYPE2_SEL 0x10000000 7208c2ecf20Sopenharmony_ci#define FLD_CS_LINE_THRSH_SEL 0x08000000 7218c2ecf20Sopenharmony_ci#define FLD_CS_ATHRESH_SEL 0x04000000 7228c2ecf20Sopenharmony_ci#define FLD_PSP_SPEC_SEL 0x02000000 7238c2ecf20Sopenharmony_ci#define FLD_PSP_LINES_SEL 0x01000000 7248c2ecf20Sopenharmony_ci#define FLD_FIELD_CNT 0x00f00000 7258c2ecf20Sopenharmony_ci#define FLD_CS_TYPE2_CNT 0x000fc000 7268c2ecf20Sopenharmony_ci#define FLD_CS_LINE_CNT 0x00003f00 7278c2ecf20Sopenharmony_ci#define FLD_CS_ATHRESH_LEV 0x000000ff 7288c2ecf20Sopenharmony_ci 7298c2ecf20Sopenharmony_ci/*****************************************************************************/ 7308c2ecf20Sopenharmony_ci#define CHIP_VERSION 0x4b4 7318c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 7328c2ecf20Sopenharmony_ci#define VERSION 0x4b4 7338c2ecf20Sopenharmony_ci#define FLD_REV_ID 0x000000ff 7348c2ecf20Sopenharmony_ci 7358c2ecf20Sopenharmony_ci/*****************************************************************************/ 7368c2ecf20Sopenharmony_ci#define MISC_DIAG_CTRL 0x4b8 7378c2ecf20Sopenharmony_ci/* Reserved [31:24] */ 7388c2ecf20Sopenharmony_ci#define FLD_SC_CONVERGE_THRESH 0x00ff0000 7398c2ecf20Sopenharmony_ci#define FLD_CCOMB_ERR_LIMIT_3D 0x0000ff00 7408c2ecf20Sopenharmony_ci#define FLD_LCOMB_ERR_LIMIT_3D 0x000000ff 7418c2ecf20Sopenharmony_ci 7428c2ecf20Sopenharmony_ci/*****************************************************************************/ 7438c2ecf20Sopenharmony_ci#define VBI_PASS_CTRL 0x4bc 7448c2ecf20Sopenharmony_ci#define FLD_VBI_PASS_MD 0x00200000 7458c2ecf20Sopenharmony_ci#define FLD_VBI_SETUP_DIS 0x00100000 7468c2ecf20Sopenharmony_ci#define FLD_PASS_LINE_CTRL 0x000fffff 7478c2ecf20Sopenharmony_ci 7488c2ecf20Sopenharmony_ci/*****************************************************************************/ 7498c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 7508c2ecf20Sopenharmony_ci#define VCR_DET_CTRL 0x4c0 7518c2ecf20Sopenharmony_ci#define FLD_EN_FIELD_PHASE_DET 0x80000000 7528c2ecf20Sopenharmony_ci#define FLD_EN_HEAD_SW_DET 0x40000000 7538c2ecf20Sopenharmony_ci#define FLD_FIELD_PHASE_LENGTH 0x01ff0000 7548c2ecf20Sopenharmony_ci/* Reserved [29:25] */ 7558c2ecf20Sopenharmony_ci#define FLD_FIELD_PHASE_DELAY 0x0000ff00 7568c2ecf20Sopenharmony_ci#define FLD_FIELD_PHASE_LIMIT 0x000000f0 7578c2ecf20Sopenharmony_ci#define FLD_HEAD_SW_DET_LIMIT 0x0000000f 7588c2ecf20Sopenharmony_ci 7598c2ecf20Sopenharmony_ci/*****************************************************************************/ 7608c2ecf20Sopenharmony_ci#define DL_CTL 0x800 7618c2ecf20Sopenharmony_ci#define DL_CTL_ADDRESS_LOW 0x800 /* Byte 1 in DL_CTL */ 7628c2ecf20Sopenharmony_ci#define DL_CTL_ADDRESS_HIGH 0x801 /* Byte 2 in DL_CTL */ 7638c2ecf20Sopenharmony_ci#define DL_CTL_DATA 0x802 /* Byte 3 in DL_CTL */ 7648c2ecf20Sopenharmony_ci#define DL_CTL_CONTROL 0x803 /* Byte 4 in DL_CTL */ 7658c2ecf20Sopenharmony_ci/* Reserved [31:5] */ 7668c2ecf20Sopenharmony_ci#define FLD_START_8051 0x10000000 7678c2ecf20Sopenharmony_ci#define FLD_DL_ENABLE 0x08000000 7688c2ecf20Sopenharmony_ci#define FLD_DL_AUTO_INC 0x04000000 7698c2ecf20Sopenharmony_ci#define FLD_DL_MAP 0x03000000 7708c2ecf20Sopenharmony_ci 7718c2ecf20Sopenharmony_ci/*****************************************************************************/ 7728c2ecf20Sopenharmony_ci#define STD_DET_STATUS 0x804 7738c2ecf20Sopenharmony_ci#define FLD_SPARE_STATUS1 0xff000000 7748c2ecf20Sopenharmony_ci#define FLD_SPARE_STATUS0 0x00ff0000 7758c2ecf20Sopenharmony_ci#define FLD_MOD_DET_STATUS1 0x0000ff00 7768c2ecf20Sopenharmony_ci#define FLD_MOD_DET_STATUS0 0x000000ff 7778c2ecf20Sopenharmony_ci 7788c2ecf20Sopenharmony_ci/*****************************************************************************/ 7798c2ecf20Sopenharmony_ci#define AUD_BUILD_NUM 0x806 7808c2ecf20Sopenharmony_ci#define AUD_VER_NUM 0x807 7818c2ecf20Sopenharmony_ci#define STD_DET_CTL 0x808 7828c2ecf20Sopenharmony_ci#define STD_DET_CTL_AUD_CTL 0x808 /* Byte 1 in STD_DET_CTL */ 7838c2ecf20Sopenharmony_ci#define STD_DET_CTL_PREF_MODE 0x809 /* Byte 2 in STD_DET_CTL */ 7848c2ecf20Sopenharmony_ci#define FLD_SPARE_CTL0 0xff000000 7858c2ecf20Sopenharmony_ci#define FLD_DIS_DBX 0x00800000 7868c2ecf20Sopenharmony_ci#define FLD_DIS_BTSC 0x00400000 7878c2ecf20Sopenharmony_ci#define FLD_DIS_NICAM_A2 0x00200000 7888c2ecf20Sopenharmony_ci#define FLD_VIDEO_PRESENT 0x00100000 7898c2ecf20Sopenharmony_ci#define FLD_DW8051_VIDEO_FORMAT 0x000f0000 7908c2ecf20Sopenharmony_ci#define FLD_PREF_DEC_MODE 0x0000ff00 7918c2ecf20Sopenharmony_ci#define FLD_AUD_CONFIG 0x000000ff 7928c2ecf20Sopenharmony_ci 7938c2ecf20Sopenharmony_ci/*****************************************************************************/ 7948c2ecf20Sopenharmony_ci#define DW8051_INT 0x80c 7958c2ecf20Sopenharmony_ci#define FLD_VIDEO_PRESENT_CHANGE 0x80000000 7968c2ecf20Sopenharmony_ci#define FLD_VIDEO_CHANGE 0x40000000 7978c2ecf20Sopenharmony_ci#define FLD_RDS_READY 0x20000000 7988c2ecf20Sopenharmony_ci#define FLD_AC97_INT 0x10000000 7998c2ecf20Sopenharmony_ci#define FLD_NICAM_BIT_ERROR_TOO_HIGH 0x08000000 8008c2ecf20Sopenharmony_ci#define FLD_NICAM_LOCK 0x04000000 8018c2ecf20Sopenharmony_ci#define FLD_NICAM_UNLOCK 0x02000000 8028c2ecf20Sopenharmony_ci#define FLD_DFT4_TH_CMP 0x01000000 8038c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 8048c2ecf20Sopenharmony_ci#define FLD_LOCK_IND_INT 0x00200000 8058c2ecf20Sopenharmony_ci#define FLD_DFT3_TH_CMP 0x00100000 8068c2ecf20Sopenharmony_ci#define FLD_DFT2_TH_CMP 0x00080000 8078c2ecf20Sopenharmony_ci#define FLD_DFT1_TH_CMP 0x00040000 8088c2ecf20Sopenharmony_ci#define FLD_FM2_DFT_TH_CMP 0x00020000 8098c2ecf20Sopenharmony_ci#define FLD_FM1_DFT_TH_CMP 0x00010000 8108c2ecf20Sopenharmony_ci#define FLD_VIDEO_PRESENT_EN 0x00008000 8118c2ecf20Sopenharmony_ci#define FLD_VIDEO_CHANGE_EN 0x00004000 8128c2ecf20Sopenharmony_ci#define FLD_RDS_READY_EN 0x00002000 8138c2ecf20Sopenharmony_ci#define FLD_AC97_INT_EN 0x00001000 8148c2ecf20Sopenharmony_ci#define FLD_NICAM_BIT_ERROR_TOO_HIGH_EN 0x00000800 8158c2ecf20Sopenharmony_ci#define FLD_NICAM_LOCK_EN 0x00000400 8168c2ecf20Sopenharmony_ci#define FLD_NICAM_UNLOCK_EN 0x00000200 8178c2ecf20Sopenharmony_ci#define FLD_DFT4_TH_CMP_EN 0x00000100 8188c2ecf20Sopenharmony_ci/* Reserved [7] */ 8198c2ecf20Sopenharmony_ci#define FLD_DW8051_INT6_CTL1 0x00000040 8208c2ecf20Sopenharmony_ci#define FLD_DW8051_INT5_CTL1 0x00000020 8218c2ecf20Sopenharmony_ci#define FLD_DW8051_INT4_CTL1 0x00000010 8228c2ecf20Sopenharmony_ci#define FLD_DW8051_INT3_CTL1 0x00000008 8238c2ecf20Sopenharmony_ci#define FLD_DW8051_INT2_CTL1 0x00000004 8248c2ecf20Sopenharmony_ci#define FLD_DW8051_INT1_CTL1 0x00000002 8258c2ecf20Sopenharmony_ci#define FLD_DW8051_INT0_CTL1 0x00000001 8268c2ecf20Sopenharmony_ci 8278c2ecf20Sopenharmony_ci/*****************************************************************************/ 8288c2ecf20Sopenharmony_ci#define GENERAL_CTL 0x810 8298c2ecf20Sopenharmony_ci#define FLD_RDS_INT 0x80000000 8308c2ecf20Sopenharmony_ci#define FLD_NBER_INT 0x40000000 8318c2ecf20Sopenharmony_ci#define FLD_NLL_INT 0x20000000 8328c2ecf20Sopenharmony_ci#define FLD_IFL_INT 0x10000000 8338c2ecf20Sopenharmony_ci#define FLD_FDL_INT 0x08000000 8348c2ecf20Sopenharmony_ci#define FLD_AFC_INT 0x04000000 8358c2ecf20Sopenharmony_ci#define FLD_AMC_INT 0x02000000 8368c2ecf20Sopenharmony_ci#define FLD_AC97_INT_CTL 0x01000000 8378c2ecf20Sopenharmony_ci#define FLD_RDS_INT_DIS 0x00800000 8388c2ecf20Sopenharmony_ci#define FLD_NBER_INT_DIS 0x00400000 8398c2ecf20Sopenharmony_ci#define FLD_NLL_INT_DIS 0x00200000 8408c2ecf20Sopenharmony_ci#define FLD_IFL_INT_DIS 0x00100000 8418c2ecf20Sopenharmony_ci#define FLD_FDL_INT_DIS 0x00080000 8428c2ecf20Sopenharmony_ci#define FLD_FC_INT_DIS 0x00040000 8438c2ecf20Sopenharmony_ci#define FLD_AMC_INT_DIS 0x00020000 8448c2ecf20Sopenharmony_ci#define FLD_AC97_INT_DIS 0x00010000 8458c2ecf20Sopenharmony_ci#define FLD_REV_NUM 0x0000ff00 8468c2ecf20Sopenharmony_ci/* Reserved [7:5] */ 8478c2ecf20Sopenharmony_ci#define FLD_DBX_SOFT_RESET_REG 0x00000010 8488c2ecf20Sopenharmony_ci#define FLD_AD_SOFT_RESET_REG 0x00000008 8498c2ecf20Sopenharmony_ci#define FLD_SRC_SOFT_RESET_REG 0x00000004 8508c2ecf20Sopenharmony_ci#define FLD_CDMOD_SOFT_RESET 0x00000002 8518c2ecf20Sopenharmony_ci#define FLD_8051_SOFT_RESET 0x00000001 8528c2ecf20Sopenharmony_ci 8538c2ecf20Sopenharmony_ci/*****************************************************************************/ 8548c2ecf20Sopenharmony_ci#define AAGC_CTL 0x814 8558c2ecf20Sopenharmony_ci#define FLD_AFE_12DB_EN 0x80000000 8568c2ecf20Sopenharmony_ci#define FLD_AAGC_DEFAULT_EN 0x40000000 8578c2ecf20Sopenharmony_ci#define FLD_AAGC_DEFAULT 0x3f000000 8588c2ecf20Sopenharmony_ci/* Reserved [23] */ 8598c2ecf20Sopenharmony_ci#define FLD_AAGC_GAIN 0x00600000 8608c2ecf20Sopenharmony_ci#define FLD_AAGC_TH 0x001f0000 8618c2ecf20Sopenharmony_ci/* Reserved [15:14] */ 8628c2ecf20Sopenharmony_ci#define FLD_AAGC_HYST2 0x00003f00 8638c2ecf20Sopenharmony_ci/* Reserved [7:6] */ 8648c2ecf20Sopenharmony_ci#define FLD_AAGC_HYST1 0x0000003f 8658c2ecf20Sopenharmony_ci 8668c2ecf20Sopenharmony_ci/*****************************************************************************/ 8678c2ecf20Sopenharmony_ci#define IF_SRC_CTL 0x818 8688c2ecf20Sopenharmony_ci#define FLD_DBX_BYPASS 0x80000000 8698c2ecf20Sopenharmony_ci/* Reserved [30:25] */ 8708c2ecf20Sopenharmony_ci#define FLD_IF_SRC_MODE 0x01000000 8718c2ecf20Sopenharmony_ci/* Reserved [23:18] */ 8728c2ecf20Sopenharmony_ci#define FLD_IF_SRC_PHASE_INC 0x0001ffff 8738c2ecf20Sopenharmony_ci 8748c2ecf20Sopenharmony_ci/*****************************************************************************/ 8758c2ecf20Sopenharmony_ci#define ANALOG_DEMOD_CTL 0x81c 8768c2ecf20Sopenharmony_ci#define FLD_ROT1_PHACC_PROG 0xffff0000 8778c2ecf20Sopenharmony_ci/* Reserved [15] */ 8788c2ecf20Sopenharmony_ci#define FLD_FM1_DELAY_FIX 0x00007000 8798c2ecf20Sopenharmony_ci#define FLD_PDF4_SHIFT 0x00000c00 8808c2ecf20Sopenharmony_ci#define FLD_PDF3_SHIFT 0x00000300 8818c2ecf20Sopenharmony_ci#define FLD_PDF2_SHIFT 0x000000c0 8828c2ecf20Sopenharmony_ci#define FLD_PDF1_SHIFT 0x00000030 8838c2ecf20Sopenharmony_ci#define FLD_FMBYPASS_MODE2 0x00000008 8848c2ecf20Sopenharmony_ci#define FLD_FMBYPASS_MODE1 0x00000004 8858c2ecf20Sopenharmony_ci#define FLD_NICAM_MODE 0x00000002 8868c2ecf20Sopenharmony_ci#define FLD_BTSC_FMRADIO_MODE 0x00000001 8878c2ecf20Sopenharmony_ci 8888c2ecf20Sopenharmony_ci/*****************************************************************************/ 8898c2ecf20Sopenharmony_ci#define ROT_FREQ_CTL 0x820 8908c2ecf20Sopenharmony_ci#define FLD_ROT3_PHACC_PROG 0xffff0000 8918c2ecf20Sopenharmony_ci#define FLD_ROT2_PHACC_PROG 0x0000ffff 8928c2ecf20Sopenharmony_ci 8938c2ecf20Sopenharmony_ci/*****************************************************************************/ 8948c2ecf20Sopenharmony_ci#define FM_CTL 0x824 8958c2ecf20Sopenharmony_ci#define FLD_FM2_DC_FB_SHIFT 0xf0000000 8968c2ecf20Sopenharmony_ci#define FLD_FM2_DC_INT_SHIFT 0x0f000000 8978c2ecf20Sopenharmony_ci#define FLD_FM2_AFC_RESET 0x00800000 8988c2ecf20Sopenharmony_ci#define FLD_FM2_DC_PASS_IN 0x00400000 8998c2ecf20Sopenharmony_ci#define FLD_FM2_DAGC_SHIFT 0x00380000 9008c2ecf20Sopenharmony_ci#define FLD_FM2_CORDIC_SHIFT 0x00070000 9018c2ecf20Sopenharmony_ci#define FLD_FM1_DC_FB_SHIFT 0x0000f000 9028c2ecf20Sopenharmony_ci#define FLD_FM1_DC_INT_SHIFT 0x00000f00 9038c2ecf20Sopenharmony_ci#define FLD_FM1_AFC_RESET 0x00000080 9048c2ecf20Sopenharmony_ci#define FLD_FM1_DC_PASS_IN 0x00000040 9058c2ecf20Sopenharmony_ci#define FLD_FM1_DAGC_SHIFT 0x00000038 9068c2ecf20Sopenharmony_ci#define FLD_FM1_CORDIC_SHIFT 0x00000007 9078c2ecf20Sopenharmony_ci 9088c2ecf20Sopenharmony_ci/*****************************************************************************/ 9098c2ecf20Sopenharmony_ci#define LPF_PDF_CTL 0x828 9108c2ecf20Sopenharmony_ci/* Reserved [31:30] */ 9118c2ecf20Sopenharmony_ci#define FLD_LPF32_SHIFT1 0x30000000 9128c2ecf20Sopenharmony_ci#define FLD_LPF32_SHIFT2 0x0c000000 9138c2ecf20Sopenharmony_ci#define FLD_LPF160_SHIFTA 0x03000000 9148c2ecf20Sopenharmony_ci#define FLD_LPF160_SHIFTB 0x00c00000 9158c2ecf20Sopenharmony_ci#define FLD_LPF160_SHIFTC 0x00300000 9168c2ecf20Sopenharmony_ci#define FLD_LPF32_COEF_SEL2 0x000c0000 9178c2ecf20Sopenharmony_ci#define FLD_LPF32_COEF_SEL1 0x00030000 9188c2ecf20Sopenharmony_ci#define FLD_LPF160_COEF_SELC 0x0000c000 9198c2ecf20Sopenharmony_ci#define FLD_LPF160_COEF_SELB 0x00003000 9208c2ecf20Sopenharmony_ci#define FLD_LPF160_COEF_SELA 0x00000c00 9218c2ecf20Sopenharmony_ci#define FLD_LPF160_IN_EN_REG 0x00000300 9228c2ecf20Sopenharmony_ci#define FLD_PDF4_PDF_SEL 0x000000c0 9238c2ecf20Sopenharmony_ci#define FLD_PDF3_PDF_SEL 0x00000030 9248c2ecf20Sopenharmony_ci#define FLD_PDF2_PDF_SEL 0x0000000c 9258c2ecf20Sopenharmony_ci#define FLD_PDF1_PDF_SEL 0x00000003 9268c2ecf20Sopenharmony_ci 9278c2ecf20Sopenharmony_ci/*****************************************************************************/ 9288c2ecf20Sopenharmony_ci#define DFT1_CTL1 0x82c 9298c2ecf20Sopenharmony_ci#define FLD_DFT1_DWELL 0xffff0000 9308c2ecf20Sopenharmony_ci#define FLD_DFT1_FREQ 0x0000ffff 9318c2ecf20Sopenharmony_ci 9328c2ecf20Sopenharmony_ci/*****************************************************************************/ 9338c2ecf20Sopenharmony_ci#define DFT1_CTL2 0x830 9348c2ecf20Sopenharmony_ci#define FLD_DFT1_THRESHOLD 0xffffff00 9358c2ecf20Sopenharmony_ci#define FLD_DFT1_CMP_CTL 0x00000080 9368c2ecf20Sopenharmony_ci#define FLD_DFT1_AVG 0x00000070 9378c2ecf20Sopenharmony_ci/* Reserved [3:1] */ 9388c2ecf20Sopenharmony_ci#define FLD_DFT1_START 0x00000001 9398c2ecf20Sopenharmony_ci 9408c2ecf20Sopenharmony_ci/*****************************************************************************/ 9418c2ecf20Sopenharmony_ci#define DFT1_STATUS 0x834 9428c2ecf20Sopenharmony_ci#define FLD_DFT1_DONE 0x80000000 9438c2ecf20Sopenharmony_ci#define FLD_DFT1_TH_CMP_STAT 0x40000000 9448c2ecf20Sopenharmony_ci#define FLD_DFT1_RESULT 0x3fffffff 9458c2ecf20Sopenharmony_ci 9468c2ecf20Sopenharmony_ci/*****************************************************************************/ 9478c2ecf20Sopenharmony_ci#define DFT2_CTL1 0x838 9488c2ecf20Sopenharmony_ci#define FLD_DFT2_DWELL 0xffff0000 9498c2ecf20Sopenharmony_ci#define FLD_DFT2_FREQ 0x0000ffff 9508c2ecf20Sopenharmony_ci 9518c2ecf20Sopenharmony_ci/*****************************************************************************/ 9528c2ecf20Sopenharmony_ci#define DFT2_CTL2 0x83C 9538c2ecf20Sopenharmony_ci#define FLD_DFT2_THRESHOLD 0xffffff00 9548c2ecf20Sopenharmony_ci#define FLD_DFT2_CMP_CTL 0x00000080 9558c2ecf20Sopenharmony_ci#define FLD_DFT2_AVG 0x00000070 9568c2ecf20Sopenharmony_ci/* Reserved [3:1] */ 9578c2ecf20Sopenharmony_ci#define FLD_DFT2_START 0x00000001 9588c2ecf20Sopenharmony_ci 9598c2ecf20Sopenharmony_ci/*****************************************************************************/ 9608c2ecf20Sopenharmony_ci#define DFT2_STATUS 0x840 9618c2ecf20Sopenharmony_ci#define FLD_DFT2_DONE 0x80000000 9628c2ecf20Sopenharmony_ci#define FLD_DFT2_TH_CMP_STAT 0x40000000 9638c2ecf20Sopenharmony_ci#define FLD_DFT2_RESULT 0x3fffffff 9648c2ecf20Sopenharmony_ci 9658c2ecf20Sopenharmony_ci/*****************************************************************************/ 9668c2ecf20Sopenharmony_ci#define DFT3_CTL1 0x844 9678c2ecf20Sopenharmony_ci#define FLD_DFT3_DWELL 0xffff0000 9688c2ecf20Sopenharmony_ci#define FLD_DFT3_FREQ 0x0000ffff 9698c2ecf20Sopenharmony_ci 9708c2ecf20Sopenharmony_ci/*****************************************************************************/ 9718c2ecf20Sopenharmony_ci#define DFT3_CTL2 0x848 9728c2ecf20Sopenharmony_ci#define FLD_DFT3_THRESHOLD 0xffffff00 9738c2ecf20Sopenharmony_ci#define FLD_DFT3_CMP_CTL 0x00000080 9748c2ecf20Sopenharmony_ci#define FLD_DFT3_AVG 0x00000070 9758c2ecf20Sopenharmony_ci/* Reserved [3:1] */ 9768c2ecf20Sopenharmony_ci#define FLD_DFT3_START 0x00000001 9778c2ecf20Sopenharmony_ci 9788c2ecf20Sopenharmony_ci/*****************************************************************************/ 9798c2ecf20Sopenharmony_ci#define DFT3_STATUS 0x84c 9808c2ecf20Sopenharmony_ci#define FLD_DFT3_DONE 0x80000000 9818c2ecf20Sopenharmony_ci#define FLD_DFT3_TH_CMP_STAT 0x40000000 9828c2ecf20Sopenharmony_ci#define FLD_DFT3_RESULT 0x3fffffff 9838c2ecf20Sopenharmony_ci 9848c2ecf20Sopenharmony_ci/*****************************************************************************/ 9858c2ecf20Sopenharmony_ci#define DFT4_CTL1 0x850 9868c2ecf20Sopenharmony_ci#define FLD_DFT4_DWELL 0xffff0000 9878c2ecf20Sopenharmony_ci#define FLD_DFT4_FREQ 0x0000ffff 9888c2ecf20Sopenharmony_ci 9898c2ecf20Sopenharmony_ci/*****************************************************************************/ 9908c2ecf20Sopenharmony_ci#define DFT4_CTL2 0x854 9918c2ecf20Sopenharmony_ci#define FLD_DFT4_THRESHOLD 0xffffff00 9928c2ecf20Sopenharmony_ci#define FLD_DFT4_CMP_CTL 0x00000080 9938c2ecf20Sopenharmony_ci#define FLD_DFT4_AVG 0x00000070 9948c2ecf20Sopenharmony_ci/* Reserved [3:1] */ 9958c2ecf20Sopenharmony_ci#define FLD_DFT4_START 0x00000001 9968c2ecf20Sopenharmony_ci 9978c2ecf20Sopenharmony_ci/*****************************************************************************/ 9988c2ecf20Sopenharmony_ci#define DFT4_STATUS 0x858 9998c2ecf20Sopenharmony_ci#define FLD_DFT4_DONE 0x80000000 10008c2ecf20Sopenharmony_ci#define FLD_DFT4_TH_CMP_STAT 0x40000000 10018c2ecf20Sopenharmony_ci#define FLD_DFT4_RESULT 0x3fffffff 10028c2ecf20Sopenharmony_ci 10038c2ecf20Sopenharmony_ci/*****************************************************************************/ 10048c2ecf20Sopenharmony_ci#define AM_MTS_DET 0x85c 10058c2ecf20Sopenharmony_ci#define FLD_AM_MTS_MODE 0x80000000 10068c2ecf20Sopenharmony_ci/* Reserved [30:26] */ 10078c2ecf20Sopenharmony_ci#define FLD_AM_SUB 0x02000000 10088c2ecf20Sopenharmony_ci#define FLD_AM_GAIN_EN 0x01000000 10098c2ecf20Sopenharmony_ci/* Reserved [23:16] */ 10108c2ecf20Sopenharmony_ci#define FLD_AMMTS_GAIN_SCALE 0x0000e000 10118c2ecf20Sopenharmony_ci#define FLD_MTS_PDF_SHIFT 0x00001800 10128c2ecf20Sopenharmony_ci#define FLD_AM_REG_GAIN 0x00000700 10138c2ecf20Sopenharmony_ci#define FLD_AGC_REF 0x000000ff 10148c2ecf20Sopenharmony_ci 10158c2ecf20Sopenharmony_ci/*****************************************************************************/ 10168c2ecf20Sopenharmony_ci#define ANALOG_MUX_CTL 0x860 10178c2ecf20Sopenharmony_ci/* Reserved [31:29] */ 10188c2ecf20Sopenharmony_ci#define FLD_MUX21_SEL 0x10000000 10198c2ecf20Sopenharmony_ci#define FLD_MUX20_SEL 0x08000000 10208c2ecf20Sopenharmony_ci#define FLD_MUX19_SEL 0x04000000 10218c2ecf20Sopenharmony_ci#define FLD_MUX18_SEL 0x02000000 10228c2ecf20Sopenharmony_ci#define FLD_MUX17_SEL 0x01000000 10238c2ecf20Sopenharmony_ci#define FLD_MUX16_SEL 0x00800000 10248c2ecf20Sopenharmony_ci#define FLD_MUX15_SEL 0x00400000 10258c2ecf20Sopenharmony_ci#define FLD_MUX14_SEL 0x00300000 10268c2ecf20Sopenharmony_ci#define FLD_MUX13_SEL 0x000C0000 10278c2ecf20Sopenharmony_ci#define FLD_MUX12_SEL 0x00020000 10288c2ecf20Sopenharmony_ci#define FLD_MUX11_SEL 0x00018000 10298c2ecf20Sopenharmony_ci#define FLD_MUX10_SEL 0x00004000 10308c2ecf20Sopenharmony_ci#define FLD_MUX9_SEL 0x00002000 10318c2ecf20Sopenharmony_ci#define FLD_MUX8_SEL 0x00001000 10328c2ecf20Sopenharmony_ci#define FLD_MUX7_SEL 0x00000800 10338c2ecf20Sopenharmony_ci#define FLD_MUX6_SEL 0x00000600 10348c2ecf20Sopenharmony_ci#define FLD_MUX5_SEL 0x00000100 10358c2ecf20Sopenharmony_ci#define FLD_MUX4_SEL 0x000000c0 10368c2ecf20Sopenharmony_ci#define FLD_MUX3_SEL 0x00000030 10378c2ecf20Sopenharmony_ci#define FLD_MUX2_SEL 0x0000000c 10388c2ecf20Sopenharmony_ci#define FLD_MUX1_SEL 0x00000003 10398c2ecf20Sopenharmony_ci 10408c2ecf20Sopenharmony_ci/*****************************************************************************/ 10418c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 10428c2ecf20Sopenharmony_ci#define DPLL_CTRL1 0x864 10438c2ecf20Sopenharmony_ci#define DIG_PLL_CTL1 0x864 10448c2ecf20Sopenharmony_ci 10458c2ecf20Sopenharmony_ci#define FLD_PLL_STATUS 0x07000000 10468c2ecf20Sopenharmony_ci#define FLD_BANDWIDTH_SELECT 0x00030000 10478c2ecf20Sopenharmony_ci#define FLD_PLL_SHIFT_REG 0x00007000 10488c2ecf20Sopenharmony_ci#define FLD_PHASE_SHIFT 0x000007ff 10498c2ecf20Sopenharmony_ci 10508c2ecf20Sopenharmony_ci/*****************************************************************************/ 10518c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 10528c2ecf20Sopenharmony_ci#define DPLL_CTRL2 0x868 10538c2ecf20Sopenharmony_ci#define DIG_PLL_CTL2 0x868 10548c2ecf20Sopenharmony_ci#define FLD_PLL_UNLOCK_THR 0xff000000 10558c2ecf20Sopenharmony_ci#define FLD_PLL_LOCK_THR 0x00ff0000 10568c2ecf20Sopenharmony_ci/* Reserved [15:8] */ 10578c2ecf20Sopenharmony_ci#define FLD_AM_PDF_SEL2 0x000000c0 10588c2ecf20Sopenharmony_ci#define FLD_AM_PDF_SEL1 0x00000030 10598c2ecf20Sopenharmony_ci#define FLD_DPLL_FSM_CTRL 0x0000000c 10608c2ecf20Sopenharmony_ci/* Reserved [1] */ 10618c2ecf20Sopenharmony_ci#define FLD_PLL_PILOT_DET 0x00000001 10628c2ecf20Sopenharmony_ci 10638c2ecf20Sopenharmony_ci/*****************************************************************************/ 10648c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 10658c2ecf20Sopenharmony_ci#define DPLL_CTRL3 0x86c 10668c2ecf20Sopenharmony_ci#define DIG_PLL_CTL3 0x86c 10678c2ecf20Sopenharmony_ci#define FLD_DISABLE_LOOP 0x01000000 10688c2ecf20Sopenharmony_ci#define FLD_A1_DS1_SEL 0x000c0000 10698c2ecf20Sopenharmony_ci#define FLD_A1_DS2_SEL 0x00030000 10708c2ecf20Sopenharmony_ci#define FLD_A1_KI 0x0000ff00 10718c2ecf20Sopenharmony_ci#define FLD_A1_KD 0x000000ff 10728c2ecf20Sopenharmony_ci 10738c2ecf20Sopenharmony_ci/*****************************************************************************/ 10748c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 10758c2ecf20Sopenharmony_ci#define DPLL_CTRL4 0x870 10768c2ecf20Sopenharmony_ci#define DIG_PLL_CTL4 0x870 10778c2ecf20Sopenharmony_ci#define FLD_A2_DS1_SEL 0x000c0000 10788c2ecf20Sopenharmony_ci#define FLD_A2_DS2_SEL 0x00030000 10798c2ecf20Sopenharmony_ci#define FLD_A2_KI 0x0000ff00 10808c2ecf20Sopenharmony_ci#define FLD_A2_KD 0x000000ff 10818c2ecf20Sopenharmony_ci 10828c2ecf20Sopenharmony_ci/*****************************************************************************/ 10838c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 10848c2ecf20Sopenharmony_ci#define DPLL_CTRL5 0x874 10858c2ecf20Sopenharmony_ci#define DIG_PLL_CTL5 0x874 10868c2ecf20Sopenharmony_ci#define FLD_TRK_DS1_SEL 0x000c0000 10878c2ecf20Sopenharmony_ci#define FLD_TRK_DS2_SEL 0x00030000 10888c2ecf20Sopenharmony_ci#define FLD_TRK_KI 0x0000ff00 10898c2ecf20Sopenharmony_ci#define FLD_TRK_KD 0x000000ff 10908c2ecf20Sopenharmony_ci 10918c2ecf20Sopenharmony_ci/*****************************************************************************/ 10928c2ecf20Sopenharmony_ci#define DEEMPH_GAIN_CTL 0x878 10938c2ecf20Sopenharmony_ci#define FLD_DEEMPH2_GAIN 0xFFFF0000 10948c2ecf20Sopenharmony_ci#define FLD_DEEMPH1_GAIN 0x0000FFFF 10958c2ecf20Sopenharmony_ci 10968c2ecf20Sopenharmony_ci/*****************************************************************************/ 10978c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 10988c2ecf20Sopenharmony_ci#define DEEMPH_COEFF1 0x87c 10998c2ecf20Sopenharmony_ci#define DEEMPH_COEF1 0x87c 11008c2ecf20Sopenharmony_ci#define FLD_DEEMPH_B0 0xffff0000 11018c2ecf20Sopenharmony_ci#define FLD_DEEMPH_A0 0x0000ffff 11028c2ecf20Sopenharmony_ci 11038c2ecf20Sopenharmony_ci/*****************************************************************************/ 11048c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 11058c2ecf20Sopenharmony_ci#define DEEMPH_COEFF2 0x880 11068c2ecf20Sopenharmony_ci#define DEEMPH_COEF2 0x880 11078c2ecf20Sopenharmony_ci#define FLD_DEEMPH_B1 0xFFFF0000 11088c2ecf20Sopenharmony_ci#define FLD_DEEMPH_A1 0x0000FFFF 11098c2ecf20Sopenharmony_ci 11108c2ecf20Sopenharmony_ci/*****************************************************************************/ 11118c2ecf20Sopenharmony_ci#define DBX1_CTL1 0x884 11128c2ecf20Sopenharmony_ci#define FLD_DBX1_WBE_GAIN 0xffff0000 11138c2ecf20Sopenharmony_ci#define FLD_DBX1_IN_GAIN 0x0000ffff 11148c2ecf20Sopenharmony_ci 11158c2ecf20Sopenharmony_ci/*****************************************************************************/ 11168c2ecf20Sopenharmony_ci#define DBX1_CTL2 0x888 11178c2ecf20Sopenharmony_ci#define FLD_DBX1_SE_BYPASS 0xffff0000 11188c2ecf20Sopenharmony_ci#define FLD_DBX1_SE_GAIN 0x0000ffff 11198c2ecf20Sopenharmony_ci 11208c2ecf20Sopenharmony_ci/*****************************************************************************/ 11218c2ecf20Sopenharmony_ci#define DBX1_RMS_SE 0x88C 11228c2ecf20Sopenharmony_ci#define FLD_DBX1_RMS_WBE 0xffff0000 11238c2ecf20Sopenharmony_ci#define FLD_DBX1_RMS_SE_FLD 0x0000ffff 11248c2ecf20Sopenharmony_ci 11258c2ecf20Sopenharmony_ci/*****************************************************************************/ 11268c2ecf20Sopenharmony_ci#define DBX2_CTL1 0x890 11278c2ecf20Sopenharmony_ci#define FLD_DBX2_WBE_GAIN 0xffff0000 11288c2ecf20Sopenharmony_ci#define FLD_DBX2_IN_GAIN 0x0000ffff 11298c2ecf20Sopenharmony_ci 11308c2ecf20Sopenharmony_ci/*****************************************************************************/ 11318c2ecf20Sopenharmony_ci#define DBX2_CTL2 0x894 11328c2ecf20Sopenharmony_ci#define FLD_DBX2_SE_BYPASS 0xffff0000 11338c2ecf20Sopenharmony_ci#define FLD_DBX2_SE_GAIN 0x0000ffff 11348c2ecf20Sopenharmony_ci 11358c2ecf20Sopenharmony_ci/*****************************************************************************/ 11368c2ecf20Sopenharmony_ci#define DBX2_RMS_SE 0x898 11378c2ecf20Sopenharmony_ci#define FLD_DBX2_RMS_WBE 0xffff0000 11388c2ecf20Sopenharmony_ci#define FLD_DBX2_RMS_SE_FLD 0x0000ffff 11398c2ecf20Sopenharmony_ci 11408c2ecf20Sopenharmony_ci/*****************************************************************************/ 11418c2ecf20Sopenharmony_ci#define AM_FM_DIFF 0x89c 11428c2ecf20Sopenharmony_ci/* Reserved [31] */ 11438c2ecf20Sopenharmony_ci#define FLD_FM_DIFF_OUT 0x7fff0000 11448c2ecf20Sopenharmony_ci/* Reserved [15] */ 11458c2ecf20Sopenharmony_ci#define FLD_AM_DIFF_OUT 0x00007fff 11468c2ecf20Sopenharmony_ci 11478c2ecf20Sopenharmony_ci/*****************************************************************************/ 11488c2ecf20Sopenharmony_ci#define NICAM_FAW 0x8a0 11498c2ecf20Sopenharmony_ci#define FLD_FAWDETWINEND 0xFc000000 11508c2ecf20Sopenharmony_ci#define FLD_FAWDETWINSTR 0x03ff0000 11518c2ecf20Sopenharmony_ci/* Reserved [15:12] */ 11528c2ecf20Sopenharmony_ci#define FLD_FAWDETTHRSHLD3 0x00000f00 11538c2ecf20Sopenharmony_ci#define FLD_FAWDETTHRSHLD2 0x000000f0 11548c2ecf20Sopenharmony_ci#define FLD_FAWDETTHRSHLD1 0x0000000f 11558c2ecf20Sopenharmony_ci 11568c2ecf20Sopenharmony_ci/*****************************************************************************/ 11578c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 11588c2ecf20Sopenharmony_ci#define DEEMPH_GAIN 0x8a4 11598c2ecf20Sopenharmony_ci#define NICAM_DEEMPHGAIN 0x8a4 11608c2ecf20Sopenharmony_ci/* Reserved [31:18] */ 11618c2ecf20Sopenharmony_ci#define FLD_DEEMPHGAIN 0x0003ffff 11628c2ecf20Sopenharmony_ci 11638c2ecf20Sopenharmony_ci/*****************************************************************************/ 11648c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 11658c2ecf20Sopenharmony_ci#define DEEMPH_NUMER1 0x8a8 11668c2ecf20Sopenharmony_ci#define NICAM_DEEMPHNUMER1 0x8a8 11678c2ecf20Sopenharmony_ci/* Reserved [31:18] */ 11688c2ecf20Sopenharmony_ci#define FLD_DEEMPHNUMER1 0x0003ffff 11698c2ecf20Sopenharmony_ci 11708c2ecf20Sopenharmony_ci/*****************************************************************************/ 11718c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 11728c2ecf20Sopenharmony_ci#define DEEMPH_NUMER2 0x8ac 11738c2ecf20Sopenharmony_ci#define NICAM_DEEMPHNUMER2 0x8ac 11748c2ecf20Sopenharmony_ci/* Reserved [31:18] */ 11758c2ecf20Sopenharmony_ci#define FLD_DEEMPHNUMER2 0x0003ffff 11768c2ecf20Sopenharmony_ci 11778c2ecf20Sopenharmony_ci/*****************************************************************************/ 11788c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 11798c2ecf20Sopenharmony_ci#define DEEMPH_DENOM1 0x8b0 11808c2ecf20Sopenharmony_ci#define NICAM_DEEMPHDENOM1 0x8b0 11818c2ecf20Sopenharmony_ci/* Reserved [31:18] */ 11828c2ecf20Sopenharmony_ci#define FLD_DEEMPHDENOM1 0x0003ffff 11838c2ecf20Sopenharmony_ci 11848c2ecf20Sopenharmony_ci/*****************************************************************************/ 11858c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 11868c2ecf20Sopenharmony_ci#define DEEMPH_DENOM2 0x8b4 11878c2ecf20Sopenharmony_ci#define NICAM_DEEMPHDENOM2 0x8b4 11888c2ecf20Sopenharmony_ci/* Reserved [31:18] */ 11898c2ecf20Sopenharmony_ci#define FLD_DEEMPHDENOM2 0x0003ffff 11908c2ecf20Sopenharmony_ci 11918c2ecf20Sopenharmony_ci/*****************************************************************************/ 11928c2ecf20Sopenharmony_ci#define NICAM_ERRLOG_CTL1 0x8B8 11938c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 11948c2ecf20Sopenharmony_ci#define FLD_ERRINTRPTTHSHLD1 0x0fff0000 11958c2ecf20Sopenharmony_ci/* Reserved [15:12] */ 11968c2ecf20Sopenharmony_ci#define FLD_ERRLOGPERIOD 0x00000fff 11978c2ecf20Sopenharmony_ci 11988c2ecf20Sopenharmony_ci/*****************************************************************************/ 11998c2ecf20Sopenharmony_ci#define NICAM_ERRLOG_CTL2 0x8bc 12008c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 12018c2ecf20Sopenharmony_ci#define FLD_ERRINTRPTTHSHLD3 0x0fff0000 12028c2ecf20Sopenharmony_ci/* Reserved [15:12] */ 12038c2ecf20Sopenharmony_ci#define FLD_ERRINTRPTTHSHLD2 0x00000fff 12048c2ecf20Sopenharmony_ci 12058c2ecf20Sopenharmony_ci/*****************************************************************************/ 12068c2ecf20Sopenharmony_ci#define NICAM_ERRLOG_STS1 0x8c0 12078c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 12088c2ecf20Sopenharmony_ci#define FLD_ERRLOG2 0x0fff0000 12098c2ecf20Sopenharmony_ci/* Reserved [15:12] */ 12108c2ecf20Sopenharmony_ci#define FLD_ERRLOG1 0x00000fff 12118c2ecf20Sopenharmony_ci 12128c2ecf20Sopenharmony_ci/*****************************************************************************/ 12138c2ecf20Sopenharmony_ci#define NICAM_ERRLOG_STS2 0x8c4 12148c2ecf20Sopenharmony_ci/* Reserved [31:12] */ 12158c2ecf20Sopenharmony_ci#define FLD_ERRLOG3 0x00000fff 12168c2ecf20Sopenharmony_ci 12178c2ecf20Sopenharmony_ci/*****************************************************************************/ 12188c2ecf20Sopenharmony_ci#define NICAM_STATUS 0x8c8 12198c2ecf20Sopenharmony_ci/* Reserved [31:20] */ 12208c2ecf20Sopenharmony_ci#define FLD_NICAM_CIB 0x000c0000 12218c2ecf20Sopenharmony_ci#define FLD_NICAM_LOCK_STAT 0x00020000 12228c2ecf20Sopenharmony_ci#define FLD_NICAM_MUTE 0x00010000 12238c2ecf20Sopenharmony_ci#define FLD_NICAMADDIT_DATA 0x0000ffe0 12248c2ecf20Sopenharmony_ci#define FLD_NICAMCNTRL 0x0000001f 12258c2ecf20Sopenharmony_ci 12268c2ecf20Sopenharmony_ci/*****************************************************************************/ 12278c2ecf20Sopenharmony_ci#define DEMATRIX_CTL 0x8cc 12288c2ecf20Sopenharmony_ci#define FLD_AC97_IN_SHIFT 0xf0000000 12298c2ecf20Sopenharmony_ci#define FLD_I2S_IN_SHIFT 0x0f000000 12308c2ecf20Sopenharmony_ci#define FLD_DEMATRIX_SEL_CTL 0x00ff0000 12318c2ecf20Sopenharmony_ci/* Reserved [15:11] */ 12328c2ecf20Sopenharmony_ci#define FLD_DMTRX_BYPASS 0x00000400 12338c2ecf20Sopenharmony_ci#define FLD_DEMATRIX_MODE 0x00000300 12348c2ecf20Sopenharmony_ci/* Reserved [7:6] */ 12358c2ecf20Sopenharmony_ci#define FLD_PH_DBX_SEL 0x00000020 12368c2ecf20Sopenharmony_ci#define FLD_PH_CH_SEL 0x00000010 12378c2ecf20Sopenharmony_ci#define FLD_PHASE_FIX 0x0000000f 12388c2ecf20Sopenharmony_ci 12398c2ecf20Sopenharmony_ci/*****************************************************************************/ 12408c2ecf20Sopenharmony_ci#define PATH1_CTL1 0x8d0 12418c2ecf20Sopenharmony_ci/* Reserved [31:29] */ 12428c2ecf20Sopenharmony_ci#define FLD_PATH1_MUTE_CTL 0x1f000000 12438c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 12448c2ecf20Sopenharmony_ci#define FLD_PATH1_AVC_CG 0x00300000 12458c2ecf20Sopenharmony_ci#define FLD_PATH1_AVC_RT 0x000f0000 12468c2ecf20Sopenharmony_ci#define FLD_PATH1_AVC_AT 0x0000f000 12478c2ecf20Sopenharmony_ci#define FLD_PATH1_AVC_STEREO 0x00000800 12488c2ecf20Sopenharmony_ci#define FLD_PATH1_AVC_CR 0x00000700 12498c2ecf20Sopenharmony_ci#define FLD_PATH1_AVC_RMS_CON 0x000000f0 12508c2ecf20Sopenharmony_ci#define FLD_PATH1_SEL_CTL 0x0000000f 12518c2ecf20Sopenharmony_ci 12528c2ecf20Sopenharmony_ci/*****************************************************************************/ 12538c2ecf20Sopenharmony_ci#define PATH1_VOL_CTL 0x8d4 12548c2ecf20Sopenharmony_ci#define FLD_PATH1_AVC_THRESHOLD 0x7fff0000 12558c2ecf20Sopenharmony_ci#define FLD_PATH1_BAL_LEFT 0x00008000 12568c2ecf20Sopenharmony_ci#define FLD_PATH1_BAL_LEVEL 0x00007f00 12578c2ecf20Sopenharmony_ci#define FLD_PATH1_VOLUME 0x000000ff 12588c2ecf20Sopenharmony_ci 12598c2ecf20Sopenharmony_ci/*****************************************************************************/ 12608c2ecf20Sopenharmony_ci#define PATH1_EQ_CTL 0x8d8 12618c2ecf20Sopenharmony_ci/* Reserved [31:30] */ 12628c2ecf20Sopenharmony_ci#define FLD_PATH1_EQ_TREBLE_VOL 0x3f000000 12638c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 12648c2ecf20Sopenharmony_ci#define FLD_PATH1_EQ_MID_VOL 0x003f0000 12658c2ecf20Sopenharmony_ci/* Reserved [15:14] */ 12668c2ecf20Sopenharmony_ci#define FLD_PATH1_EQ_BASS_VOL 0x00003f00 12678c2ecf20Sopenharmony_ci/* Reserved [7:1] */ 12688c2ecf20Sopenharmony_ci#define FLD_PATH1_EQ_BAND_SEL 0x00000001 12698c2ecf20Sopenharmony_ci 12708c2ecf20Sopenharmony_ci/*****************************************************************************/ 12718c2ecf20Sopenharmony_ci#define PATH1_SC_CTL 0x8dc 12728c2ecf20Sopenharmony_ci#define FLD_PATH1_SC_THRESHOLD 0x7fff0000 12738c2ecf20Sopenharmony_ci#define FLD_PATH1_SC_RT 0x0000f000 12748c2ecf20Sopenharmony_ci#define FLD_PATH1_SC_AT 0x00000f00 12758c2ecf20Sopenharmony_ci#define FLD_PATH1_SC_STEREO 0x00000080 12768c2ecf20Sopenharmony_ci#define FLD_PATH1_SC_CR 0x00000070 12778c2ecf20Sopenharmony_ci#define FLD_PATH1_SC_RMS_CON 0x0000000f 12788c2ecf20Sopenharmony_ci 12798c2ecf20Sopenharmony_ci/*****************************************************************************/ 12808c2ecf20Sopenharmony_ci#define PATH2_CTL1 0x8e0 12818c2ecf20Sopenharmony_ci/* Reserved [31:26] */ 12828c2ecf20Sopenharmony_ci#define FLD_PATH2_MUTE_CTL 0x03000000 12838c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 12848c2ecf20Sopenharmony_ci#define FLD_PATH2_AVC_CG 0x00300000 12858c2ecf20Sopenharmony_ci#define FLD_PATH2_AVC_RT 0x000f0000 12868c2ecf20Sopenharmony_ci#define FLD_PATH2_AVC_AT 0x0000f000 12878c2ecf20Sopenharmony_ci#define FLD_PATH2_AVC_STEREO 0x00000800 12888c2ecf20Sopenharmony_ci#define FLD_PATH2_AVC_CR 0x00000700 12898c2ecf20Sopenharmony_ci#define FLD_PATH2_AVC_RMS_CON 0x000000f0 12908c2ecf20Sopenharmony_ci#define FLD_PATH2_SEL_CTL 0x0000000f 12918c2ecf20Sopenharmony_ci 12928c2ecf20Sopenharmony_ci/*****************************************************************************/ 12938c2ecf20Sopenharmony_ci#define PATH2_VOL_CTL 0x8e4 12948c2ecf20Sopenharmony_ci#define FLD_PATH2_AVC_THRESHOLD 0xffff0000 12958c2ecf20Sopenharmony_ci#define FLD_PATH2_BAL_LEFT 0x00008000 12968c2ecf20Sopenharmony_ci#define FLD_PATH2_BAL_LEVEL 0x00007f00 12978c2ecf20Sopenharmony_ci#define FLD_PATH2_VOLUME 0x000000ff 12988c2ecf20Sopenharmony_ci 12998c2ecf20Sopenharmony_ci/*****************************************************************************/ 13008c2ecf20Sopenharmony_ci#define PATH2_EQ_CTL 0x8e8 13018c2ecf20Sopenharmony_ci/* Reserved [31:30] */ 13028c2ecf20Sopenharmony_ci#define FLD_PATH2_EQ_TREBLE_VOL 0x3f000000 13038c2ecf20Sopenharmony_ci/* Reserved [23:22] */ 13048c2ecf20Sopenharmony_ci#define FLD_PATH2_EQ_MID_VOL 0x003f0000 13058c2ecf20Sopenharmony_ci/* Reserved [15:14] */ 13068c2ecf20Sopenharmony_ci#define FLD_PATH2_EQ_BASS_VOL 0x00003f00 13078c2ecf20Sopenharmony_ci/* Reserved [7:1] */ 13088c2ecf20Sopenharmony_ci#define FLD_PATH2_EQ_BAND_SEL 0x00000001 13098c2ecf20Sopenharmony_ci 13108c2ecf20Sopenharmony_ci/*****************************************************************************/ 13118c2ecf20Sopenharmony_ci#define PATH2_SC_CTL 0x8eC 13128c2ecf20Sopenharmony_ci#define FLD_PATH2_SC_THRESHOLD 0xffff0000 13138c2ecf20Sopenharmony_ci#define FLD_PATH2_SC_RT 0x0000f000 13148c2ecf20Sopenharmony_ci#define FLD_PATH2_SC_AT 0x00000f00 13158c2ecf20Sopenharmony_ci#define FLD_PATH2_SC_STEREO 0x00000080 13168c2ecf20Sopenharmony_ci#define FLD_PATH2_SC_CR 0x00000070 13178c2ecf20Sopenharmony_ci#define FLD_PATH2_SC_RMS_CON 0x0000000f 13188c2ecf20Sopenharmony_ci 13198c2ecf20Sopenharmony_ci/*****************************************************************************/ 13208c2ecf20Sopenharmony_ci#define SRC_CTL 0x8f0 13218c2ecf20Sopenharmony_ci#define FLD_SRC_STATUS 0xffffff00 13228c2ecf20Sopenharmony_ci#define FLD_FIFO_LF_EN 0x000000fc 13238c2ecf20Sopenharmony_ci#define FLD_BYPASS_LI 0x00000002 13248c2ecf20Sopenharmony_ci#define FLD_BYPASS_PF 0x00000001 13258c2ecf20Sopenharmony_ci 13268c2ecf20Sopenharmony_ci/*****************************************************************************/ 13278c2ecf20Sopenharmony_ci#define SRC_LF_COEF 0x8f4 13288c2ecf20Sopenharmony_ci#define FLD_LOOP_FILTER_COEF2 0xffff0000 13298c2ecf20Sopenharmony_ci#define FLD_LOOP_FILTER_COEF1 0x0000ffff 13308c2ecf20Sopenharmony_ci 13318c2ecf20Sopenharmony_ci/*****************************************************************************/ 13328c2ecf20Sopenharmony_ci#define SRC1_CTL 0x8f8 13338c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 13348c2ecf20Sopenharmony_ci#define FLD_SRC1_FIFO_RD_TH 0x0f000000 13358c2ecf20Sopenharmony_ci/* Reserved [23:18] */ 13368c2ecf20Sopenharmony_ci#define FLD_SRC1_PHASE_INC 0x0003ffff 13378c2ecf20Sopenharmony_ci 13388c2ecf20Sopenharmony_ci/*****************************************************************************/ 13398c2ecf20Sopenharmony_ci#define SRC2_CTL 0x8fc 13408c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 13418c2ecf20Sopenharmony_ci#define FLD_SRC2_FIFO_RD_TH 0x0f000000 13428c2ecf20Sopenharmony_ci/* Reserved [23:18] */ 13438c2ecf20Sopenharmony_ci#define FLD_SRC2_PHASE_INC 0x0003ffff 13448c2ecf20Sopenharmony_ci 13458c2ecf20Sopenharmony_ci/*****************************************************************************/ 13468c2ecf20Sopenharmony_ci#define SRC3_CTL 0x900 13478c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 13488c2ecf20Sopenharmony_ci#define FLD_SRC3_FIFO_RD_TH 0x0f000000 13498c2ecf20Sopenharmony_ci/* Reserved [23:18] */ 13508c2ecf20Sopenharmony_ci#define FLD_SRC3_PHASE_INC 0x0003ffff 13518c2ecf20Sopenharmony_ci 13528c2ecf20Sopenharmony_ci/*****************************************************************************/ 13538c2ecf20Sopenharmony_ci#define SRC4_CTL 0x904 13548c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 13558c2ecf20Sopenharmony_ci#define FLD_SRC4_FIFO_RD_TH 0x0f000000 13568c2ecf20Sopenharmony_ci/* Reserved [23:18] */ 13578c2ecf20Sopenharmony_ci#define FLD_SRC4_PHASE_INC 0x0003ffff 13588c2ecf20Sopenharmony_ci 13598c2ecf20Sopenharmony_ci/*****************************************************************************/ 13608c2ecf20Sopenharmony_ci#define SRC5_CTL 0x908 13618c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 13628c2ecf20Sopenharmony_ci#define FLD_SRC5_FIFO_RD_TH 0x0f000000 13638c2ecf20Sopenharmony_ci/* Reserved [23:18] */ 13648c2ecf20Sopenharmony_ci#define FLD_SRC5_PHASE_INC 0x0003ffff 13658c2ecf20Sopenharmony_ci 13668c2ecf20Sopenharmony_ci/*****************************************************************************/ 13678c2ecf20Sopenharmony_ci#define SRC6_CTL 0x90c 13688c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 13698c2ecf20Sopenharmony_ci#define FLD_SRC6_FIFO_RD_TH 0x0f000000 13708c2ecf20Sopenharmony_ci/* Reserved [23:18] */ 13718c2ecf20Sopenharmony_ci#define FLD_SRC6_PHASE_INC 0x0003ffff 13728c2ecf20Sopenharmony_ci 13738c2ecf20Sopenharmony_ci/*****************************************************************************/ 13748c2ecf20Sopenharmony_ci#define BAND_OUT_SEL 0x910 13758c2ecf20Sopenharmony_ci#define FLD_SRC6_IN_SEL 0xc0000000 13768c2ecf20Sopenharmony_ci#define FLD_SRC6_CLK_SEL 0x30000000 13778c2ecf20Sopenharmony_ci#define FLD_SRC5_IN_SEL 0x0c000000 13788c2ecf20Sopenharmony_ci#define FLD_SRC5_CLK_SEL 0x03000000 13798c2ecf20Sopenharmony_ci#define FLD_SRC4_IN_SEL 0x00c00000 13808c2ecf20Sopenharmony_ci#define FLD_SRC4_CLK_SEL 0x00300000 13818c2ecf20Sopenharmony_ci#define FLD_SRC3_IN_SEL 0x000c0000 13828c2ecf20Sopenharmony_ci#define FLD_SRC3_CLK_SEL 0x00030000 13838c2ecf20Sopenharmony_ci#define FLD_BASEBAND_BYPASS_CTL 0x0000ff00 13848c2ecf20Sopenharmony_ci#define FLD_AC97_SRC_SEL 0x000000c0 13858c2ecf20Sopenharmony_ci#define FLD_I2S_SRC_SEL 0x00000030 13868c2ecf20Sopenharmony_ci#define FLD_PARALLEL2_SRC_SEL 0x0000000c 13878c2ecf20Sopenharmony_ci#define FLD_PARALLEL1_SRC_SEL 0x00000003 13888c2ecf20Sopenharmony_ci 13898c2ecf20Sopenharmony_ci/*****************************************************************************/ 13908c2ecf20Sopenharmony_ci#define I2S_IN_CTL 0x914 13918c2ecf20Sopenharmony_ci/* Reserved [31:11] */ 13928c2ecf20Sopenharmony_ci#define FLD_I2S_UP2X_BW20K 0x00000400 13938c2ecf20Sopenharmony_ci#define FLD_I2S_UP2X_BYPASS 0x00000200 13948c2ecf20Sopenharmony_ci#define FLD_I2S_IN_MASTER_MODE 0x00000100 13958c2ecf20Sopenharmony_ci#define FLD_I2S_IN_SONY_MODE 0x00000080 13968c2ecf20Sopenharmony_ci#define FLD_I2S_IN_RIGHT_JUST 0x00000040 13978c2ecf20Sopenharmony_ci#define FLD_I2S_IN_WS_SEL 0x00000020 13988c2ecf20Sopenharmony_ci#define FLD_I2S_IN_BCN_DEL 0x0000001f 13998c2ecf20Sopenharmony_ci 14008c2ecf20Sopenharmony_ci/*****************************************************************************/ 14018c2ecf20Sopenharmony_ci#define I2S_OUT_CTL 0x918 14028c2ecf20Sopenharmony_ci/* Reserved [31:17] */ 14038c2ecf20Sopenharmony_ci#define FLD_I2S_OUT_SOFT_RESET_EN 0x00010000 14048c2ecf20Sopenharmony_ci/* Reserved [15:9] */ 14058c2ecf20Sopenharmony_ci#define FLD_I2S_OUT_MASTER_MODE 0x00000100 14068c2ecf20Sopenharmony_ci#define FLD_I2S_OUT_SONY_MODE 0x00000080 14078c2ecf20Sopenharmony_ci#define FLD_I2S_OUT_RIGHT_JUST 0x00000040 14088c2ecf20Sopenharmony_ci#define FLD_I2S_OUT_WS_SEL 0x00000020 14098c2ecf20Sopenharmony_ci#define FLD_I2S_OUT_BCN_DEL 0x0000001f 14108c2ecf20Sopenharmony_ci 14118c2ecf20Sopenharmony_ci/*****************************************************************************/ 14128c2ecf20Sopenharmony_ci#define AC97_CTL 0x91c 14138c2ecf20Sopenharmony_ci/* Reserved [31:26] */ 14148c2ecf20Sopenharmony_ci#define FLD_AC97_UP2X_BW20K 0x02000000 14158c2ecf20Sopenharmony_ci#define FLD_AC97_UP2X_BYPASS 0x01000000 14168c2ecf20Sopenharmony_ci/* Reserved [23:17] */ 14178c2ecf20Sopenharmony_ci#define FLD_AC97_RST_ACL 0x00010000 14188c2ecf20Sopenharmony_ci/* Reserved [15:9] */ 14198c2ecf20Sopenharmony_ci#define FLD_AC97_WAKE_UP_SYNC 0x00000100 14208c2ecf20Sopenharmony_ci/* Reserved [7:1] */ 14218c2ecf20Sopenharmony_ci#define FLD_AC97_SHUTDOWN 0x00000001 14228c2ecf20Sopenharmony_ci 14238c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 14248c2ecf20Sopenharmony_ci#define QPSK_IAGC_CTL1 0x94c 14258c2ecf20Sopenharmony_ci#define QPSK_IAGC_CTL2 0x950 14268c2ecf20Sopenharmony_ci#define QPSK_FEPR_FREQ 0x954 14278c2ecf20Sopenharmony_ci#define QPSK_BTL_CTL1 0x958 14288c2ecf20Sopenharmony_ci#define QPSK_BTL_CTL2 0x95c 14298c2ecf20Sopenharmony_ci#define QPSK_CTL_CTL1 0x960 14308c2ecf20Sopenharmony_ci#define QPSK_CTL_CTL2 0x964 14318c2ecf20Sopenharmony_ci#define QPSK_MF_FAGC_CTL 0x968 14328c2ecf20Sopenharmony_ci#define QPSK_EQ_CTL 0x96c 14338c2ecf20Sopenharmony_ci#define QPSK_LOCK_CTL 0x970 14348c2ecf20Sopenharmony_ci 14358c2ecf20Sopenharmony_ci/*****************************************************************************/ 14368c2ecf20Sopenharmony_ci#define FM1_DFT_CTL 0x9a8 14378c2ecf20Sopenharmony_ci#define FLD_FM1_DFT_THRESHOLD 0xffff0000 14388c2ecf20Sopenharmony_ci/* Reserved [15:8] */ 14398c2ecf20Sopenharmony_ci#define FLD_FM1_DFT_CMP_CTL 0x00000080 14408c2ecf20Sopenharmony_ci#define FLD_FM1_DFT_AVG 0x00000070 14418c2ecf20Sopenharmony_ci/* Reserved [3:1] */ 14428c2ecf20Sopenharmony_ci#define FLD_FM1_DFT_START 0x00000001 14438c2ecf20Sopenharmony_ci 14448c2ecf20Sopenharmony_ci/*****************************************************************************/ 14458c2ecf20Sopenharmony_ci#define FM1_DFT_STATUS 0x9ac 14468c2ecf20Sopenharmony_ci#define FLD_FM1_DFT_DONE 0x80000000 14478c2ecf20Sopenharmony_ci/* Reserved [30:19] */ 14488c2ecf20Sopenharmony_ci#define FLD_FM_DFT_TH_CMP 0x00040000 14498c2ecf20Sopenharmony_ci#define FLD_FM1_DFT 0x0003ffff 14508c2ecf20Sopenharmony_ci 14518c2ecf20Sopenharmony_ci/*****************************************************************************/ 14528c2ecf20Sopenharmony_ci#define FM2_DFT_CTL 0x9b0 14538c2ecf20Sopenharmony_ci#define FLD_FM2_DFT_THRESHOLD 0xffff0000 14548c2ecf20Sopenharmony_ci/* Reserved [15:8] */ 14558c2ecf20Sopenharmony_ci#define FLD_FM2_DFT_CMP_CTL 0x00000080 14568c2ecf20Sopenharmony_ci#define FLD_FM2_DFT_AVG 0x00000070 14578c2ecf20Sopenharmony_ci/* Reserved [3:1] */ 14588c2ecf20Sopenharmony_ci#define FLD_FM2_DFT_START 0x00000001 14598c2ecf20Sopenharmony_ci 14608c2ecf20Sopenharmony_ci/*****************************************************************************/ 14618c2ecf20Sopenharmony_ci#define FM2_DFT_STATUS 0x9b4 14628c2ecf20Sopenharmony_ci#define FLD_FM2_DFT_DONE 0x80000000 14638c2ecf20Sopenharmony_ci/* Reserved [30:19] */ 14648c2ecf20Sopenharmony_ci#define FLD_FM2_DFT_TH_CMP_STAT 0x00040000 14658c2ecf20Sopenharmony_ci#define FLD_FM2_DFT 0x0003ffff 14668c2ecf20Sopenharmony_ci 14678c2ecf20Sopenharmony_ci/*****************************************************************************/ 14688c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 14698c2ecf20Sopenharmony_ci#define AAGC_STATUS_REG 0x9b8 14708c2ecf20Sopenharmony_ci#define AAGC_STATUS 0x9b8 14718c2ecf20Sopenharmony_ci/* Reserved [31:27] */ 14728c2ecf20Sopenharmony_ci#define FLD_FM2_DAGC_OUT 0x07000000 14738c2ecf20Sopenharmony_ci/* Reserved [23:19] */ 14748c2ecf20Sopenharmony_ci#define FLD_FM1_DAGC_OUT 0x00070000 14758c2ecf20Sopenharmony_ci/* Reserved [15:6] */ 14768c2ecf20Sopenharmony_ci#define FLD_AFE_VGA_OUT 0x0000003f 14778c2ecf20Sopenharmony_ci 14788c2ecf20Sopenharmony_ci/*****************************************************************************/ 14798c2ecf20Sopenharmony_ci#define MTS_GAIN_STATUS 0x9bc 14808c2ecf20Sopenharmony_ci/* Reserved [31:14] */ 14818c2ecf20Sopenharmony_ci#define FLD_MTS_GAIN 0x00003fff 14828c2ecf20Sopenharmony_ci 14838c2ecf20Sopenharmony_ci#define RDS_OUT 0x9c0 14848c2ecf20Sopenharmony_ci#define FLD_RDS_Q 0xffff0000 14858c2ecf20Sopenharmony_ci#define FLD_RDS_I 0x0000ffff 14868c2ecf20Sopenharmony_ci 14878c2ecf20Sopenharmony_ci/*****************************************************************************/ 14888c2ecf20Sopenharmony_ci#define AUTOCONFIG_REG 0x9c4 14898c2ecf20Sopenharmony_ci/* Reserved [31:4] */ 14908c2ecf20Sopenharmony_ci#define FLD_AUTOCONFIG_MODE 0x0000000f 14918c2ecf20Sopenharmony_ci 14928c2ecf20Sopenharmony_ci#define FM_AFC 0x9c8 14938c2ecf20Sopenharmony_ci#define FLD_FM2_AFC 0xffff0000 14948c2ecf20Sopenharmony_ci#define FLD_FM1_AFC 0x0000ffff 14958c2ecf20Sopenharmony_ci 14968c2ecf20Sopenharmony_ci/*****************************************************************************/ 14978c2ecf20Sopenharmony_ci/* Cx231xx redefine */ 14988c2ecf20Sopenharmony_ci#define NEW_SPARE 0x9cc 14998c2ecf20Sopenharmony_ci#define NEW_SPARE_REG 0x9cc 15008c2ecf20Sopenharmony_ci 15018c2ecf20Sopenharmony_ci/*****************************************************************************/ 15028c2ecf20Sopenharmony_ci#define DBX_ADJ 0x9d0 15038c2ecf20Sopenharmony_ci/* Reserved [31:28] */ 15048c2ecf20Sopenharmony_ci#define FLD_DBX2_ADJ 0x0fff0000 15058c2ecf20Sopenharmony_ci/* Reserved [15:12] */ 15068c2ecf20Sopenharmony_ci#define FLD_DBX1_ADJ 0x00000fff 15078c2ecf20Sopenharmony_ci 15088c2ecf20Sopenharmony_ci#define VID_FMT_AUTO 0 15098c2ecf20Sopenharmony_ci#define VID_FMT_NTSC_M 1 15108c2ecf20Sopenharmony_ci#define VID_FMT_NTSC_J 2 15118c2ecf20Sopenharmony_ci#define VID_FMT_NTSC_443 3 15128c2ecf20Sopenharmony_ci#define VID_FMT_PAL_BDGHI 4 15138c2ecf20Sopenharmony_ci#define VID_FMT_PAL_M 5 15148c2ecf20Sopenharmony_ci#define VID_FMT_PAL_N 6 15158c2ecf20Sopenharmony_ci#define VID_FMT_PAL_NC 7 15168c2ecf20Sopenharmony_ci#define VID_FMT_PAL_60 8 15178c2ecf20Sopenharmony_ci#define VID_FMT_SECAM 12 15188c2ecf20Sopenharmony_ci#define VID_FMT_SECAM_60 13 15198c2ecf20Sopenharmony_ci 15208c2ecf20Sopenharmony_ci#define INPUT_MODE_CVBS_0 0 /* INPUT_MODE_VALUE(0) */ 15218c2ecf20Sopenharmony_ci#define INPUT_MODE_YC_1 1 /* INPUT_MODE_VALUE(1) */ 15228c2ecf20Sopenharmony_ci#define INPUT_MODE_YC2_2 2 /* INPUT_MODE_VALUE(2) */ 15238c2ecf20Sopenharmony_ci#define INPUT_MODE_YUV_3 3 /* INPUT_MODE_VALUE(3) */ 15248c2ecf20Sopenharmony_ci 15258c2ecf20Sopenharmony_ci#define LUMA_LPF_LOW_BANDPASS 0 /* 0.6Mhz LPF BW */ 15268c2ecf20Sopenharmony_ci#define LUMA_LPF_MEDIUM_BANDPASS 1 /* 1.0Mhz LPF BW */ 15278c2ecf20Sopenharmony_ci#define LUMA_LPF_HIGH_BANDPASS 2 /* 1.5Mhz LPF BW */ 15288c2ecf20Sopenharmony_ci 15298c2ecf20Sopenharmony_ci#define UV_LPF_LOW_BANDPASS 0 /* 0.6Mhz LPF BW */ 15308c2ecf20Sopenharmony_ci#define UV_LPF_MEDIUM_BANDPASS 1 /* 1.0Mhz LPF BW */ 15318c2ecf20Sopenharmony_ci#define UV_LPF_HIGH_BANDPASS 2 /* 1.5Mhz LPF BW */ 15328c2ecf20Sopenharmony_ci 15338c2ecf20Sopenharmony_ci#define TWO_TAP_FILT 0 15348c2ecf20Sopenharmony_ci#define THREE_TAP_FILT 1 15358c2ecf20Sopenharmony_ci#define FOUR_TAP_FILT 2 15368c2ecf20Sopenharmony_ci#define FIVE_TAP_FILT 3 15378c2ecf20Sopenharmony_ci 15388c2ecf20Sopenharmony_ci#define AUD_CHAN_SRC_PARALLEL 0 15398c2ecf20Sopenharmony_ci#define AUD_CHAN_SRC_I2S_INPUT 1 15408c2ecf20Sopenharmony_ci#define AUD_CHAN_SRC_FLATIRON 2 15418c2ecf20Sopenharmony_ci#define AUD_CHAN_SRC_PARALLEL3 3 15428c2ecf20Sopenharmony_ci 15438c2ecf20Sopenharmony_ci#define OUT_MODE_601 0 15448c2ecf20Sopenharmony_ci#define OUT_MODE_656 1 15458c2ecf20Sopenharmony_ci#define OUT_MODE_VIP11 2 15468c2ecf20Sopenharmony_ci#define OUT_MODE_VIP20 3 15478c2ecf20Sopenharmony_ci 15488c2ecf20Sopenharmony_ci#define PHASE_INC_49MHZ 0x0df22 15498c2ecf20Sopenharmony_ci#define PHASE_INC_56MHZ 0x0fa5b 15508c2ecf20Sopenharmony_ci#define PHASE_INC_28MHZ 0x010000 15518c2ecf20Sopenharmony_ci 15528c2ecf20Sopenharmony_ci#endif 1553