18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci   cx231xx_conf-reg.h - driver for Conexant Cx23100/101/102 USB
48c2ecf20Sopenharmony_ci			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 _POLARIS_REG_H_
118c2ecf20Sopenharmony_ci#define _POLARIS_REG_H_
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define BOARD_CFG_STAT          0x0
148c2ecf20Sopenharmony_ci#define TS_MODE_REG             0x4
158c2ecf20Sopenharmony_ci#define TS1_CFG_REG             0x8
168c2ecf20Sopenharmony_ci#define TS1_LENGTH_REG          0xc
178c2ecf20Sopenharmony_ci#define TS2_CFG_REG             0x10
188c2ecf20Sopenharmony_ci#define TS2_LENGTH_REG          0x14
198c2ecf20Sopenharmony_ci#define EP_MODE_SET             0x18
208c2ecf20Sopenharmony_ci#define CIR_PWR_PTN1            0x1c
218c2ecf20Sopenharmony_ci#define CIR_PWR_PTN2            0x20
228c2ecf20Sopenharmony_ci#define CIR_PWR_PTN3            0x24
238c2ecf20Sopenharmony_ci#define CIR_PWR_MASK0           0x28
248c2ecf20Sopenharmony_ci#define CIR_PWR_MASK1           0x2c
258c2ecf20Sopenharmony_ci#define CIR_PWR_MASK2           0x30
268c2ecf20Sopenharmony_ci#define CIR_GAIN                0x34
278c2ecf20Sopenharmony_ci#define CIR_CAR_REG             0x38
288c2ecf20Sopenharmony_ci#define CIR_OT_CFG1             0x40
298c2ecf20Sopenharmony_ci#define CIR_OT_CFG2             0x44
308c2ecf20Sopenharmony_ci#define GBULK_BIT_EN            0x68
318c2ecf20Sopenharmony_ci#define PWR_CTL_EN              0x74
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci/* Polaris Endpoints capture mask for register EP_MODE_SET */
348c2ecf20Sopenharmony_ci#define ENABLE_EP1              0x01   /* Bit[0]=1 */
358c2ecf20Sopenharmony_ci#define ENABLE_EP2              0x02   /* Bit[1]=1 */
368c2ecf20Sopenharmony_ci#define ENABLE_EP3              0x04   /* Bit[2]=1 */
378c2ecf20Sopenharmony_ci#define ENABLE_EP4              0x08   /* Bit[3]=1 */
388c2ecf20Sopenharmony_ci#define ENABLE_EP5              0x10   /* Bit[4]=1 */
398c2ecf20Sopenharmony_ci#define ENABLE_EP6              0x20   /* Bit[5]=1 */
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci/* Bit definition for register PWR_CTL_EN */
428c2ecf20Sopenharmony_ci#define PWR_MODE_MASK           0x17f
438c2ecf20Sopenharmony_ci#define PWR_AV_EN               0x08   /* bit3 */
448c2ecf20Sopenharmony_ci#define PWR_ISO_EN              0x40   /* bit6 */
458c2ecf20Sopenharmony_ci#define PWR_AV_MODE             0x30   /* bit4,5  */
468c2ecf20Sopenharmony_ci#define PWR_TUNER_EN            0x04   /* bit2 */
478c2ecf20Sopenharmony_ci#define PWR_DEMOD_EN            0x02   /* bit1 */
488c2ecf20Sopenharmony_ci#define I2C_DEMOD_EN            0x01   /* bit0 */
498c2ecf20Sopenharmony_ci#define PWR_RESETOUT_EN         0x100  /* bit8 */
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_cienum AV_MODE{
528c2ecf20Sopenharmony_ci	POLARIS_AVMODE_DEFAULT = 0,
538c2ecf20Sopenharmony_ci	POLARIS_AVMODE_DIGITAL = 0x10,
548c2ecf20Sopenharmony_ci	POLARIS_AVMODE_ANALOGT_TV = 0x20,
558c2ecf20Sopenharmony_ci	POLARIS_AVMODE_ENXTERNAL_AV = 0x30,
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci};
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci/* Colibri Registers */
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci#define SINGLE_ENDED            0x0
628c2ecf20Sopenharmony_ci#define LOW_IF                  0x4
638c2ecf20Sopenharmony_ci#define EU_IF                   0x9
648c2ecf20Sopenharmony_ci#define US_IF                   0xa
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci#define SUP_BLK_TUNE1           0x00
678c2ecf20Sopenharmony_ci#define SUP_BLK_TUNE2           0x01
688c2ecf20Sopenharmony_ci#define SUP_BLK_TUNE3           0x02
698c2ecf20Sopenharmony_ci#define SUP_BLK_XTAL            0x03
708c2ecf20Sopenharmony_ci#define SUP_BLK_PLL1            0x04
718c2ecf20Sopenharmony_ci#define SUP_BLK_PLL2            0x05
728c2ecf20Sopenharmony_ci#define SUP_BLK_PLL3            0x06
738c2ecf20Sopenharmony_ci#define SUP_BLK_REF             0x07
748c2ecf20Sopenharmony_ci#define SUP_BLK_PWRDN           0x08
758c2ecf20Sopenharmony_ci#define SUP_BLK_TESTPAD         0x09
768c2ecf20Sopenharmony_ci#define ADC_COM_INT5_STAB_REF   0x0a
778c2ecf20Sopenharmony_ci#define ADC_COM_QUANT           0x0b
788c2ecf20Sopenharmony_ci#define ADC_COM_BIAS1           0x0c
798c2ecf20Sopenharmony_ci#define ADC_COM_BIAS2           0x0d
808c2ecf20Sopenharmony_ci#define ADC_COM_BIAS3           0x0e
818c2ecf20Sopenharmony_ci#define TESTBUS_CTRL            0x12
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci#define FLD_PWRDN_TUNING_BIAS	0x10
848c2ecf20Sopenharmony_ci#define FLD_PWRDN_ENABLE_PLL	0x08
858c2ecf20Sopenharmony_ci#define FLD_PWRDN_PD_BANDGAP	0x04
868c2ecf20Sopenharmony_ci#define FLD_PWRDN_PD_BIAS	0x02
878c2ecf20Sopenharmony_ci#define FLD_PWRDN_PD_TUNECK	0x01
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ci#define ADC_STATUS_CH1          0x20
918c2ecf20Sopenharmony_ci#define ADC_STATUS_CH2          0x40
928c2ecf20Sopenharmony_ci#define ADC_STATUS_CH3          0x60
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ci#define ADC_STATUS2_CH1         0x21
958c2ecf20Sopenharmony_ci#define ADC_STATUS2_CH2         0x41
968c2ecf20Sopenharmony_ci#define ADC_STATUS2_CH3         0x61
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci#define ADC_CAL_ATEST_CH1       0x22
998c2ecf20Sopenharmony_ci#define ADC_CAL_ATEST_CH2       0x42
1008c2ecf20Sopenharmony_ci#define ADC_CAL_ATEST_CH3       0x62
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci#define ADC_PWRDN_CLAMP_CH1     0x23
1038c2ecf20Sopenharmony_ci#define ADC_PWRDN_CLAMP_CH2     0x43
1048c2ecf20Sopenharmony_ci#define ADC_PWRDN_CLAMP_CH3     0x63
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci#define ADC_CTRL_DAC23_CH1      0x24
1078c2ecf20Sopenharmony_ci#define ADC_CTRL_DAC23_CH2      0x44
1088c2ecf20Sopenharmony_ci#define ADC_CTRL_DAC23_CH3      0x64
1098c2ecf20Sopenharmony_ci
1108c2ecf20Sopenharmony_ci#define ADC_CTRL_DAC1_CH1       0x25
1118c2ecf20Sopenharmony_ci#define ADC_CTRL_DAC1_CH2       0x45
1128c2ecf20Sopenharmony_ci#define ADC_CTRL_DAC1_CH3       0x65
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci#define ADC_DCSERVO_DEM_CH1     0x26
1158c2ecf20Sopenharmony_ci#define ADC_DCSERVO_DEM_CH2     0x46
1168c2ecf20Sopenharmony_ci#define ADC_DCSERVO_DEM_CH3     0x66
1178c2ecf20Sopenharmony_ci
1188c2ecf20Sopenharmony_ci#define ADC_FB_FRCRST_CH1       0x27
1198c2ecf20Sopenharmony_ci#define ADC_FB_FRCRST_CH2       0x47
1208c2ecf20Sopenharmony_ci#define ADC_FB_FRCRST_CH3       0x67
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci#define ADC_INPUT_CH1           0x28
1238c2ecf20Sopenharmony_ci#define ADC_INPUT_CH2           0x48
1248c2ecf20Sopenharmony_ci#define ADC_INPUT_CH3           0x68
1258c2ecf20Sopenharmony_ci#define INPUT_SEL_MASK          0x30   /* [5:4] in_sel */
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci#define ADC_NTF_PRECLMP_EN_CH1  0x29
1288c2ecf20Sopenharmony_ci#define ADC_NTF_PRECLMP_EN_CH2  0x49
1298c2ecf20Sopenharmony_ci#define ADC_NTF_PRECLMP_EN_CH3  0x69
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci#define ADC_QGAIN_RES_TRM_CH1   0x2a
1328c2ecf20Sopenharmony_ci#define ADC_QGAIN_RES_TRM_CH2   0x4a
1338c2ecf20Sopenharmony_ci#define ADC_QGAIN_RES_TRM_CH3   0x6a
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_ci#define ADC_SOC_PRECLMP_TERM_CH1    0x2b
1368c2ecf20Sopenharmony_ci#define ADC_SOC_PRECLMP_TERM_CH2    0x4b
1378c2ecf20Sopenharmony_ci#define ADC_SOC_PRECLMP_TERM_CH3    0x6b
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci#define TESTBUS_CTRL_CH1        0x32
1408c2ecf20Sopenharmony_ci#define TESTBUS_CTRL_CH2        0x52
1418c2ecf20Sopenharmony_ci#define TESTBUS_CTRL_CH3        0x72
1428c2ecf20Sopenharmony_ci
1438c2ecf20Sopenharmony_ci/******************************************************************************
1448c2ecf20Sopenharmony_ci			    * DIF registers *
1458c2ecf20Sopenharmony_ci ******************************************************************************/
1468c2ecf20Sopenharmony_ci#define      DIRECT_IF_REVB_BASE  0x00300
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci/*****************************************************************************/
1498c2ecf20Sopenharmony_ci#define      DIF_PLL_FREQ_WORD        (DIRECT_IF_REVB_BASE + 0x00000000)
1508c2ecf20Sopenharmony_ci/*****************************************************************************/
1518c2ecf20Sopenharmony_ci#define      FLD_DIF_PLL_LOCK                           0x80000000
1528c2ecf20Sopenharmony_ci/*  Reserved                                [30:29] */
1538c2ecf20Sopenharmony_ci#define      FLD_DIF_PLL_FREE_RUN                       0x10000000
1548c2ecf20Sopenharmony_ci#define      FLD_DIF_PLL_FREQ                           0x0fffffff
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_ci/*****************************************************************************/
1578c2ecf20Sopenharmony_ci#define      DIF_PLL_CTRL             (DIRECT_IF_REVB_BASE + 0x00000004)
1588c2ecf20Sopenharmony_ci/*****************************************************************************/
1598c2ecf20Sopenharmony_ci#define      FLD_DIF_KD_PD                              0xff000000
1608c2ecf20Sopenharmony_ci/*  Reserved                             [23:20] */
1618c2ecf20Sopenharmony_ci#define      FLD_DIF_KDS_PD                             0x000f0000
1628c2ecf20Sopenharmony_ci#define      FLD_DIF_KI_PD                              0x0000ff00
1638c2ecf20Sopenharmony_ci/*  Reserved                             [7:4] */
1648c2ecf20Sopenharmony_ci#define      FLD_DIF_KIS_PD                             0x0000000f
1658c2ecf20Sopenharmony_ci
1668c2ecf20Sopenharmony_ci/*****************************************************************************/
1678c2ecf20Sopenharmony_ci#define      DIF_PLL_CTRL1            (DIRECT_IF_REVB_BASE + 0x00000008)
1688c2ecf20Sopenharmony_ci/*****************************************************************************/
1698c2ecf20Sopenharmony_ci#define      FLD_DIF_KD_FD                              0xff000000
1708c2ecf20Sopenharmony_ci/*  Reserved                             [23:20] */
1718c2ecf20Sopenharmony_ci#define      FLD_DIF_KDS_FD                             0x000f0000
1728c2ecf20Sopenharmony_ci#define      FLD_DIF_KI_FD                              0x0000ff00
1738c2ecf20Sopenharmony_ci#define      FLD_DIF_SIG_PROP_SZ                        0x000000f0
1748c2ecf20Sopenharmony_ci#define      FLD_DIF_KIS_FD                             0x0000000f
1758c2ecf20Sopenharmony_ci
1768c2ecf20Sopenharmony_ci/*****************************************************************************/
1778c2ecf20Sopenharmony_ci#define      DIF_PLL_CTRL2            (DIRECT_IF_REVB_BASE + 0x0000000c)
1788c2ecf20Sopenharmony_ci/*****************************************************************************/
1798c2ecf20Sopenharmony_ci#define      FLD_DIF_PLL_AGC_REF                        0xfff00000
1808c2ecf20Sopenharmony_ci#define      FLD_DIF_PLL_AGC_KI                         0x000f0000
1818c2ecf20Sopenharmony_ci/*  Reserved                             [15] */
1828c2ecf20Sopenharmony_ci#define      FLD_DIF_FREQ_LIMIT                         0x00007000
1838c2ecf20Sopenharmony_ci#define      FLD_DIF_K_FD                               0x00000f00
1848c2ecf20Sopenharmony_ci#define      FLD_DIF_DOWNSMPL_FD                        0x000000ff
1858c2ecf20Sopenharmony_ci
1868c2ecf20Sopenharmony_ci/*****************************************************************************/
1878c2ecf20Sopenharmony_ci#define      DIF_PLL_CTRL3            (DIRECT_IF_REVB_BASE + 0x00000010)
1888c2ecf20Sopenharmony_ci/*****************************************************************************/
1898c2ecf20Sopenharmony_ci/*  Reserved                             [31:16] */
1908c2ecf20Sopenharmony_ci#define      FLD_DIF_PLL_AGC_EN                         0x00008000
1918c2ecf20Sopenharmony_ci/*  Reserved                             [14:12] */
1928c2ecf20Sopenharmony_ci#define      FLD_DIF_PLL_MAN_GAIN                       0x00000fff
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_ci/*****************************************************************************/
1958c2ecf20Sopenharmony_ci#define      DIF_AGC_IF_REF           (DIRECT_IF_REVB_BASE + 0x00000014)
1968c2ecf20Sopenharmony_ci/*****************************************************************************/
1978c2ecf20Sopenharmony_ci#define      FLD_DIF_K_AGC_RF                           0xf0000000
1988c2ecf20Sopenharmony_ci#define      FLD_DIF_K_AGC_IF                           0x0f000000
1998c2ecf20Sopenharmony_ci#define      FLD_DIF_K_AGC_INT                          0x00f00000
2008c2ecf20Sopenharmony_ci/*  Reserved                             [19:12] */
2018c2ecf20Sopenharmony_ci#define      FLD_DIF_IF_REF                             0x00000fff
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_ci/*****************************************************************************/
2048c2ecf20Sopenharmony_ci#define      DIF_AGC_CTRL_IF          (DIRECT_IF_REVB_BASE + 0x00000018)
2058c2ecf20Sopenharmony_ci/*****************************************************************************/
2068c2ecf20Sopenharmony_ci#define      FLD_DIF_IF_MAX                             0xff000000
2078c2ecf20Sopenharmony_ci#define      FLD_DIF_IF_MIN                             0x00ff0000
2088c2ecf20Sopenharmony_ci#define      FLD_DIF_IF_AGC                             0x0000ffff
2098c2ecf20Sopenharmony_ci
2108c2ecf20Sopenharmony_ci/*****************************************************************************/
2118c2ecf20Sopenharmony_ci#define      DIF_AGC_CTRL_INT         (DIRECT_IF_REVB_BASE + 0x0000001c)
2128c2ecf20Sopenharmony_ci/*****************************************************************************/
2138c2ecf20Sopenharmony_ci#define      FLD_DIF_INT_MAX                            0xff000000
2148c2ecf20Sopenharmony_ci#define      FLD_DIF_INT_MIN                            0x00ff0000
2158c2ecf20Sopenharmony_ci#define      FLD_DIF_INT_AGC                            0x0000ffff
2168c2ecf20Sopenharmony_ci
2178c2ecf20Sopenharmony_ci/*****************************************************************************/
2188c2ecf20Sopenharmony_ci#define      DIF_AGC_CTRL_RF          (DIRECT_IF_REVB_BASE + 0x00000020)
2198c2ecf20Sopenharmony_ci/*****************************************************************************/
2208c2ecf20Sopenharmony_ci#define      FLD_DIF_RF_MAX                             0xff000000
2218c2ecf20Sopenharmony_ci#define      FLD_DIF_RF_MIN                             0x00ff0000
2228c2ecf20Sopenharmony_ci#define      FLD_DIF_RF_AGC                             0x0000ffff
2238c2ecf20Sopenharmony_ci
2248c2ecf20Sopenharmony_ci/*****************************************************************************/
2258c2ecf20Sopenharmony_ci#define      DIF_AGC_IF_INT_CURRENT   (DIRECT_IF_REVB_BASE + 0x00000024)
2268c2ecf20Sopenharmony_ci/*****************************************************************************/
2278c2ecf20Sopenharmony_ci#define      FLD_DIF_IF_AGC_IN                          0xffff0000
2288c2ecf20Sopenharmony_ci#define      FLD_DIF_INT_AGC_IN                         0x0000ffff
2298c2ecf20Sopenharmony_ci
2308c2ecf20Sopenharmony_ci/*****************************************************************************/
2318c2ecf20Sopenharmony_ci#define      DIF_AGC_RF_CURRENT       (DIRECT_IF_REVB_BASE + 0x00000028)
2328c2ecf20Sopenharmony_ci/*****************************************************************************/
2338c2ecf20Sopenharmony_ci/*  Reserved                            [31:16] */
2348c2ecf20Sopenharmony_ci#define      FLD_DIF_RF_AGC_IN                          0x0000ffff
2358c2ecf20Sopenharmony_ci
2368c2ecf20Sopenharmony_ci/*****************************************************************************/
2378c2ecf20Sopenharmony_ci#define      DIF_VIDEO_AGC_CTRL       (DIRECT_IF_REVB_BASE + 0x0000002c)
2388c2ecf20Sopenharmony_ci/*****************************************************************************/
2398c2ecf20Sopenharmony_ci#define      FLD_DIF_AFD                                0xc0000000
2408c2ecf20Sopenharmony_ci#define      FLD_DIF_K_VID_AGC                          0x30000000
2418c2ecf20Sopenharmony_ci#define      FLD_DIF_LINE_LENGTH                        0x0fff0000
2428c2ecf20Sopenharmony_ci#define      FLD_DIF_AGC_GAIN                           0x0000ffff
2438c2ecf20Sopenharmony_ci
2448c2ecf20Sopenharmony_ci/*****************************************************************************/
2458c2ecf20Sopenharmony_ci#define      DIF_VID_AUD_OVERRIDE     (DIRECT_IF_REVB_BASE + 0x00000030)
2468c2ecf20Sopenharmony_ci/*****************************************************************************/
2478c2ecf20Sopenharmony_ci#define      FLD_DIF_AUDIO_AGC_OVERRIDE                 0x80000000
2488c2ecf20Sopenharmony_ci/*  Reserved                             [30:30] */
2498c2ecf20Sopenharmony_ci#define      FLD_DIF_AUDIO_MAN_GAIN                     0x3f000000
2508c2ecf20Sopenharmony_ci/*  Reserved                             [23:17] */
2518c2ecf20Sopenharmony_ci#define      FLD_DIF_VID_AGC_OVERRIDE                   0x00010000
2528c2ecf20Sopenharmony_ci#define      FLD_DIF_VID_MAN_GAIN                       0x0000ffff
2538c2ecf20Sopenharmony_ci
2548c2ecf20Sopenharmony_ci/*****************************************************************************/
2558c2ecf20Sopenharmony_ci#define      DIF_AV_SEP_CTRL          (DIRECT_IF_REVB_BASE + 0x00000034)
2568c2ecf20Sopenharmony_ci/*****************************************************************************/
2578c2ecf20Sopenharmony_ci#define      FLD_DIF_LPF_FREQ                           0xc0000000
2588c2ecf20Sopenharmony_ci#define      FLD_DIF_AV_PHASE_INC                       0x3f000000
2598c2ecf20Sopenharmony_ci#define      FLD_DIF_AUDIO_FREQ                         0x00ffffff
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_ci/*****************************************************************************/
2628c2ecf20Sopenharmony_ci#define      DIF_COMP_FLT_CTRL        (DIRECT_IF_REVB_BASE + 0x00000038)
2638c2ecf20Sopenharmony_ci/*****************************************************************************/
2648c2ecf20Sopenharmony_ci/*  Reserved                            [31:24] */
2658c2ecf20Sopenharmony_ci#define      FLD_DIF_IIR23_R2                           0x00ff0000
2668c2ecf20Sopenharmony_ci#define      FLD_DIF_IIR23_R1                           0x0000ff00
2678c2ecf20Sopenharmony_ci#define      FLD_DIF_IIR1_R1                            0x000000ff
2688c2ecf20Sopenharmony_ci
2698c2ecf20Sopenharmony_ci/*****************************************************************************/
2708c2ecf20Sopenharmony_ci#define      DIF_MISC_CTRL            (DIRECT_IF_REVB_BASE + 0x0000003c)
2718c2ecf20Sopenharmony_ci/*****************************************************************************/
2728c2ecf20Sopenharmony_ci#define      FLD_DIF_DIF_BYPASS                         0x80000000
2738c2ecf20Sopenharmony_ci#define      FLD_DIF_FM_NYQ_GAIN                        0x40000000
2748c2ecf20Sopenharmony_ci#define      FLD_DIF_RF_AGC_ENA                         0x20000000
2758c2ecf20Sopenharmony_ci#define      FLD_DIF_INT_AGC_ENA                        0x10000000
2768c2ecf20Sopenharmony_ci#define      FLD_DIF_IF_AGC_ENA                         0x08000000
2778c2ecf20Sopenharmony_ci#define      FLD_DIF_FORCE_RF_IF_LOCK                   0x04000000
2788c2ecf20Sopenharmony_ci#define      FLD_DIF_VIDEO_AGC_ENA                      0x02000000
2798c2ecf20Sopenharmony_ci#define      FLD_DIF_RF_AGC_INV                         0x01000000
2808c2ecf20Sopenharmony_ci#define      FLD_DIF_INT_AGC_INV                        0x00800000
2818c2ecf20Sopenharmony_ci#define      FLD_DIF_IF_AGC_INV                         0x00400000
2828c2ecf20Sopenharmony_ci#define      FLD_DIF_SPEC_INV                           0x00200000
2838c2ecf20Sopenharmony_ci#define      FLD_DIF_AUD_FULL_BW                        0x00100000
2848c2ecf20Sopenharmony_ci#define      FLD_DIF_AUD_SRC_SEL                        0x00080000
2858c2ecf20Sopenharmony_ci/*  Reserved                             [18] */
2868c2ecf20Sopenharmony_ci#define      FLD_DIF_IF_FREQ                            0x00030000
2878c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
2888c2ecf20Sopenharmony_ci#define      FLD_DIF_TIP_OFFSET                         0x00003f00
2898c2ecf20Sopenharmony_ci/*  Reserved                             [7:5] */
2908c2ecf20Sopenharmony_ci#define      FLD_DIF_DITHER_ENA                         0x00000010
2918c2ecf20Sopenharmony_ci/*  Reserved                             [3:1] */
2928c2ecf20Sopenharmony_ci#define      FLD_DIF_RF_IF_LOCK                         0x00000001
2938c2ecf20Sopenharmony_ci
2948c2ecf20Sopenharmony_ci/*****************************************************************************/
2958c2ecf20Sopenharmony_ci#define      DIF_SRC_PHASE_INC        (DIRECT_IF_REVB_BASE + 0x00000040)
2968c2ecf20Sopenharmony_ci/*****************************************************************************/
2978c2ecf20Sopenharmony_ci/*  Reserved                             [31:29] */
2988c2ecf20Sopenharmony_ci#define      FLD_DIF_PHASE_INC                          0x1fffffff
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci/*****************************************************************************/
3018c2ecf20Sopenharmony_ci#define      DIF_SRC_GAIN_CONTROL     (DIRECT_IF_REVB_BASE + 0x00000044)
3028c2ecf20Sopenharmony_ci/*****************************************************************************/
3038c2ecf20Sopenharmony_ci/*  Reserved                             [31:16] */
3048c2ecf20Sopenharmony_ci#define      FLD_DIF_SRC_KI                             0x0000ff00
3058c2ecf20Sopenharmony_ci#define      FLD_DIF_SRC_KD                             0x000000ff
3068c2ecf20Sopenharmony_ci
3078c2ecf20Sopenharmony_ci/*****************************************************************************/
3088c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF01          (DIRECT_IF_REVB_BASE + 0x00000048)
3098c2ecf20Sopenharmony_ci/*****************************************************************************/
3108c2ecf20Sopenharmony_ci/*  Reserved                             [31:19] */
3118c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_0                        0x00070000
3128c2ecf20Sopenharmony_ci/*  Reserved                             [15:4] */
3138c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_1                        0x0000000f
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci/*****************************************************************************/
3168c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF23          (DIRECT_IF_REVB_BASE + 0x0000004c)
3178c2ecf20Sopenharmony_ci/*****************************************************************************/
3188c2ecf20Sopenharmony_ci/*  Reserved                             [31:22] */
3198c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_2                        0x003f0000
3208c2ecf20Sopenharmony_ci/*  Reserved                             [15:7] */
3218c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_3                        0x0000007f
3228c2ecf20Sopenharmony_ci
3238c2ecf20Sopenharmony_ci/*****************************************************************************/
3248c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF45          (DIRECT_IF_REVB_BASE + 0x00000050)
3258c2ecf20Sopenharmony_ci/*****************************************************************************/
3268c2ecf20Sopenharmony_ci/*  Reserved                             [31:24] */
3278c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_4                        0x00ff0000
3288c2ecf20Sopenharmony_ci/*  Reserved                             [15:8] */
3298c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_5                        0x000000ff
3308c2ecf20Sopenharmony_ci
3318c2ecf20Sopenharmony_ci/*****************************************************************************/
3328c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF67          (DIRECT_IF_REVB_BASE + 0x00000054)
3338c2ecf20Sopenharmony_ci/*****************************************************************************/
3348c2ecf20Sopenharmony_ci/*  Reserved                             [31:25] */
3358c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_6                        0x01ff0000
3368c2ecf20Sopenharmony_ci/*  Reserved                             [15:9] */
3378c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_7                        0x000001ff
3388c2ecf20Sopenharmony_ci
3398c2ecf20Sopenharmony_ci/*****************************************************************************/
3408c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF89          (DIRECT_IF_REVB_BASE + 0x00000058)
3418c2ecf20Sopenharmony_ci/*****************************************************************************/
3428c2ecf20Sopenharmony_ci/*  Reserved                             [31:26] */
3438c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_8                        0x03ff0000
3448c2ecf20Sopenharmony_ci/*  Reserved                             [15:10] */
3458c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_9                        0x000003ff
3468c2ecf20Sopenharmony_ci
3478c2ecf20Sopenharmony_ci/*****************************************************************************/
3488c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF1011        (DIRECT_IF_REVB_BASE + 0x0000005c)
3498c2ecf20Sopenharmony_ci/*****************************************************************************/
3508c2ecf20Sopenharmony_ci/*  Reserved                             [31:27] */
3518c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_10                       0x07ff0000
3528c2ecf20Sopenharmony_ci/*  Reserved                             [15:11] */
3538c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_11                       0x000007ff
3548c2ecf20Sopenharmony_ci
3558c2ecf20Sopenharmony_ci/*****************************************************************************/
3568c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF1213        (DIRECT_IF_REVB_BASE + 0x00000060)
3578c2ecf20Sopenharmony_ci/*****************************************************************************/
3588c2ecf20Sopenharmony_ci/*  Reserved                             [31:27] */
3598c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_12                       0x07ff0000
3608c2ecf20Sopenharmony_ci/*  Reserved                             [15:12] */
3618c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_13                       0x00000fff
3628c2ecf20Sopenharmony_ci
3638c2ecf20Sopenharmony_ci/*****************************************************************************/
3648c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF1415        (DIRECT_IF_REVB_BASE + 0x00000064)
3658c2ecf20Sopenharmony_ci/*****************************************************************************/
3668c2ecf20Sopenharmony_ci/*  Reserved                             [31:28] */
3678c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_14                       0x0fff0000
3688c2ecf20Sopenharmony_ci/*  Reserved                             [15:12] */
3698c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_15                       0x00000fff
3708c2ecf20Sopenharmony_ci
3718c2ecf20Sopenharmony_ci/*****************************************************************************/
3728c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF1617        (DIRECT_IF_REVB_BASE + 0x00000068)
3738c2ecf20Sopenharmony_ci/*****************************************************************************/
3748c2ecf20Sopenharmony_ci/*  Reserved                             [31:29] */
3758c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_16                       0x1fff0000
3768c2ecf20Sopenharmony_ci/*  Reserved                             [15:13] */
3778c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_17                       0x00001fff
3788c2ecf20Sopenharmony_ci
3798c2ecf20Sopenharmony_ci/*****************************************************************************/
3808c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF1819        (DIRECT_IF_REVB_BASE + 0x0000006c)
3818c2ecf20Sopenharmony_ci/*****************************************************************************/
3828c2ecf20Sopenharmony_ci/*  Reserved                             [31:29] */
3838c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_18                       0x1fff0000
3848c2ecf20Sopenharmony_ci/*  Reserved                             [15:13] */
3858c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_19                       0x00001fff
3868c2ecf20Sopenharmony_ci
3878c2ecf20Sopenharmony_ci/*****************************************************************************/
3888c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF2021        (DIRECT_IF_REVB_BASE + 0x00000070)
3898c2ecf20Sopenharmony_ci/*****************************************************************************/
3908c2ecf20Sopenharmony_ci/*  Reserved                             [31:29] */
3918c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_20                       0x1fff0000
3928c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
3938c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_21                       0x00003fff
3948c2ecf20Sopenharmony_ci
3958c2ecf20Sopenharmony_ci/*****************************************************************************/
3968c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF2223        (DIRECT_IF_REVB_BASE + 0x00000074)
3978c2ecf20Sopenharmony_ci/*****************************************************************************/
3988c2ecf20Sopenharmony_ci/*  Reserved                             [31:30] */
3998c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_22                       0x3fff0000
4008c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
4018c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_23                       0x00003fff
4028c2ecf20Sopenharmony_ci
4038c2ecf20Sopenharmony_ci/*****************************************************************************/
4048c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF2425        (DIRECT_IF_REVB_BASE + 0x00000078)
4058c2ecf20Sopenharmony_ci/*****************************************************************************/
4068c2ecf20Sopenharmony_ci/*  Reserved                             [31:30] */
4078c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_24                       0x3fff0000
4088c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
4098c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_25                       0x00003fff
4108c2ecf20Sopenharmony_ci
4118c2ecf20Sopenharmony_ci/*****************************************************************************/
4128c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF2627        (DIRECT_IF_REVB_BASE + 0x0000007c)
4138c2ecf20Sopenharmony_ci/*****************************************************************************/
4148c2ecf20Sopenharmony_ci/*  Reserved                             [31:30] */
4158c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_26                       0x3fff0000
4168c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
4178c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_27                       0x00003fff
4188c2ecf20Sopenharmony_ci
4198c2ecf20Sopenharmony_ci/*****************************************************************************/
4208c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF2829        (DIRECT_IF_REVB_BASE + 0x00000080)
4218c2ecf20Sopenharmony_ci/*****************************************************************************/
4228c2ecf20Sopenharmony_ci/*  Reserved                             [31:30] */
4238c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_28                       0x3fff0000
4248c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
4258c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_29                       0x00003fff
4268c2ecf20Sopenharmony_ci
4278c2ecf20Sopenharmony_ci/*****************************************************************************/
4288c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF3031        (DIRECT_IF_REVB_BASE + 0x00000084)
4298c2ecf20Sopenharmony_ci/*****************************************************************************/
4308c2ecf20Sopenharmony_ci/*  Reserved                             [31:30] */
4318c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_30                       0x3fff0000
4328c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
4338c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_31                       0x00003fff
4348c2ecf20Sopenharmony_ci
4358c2ecf20Sopenharmony_ci/*****************************************************************************/
4368c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF3233        (DIRECT_IF_REVB_BASE + 0x00000088)
4378c2ecf20Sopenharmony_ci/*****************************************************************************/
4388c2ecf20Sopenharmony_ci/*  Reserved                             [31:30] */
4398c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_32                       0x3fff0000
4408c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
4418c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_33                       0x00003fff
4428c2ecf20Sopenharmony_ci
4438c2ecf20Sopenharmony_ci/*****************************************************************************/
4448c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF3435        (DIRECT_IF_REVB_BASE + 0x0000008c)
4458c2ecf20Sopenharmony_ci/*****************************************************************************/
4468c2ecf20Sopenharmony_ci/*  Reserved                             [31:30] */
4478c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_34                       0x3fff0000
4488c2ecf20Sopenharmony_ci/*  Reserved                             [15:14] */
4498c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_35                       0x00003fff
4508c2ecf20Sopenharmony_ci
4518c2ecf20Sopenharmony_ci/*****************************************************************************/
4528c2ecf20Sopenharmony_ci#define      DIF_BPF_COEFF36          (DIRECT_IF_REVB_BASE + 0x00000090)
4538c2ecf20Sopenharmony_ci/*****************************************************************************/
4548c2ecf20Sopenharmony_ci/*  Reserved                             [31:30] */
4558c2ecf20Sopenharmony_ci#define      FLD_DIF_BPF_COEFF_36                       0x3fff0000
4568c2ecf20Sopenharmony_ci/*  Reserved                             [15:0] */
4578c2ecf20Sopenharmony_ci
4588c2ecf20Sopenharmony_ci/*****************************************************************************/
4598c2ecf20Sopenharmony_ci#define      DIF_RPT_VARIANCE         (DIRECT_IF_REVB_BASE + 0x00000094)
4608c2ecf20Sopenharmony_ci/*****************************************************************************/
4618c2ecf20Sopenharmony_ci/*  Reserved                             [31:20] */
4628c2ecf20Sopenharmony_ci#define      FLD_DIF_RPT_VARIANCE                       0x000fffff
4638c2ecf20Sopenharmony_ci
4648c2ecf20Sopenharmony_ci/*****************************************************************************/
4658c2ecf20Sopenharmony_ci#define      DIF_SOFT_RST_CTRL_REVB       (DIRECT_IF_REVB_BASE + 0x00000098)
4668c2ecf20Sopenharmony_ci/*****************************************************************************/
4678c2ecf20Sopenharmony_ci/*  Reserved                             [31:8] */
4688c2ecf20Sopenharmony_ci#define      FLD_DIF_DIF_SOFT_RST                       0x00000080
4698c2ecf20Sopenharmony_ci#define      FLD_DIF_DIF_REG_RST_MSK                    0x00000040
4708c2ecf20Sopenharmony_ci#define      FLD_DIF_AGC_RST_MSK                        0x00000020
4718c2ecf20Sopenharmony_ci#define      FLD_DIF_CMP_RST_MSK                        0x00000010
4728c2ecf20Sopenharmony_ci#define      FLD_DIF_AVS_RST_MSK                        0x00000008
4738c2ecf20Sopenharmony_ci#define      FLD_DIF_NYQ_RST_MSK                        0x00000004
4748c2ecf20Sopenharmony_ci#define      FLD_DIF_DIF_SRC_RST_MSK                    0x00000002
4758c2ecf20Sopenharmony_ci#define      FLD_DIF_PLL_RST_MSK                        0x00000001
4768c2ecf20Sopenharmony_ci
4778c2ecf20Sopenharmony_ci/*****************************************************************************/
4788c2ecf20Sopenharmony_ci#define      DIF_PLL_FREQ_ERR         (DIRECT_IF_REVB_BASE + 0x0000009c)
4798c2ecf20Sopenharmony_ci/*****************************************************************************/
4808c2ecf20Sopenharmony_ci/*  Reserved                             [31:25] */
4818c2ecf20Sopenharmony_ci#define      FLD_DIF_CTL_IP                             0x01ffffff
4828c2ecf20Sopenharmony_ci
4838c2ecf20Sopenharmony_ci#endif
484