/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
cx231xx_conf-reg.h - driver for Conexant Cx23100/101/102 USB
video capture devices
Copyright (C) 2008 <srinivasa.deevi at conexant dot com>
*/
#ifndef _POLARIS_REG_H_
#define _POLARIS_REG_H_
#define BOARD_CFG_STAT 0 x0
#define TS_MODE_REG 0 x4
#define TS1_CFG_REG 0 x8
#define TS1_LENGTH_REG 0 xc
#define TS2_CFG_REG 0 x10
#define TS2_LENGTH_REG 0 x14
#define EP_MODE_SET 0 x18
#define CIR_PWR_PTN1 0 x1c
#define CIR_PWR_PTN2 0 x20
#define CIR_PWR_PTN3 0 x24
#define CIR_PWR_MASK0 0 x28
#define CIR_PWR_MASK1 0 x2c
#define CIR_PWR_MASK2 0 x30
#define CIR_GAIN 0 x34
#define CIR_CAR_REG 0 x38
#define CIR_OT_CFG1 0 x40
#define CIR_OT_CFG2 0 x44
#define GBULK_BIT_EN 0 x68
#define PWR_CTL_EN 0 x74
/* Polaris Endpoints capture mask for register EP_MODE_SET */
#define ENABLE_EP1 0 x01 /* Bit[0]=1 */
#define ENABLE_EP2 0 x02 /* Bit[1]=1 */
#define ENABLE_EP3 0 x04 /* Bit[2]=1 */
#define ENABLE_EP4 0 x08 /* Bit[3]=1 */
#define ENABLE_EP5 0 x10 /* Bit[4]=1 */
#define ENABLE_EP6 0 x20 /* Bit[5]=1 */
/* Bit definition for register PWR_CTL_EN */
#define PWR_MODE_MASK 0 x17f
#define PWR_AV_EN 0 x08 /* bit3 */
#define PWR_ISO_EN 0 x40 /* bit6 */
#define PWR_AV_MODE 0 x30 /* bit4,5 */
#define PWR_TUNER_EN 0 x04 /* bit2 */
#define PWR_DEMOD_EN 0 x02 /* bit1 */
#define I2C_DEMOD_EN 0 x01 /* bit0 */
#define PWR_RESETOUT_EN 0 x100 /* bit8 */
enum AV_MODE{
POLARIS_AVMODE_DEFAULT = 0 ,
POLARIS_AVMODE_DIGITAL = 0 x10,
POLARIS_AVMODE_ANALOGT_TV = 0 x20,
POLARIS_AVMODE_ENXTERNAL_AV = 0 x30,
};
/* Colibri Registers */
#define SINGLE_ENDED 0 x0
#define LOW_IF 0 x4
#define EU_IF 0 x9
#define US_IF 0 xa
#define SUP_BLK_TUNE1 0 x00
#define SUP_BLK_TUNE2 0 x01
#define SUP_BLK_TUNE3 0 x02
#define SUP_BLK_XTAL 0 x03
#define SUP_BLK_PLL1 0 x04
#define SUP_BLK_PLL2 0 x05
#define SUP_BLK_PLL3 0 x06
#define SUP_BLK_REF 0 x07
#define SUP_BLK_PWRDN 0 x08
#define SUP_BLK_TESTPAD 0 x09
#define ADC_COM_INT5_STAB_REF 0 x0a
#define ADC_COM_QUANT 0 x0b
#define ADC_COM_BIAS1 0 x0c
#define ADC_COM_BIAS2 0 x0d
#define ADC_COM_BIAS3 0 x0e
#define TESTBUS_CTRL 0 x12
#define FLD_PWRDN_TUNING_BIAS 0 x10
#define FLD_PWRDN_ENABLE_PLL 0 x08
#define FLD_PWRDN_PD_BANDGAP 0 x04
#define FLD_PWRDN_PD_BIAS 0 x02
#define FLD_PWRDN_PD_TUNECK 0 x01
#define ADC_STATUS_CH1 0 x20
#define ADC_STATUS_CH2 0 x40
#define ADC_STATUS_CH3 0 x60
#define ADC_STATUS2_CH1 0 x21
#define ADC_STATUS2_CH2 0 x41
#define ADC_STATUS2_CH3 0 x61
#define ADC_CAL_ATEST_CH1 0 x22
#define ADC_CAL_ATEST_CH2 0 x42
#define ADC_CAL_ATEST_CH3 0 x62
#define ADC_PWRDN_CLAMP_CH1 0 x23
#define ADC_PWRDN_CLAMP_CH2 0 x43
#define ADC_PWRDN_CLAMP_CH3 0 x63
#define ADC_CTRL_DAC23_CH1 0 x24
#define ADC_CTRL_DAC23_CH2 0 x44
#define ADC_CTRL_DAC23_CH3 0 x64
#define ADC_CTRL_DAC1_CH1 0 x25
#define ADC_CTRL_DAC1_CH2 0 x45
#define ADC_CTRL_DAC1_CH3 0 x65
#define ADC_DCSERVO_DEM_CH1 0 x26
#define ADC_DCSERVO_DEM_CH2 0 x46
#define ADC_DCSERVO_DEM_CH3 0 x66
#define ADC_FB_FRCRST_CH1 0 x27
#define ADC_FB_FRCRST_CH2 0 x47
#define ADC_FB_FRCRST_CH3 0 x67
#define ADC_INPUT_CH1 0 x28
#define ADC_INPUT_CH2 0 x48
#define ADC_INPUT_CH3 0 x68
#define INPUT_SEL_MASK 0 x30 /* [5:4] in_sel */
#define ADC_NTF_PRECLMP_EN_CH1 0 x29
#define ADC_NTF_PRECLMP_EN_CH2 0 x49
#define ADC_NTF_PRECLMP_EN_CH3 0 x69
#define ADC_QGAIN_RES_TRM_CH1 0 x2a
#define ADC_QGAIN_RES_TRM_CH2 0 x4a
#define ADC_QGAIN_RES_TRM_CH3 0 x6a
#define ADC_SOC_PRECLMP_TERM_CH1 0 x2b
#define ADC_SOC_PRECLMP_TERM_CH2 0 x4b
#define ADC_SOC_PRECLMP_TERM_CH3 0 x6b
#define TESTBUS_CTRL_CH1 0 x32
#define TESTBUS_CTRL_CH2 0 x52
#define TESTBUS_CTRL_CH3 0 x72
/******************************************************************************
* DIF registers *
******************************************************************************/
#define DIRECT_IF_REVB_BASE 0 x00300
/*****************************************************************************/
#define DIF_PLL_FREQ_WORD (DIRECT_IF_REVB_BASE + 0 x00000000)
/*****************************************************************************/
#define FLD_DIF_PLL_LOCK 0 x80000000
/* Reserved [30:29] */
#define FLD_DIF_PLL_FREE_RUN 0 x10000000
#define FLD_DIF_PLL_FREQ 0 x0fffffff
/*****************************************************************************/
#define DIF_PLL_CTRL (DIRECT_IF_REVB_BASE + 0 x00000004)
/*****************************************************************************/
#define FLD_DIF_KD_PD 0 xff000000
/* Reserved [23:20] */
#define FLD_DIF_KDS_PD 0 x000f0000
#define FLD_DIF_KI_PD 0 x0000ff00
/* Reserved [7:4] */
#define FLD_DIF_KIS_PD 0 x0000000f
/*****************************************************************************/
#define DIF_PLL_CTRL1 (DIRECT_IF_REVB_BASE + 0 x00000008)
/*****************************************************************************/
#define FLD_DIF_KD_FD 0 xff000000
/* Reserved [23:20] */
#define FLD_DIF_KDS_FD 0 x000f0000
#define FLD_DIF_KI_FD 0 x0000ff00
#define FLD_DIF_SIG_PROP_SZ 0 x000000f0
#define FLD_DIF_KIS_FD 0 x0000000f
/*****************************************************************************/
#define DIF_PLL_CTRL2 (DIRECT_IF_REVB_BASE + 0 x0000000c)
/*****************************************************************************/
#define FLD_DIF_PLL_AGC_REF 0 xfff00000
#define FLD_DIF_PLL_AGC_KI 0 x000f0000
/* Reserved [15] */
#define FLD_DIF_FREQ_LIMIT 0 x00007000
#define FLD_DIF_K_FD 0 x00000f00
#define FLD_DIF_DOWNSMPL_FD 0 x000000ff
/*****************************************************************************/
#define DIF_PLL_CTRL3 (DIRECT_IF_REVB_BASE + 0 x00000010)
/*****************************************************************************/
/* Reserved [31:16] */
#define FLD_DIF_PLL_AGC_EN 0 x00008000
/* Reserved [14:12] */
#define FLD_DIF_PLL_MAN_GAIN 0 x00000fff
/*****************************************************************************/
#define DIF_AGC_IF_REF (DIRECT_IF_REVB_BASE + 0 x00000014)
/*****************************************************************************/
#define FLD_DIF_K_AGC_RF 0 xf0000000
#define FLD_DIF_K_AGC_IF 0 x0f000000
#define FLD_DIF_K_AGC_INT 0 x00f00000
/* Reserved [19:12] */
#define FLD_DIF_IF_REF 0 x00000fff
/*****************************************************************************/
#define DIF_AGC_CTRL_IF (DIRECT_IF_REVB_BASE + 0 x00000018)
/*****************************************************************************/
#define FLD_DIF_IF_MAX 0 xff000000
#define FLD_DIF_IF_MIN 0 x00ff0000
#define FLD_DIF_IF_AGC 0 x0000ffff
/*****************************************************************************/
#define DIF_AGC_CTRL_INT (DIRECT_IF_REVB_BASE + 0 x0000001c)
/*****************************************************************************/
#define FLD_DIF_INT_MAX 0 xff000000
#define FLD_DIF_INT_MIN 0 x00ff0000
#define FLD_DIF_INT_AGC 0 x0000ffff
/*****************************************************************************/
#define DIF_AGC_CTRL_RF (DIRECT_IF_REVB_BASE + 0 x00000020)
/*****************************************************************************/
#define FLD_DIF_RF_MAX 0 xff000000
#define FLD_DIF_RF_MIN 0 x00ff0000
#define FLD_DIF_RF_AGC 0 x0000ffff
/*****************************************************************************/
#define DIF_AGC_IF_INT_CURRENT (DIRECT_IF_REVB_BASE + 0 x00000024)
/*****************************************************************************/
#define FLD_DIF_IF_AGC_IN 0 xffff0000
#define FLD_DIF_INT_AGC_IN 0 x0000ffff
/*****************************************************************************/
#define DIF_AGC_RF_CURRENT (DIRECT_IF_REVB_BASE + 0 x00000028)
/*****************************************************************************/
/* Reserved [31:16] */
#define FLD_DIF_RF_AGC_IN 0 x0000ffff
/*****************************************************************************/
#define DIF_VIDEO_AGC_CTRL (DIRECT_IF_REVB_BASE + 0 x0000002c)
/*****************************************************************************/
#define FLD_DIF_AFD 0 xc0000000
#define FLD_DIF_K_VID_AGC 0 x30000000
#define FLD_DIF_LINE_LENGTH 0 x0fff0000
#define FLD_DIF_AGC_GAIN 0 x0000ffff
/*****************************************************************************/
#define DIF_VID_AUD_OVERRIDE (DIRECT_IF_REVB_BASE + 0 x00000030)
/*****************************************************************************/
#define FLD_DIF_AUDIO_AGC_OVERRIDE 0 x80000000
/* Reserved [30:30] */
#define FLD_DIF_AUDIO_MAN_GAIN 0 x3f000000
/* Reserved [23:17] */
#define FLD_DIF_VID_AGC_OVERRIDE 0 x00010000
#define FLD_DIF_VID_MAN_GAIN 0 x0000ffff
/*****************************************************************************/
#define DIF_AV_SEP_CTRL (DIRECT_IF_REVB_BASE + 0 x00000034)
/*****************************************************************************/
#define FLD_DIF_LPF_FREQ 0 xc0000000
#define FLD_DIF_AV_PHASE_INC 0 x3f000000
#define FLD_DIF_AUDIO_FREQ 0 x00ffffff
/*****************************************************************************/
#define DIF_COMP_FLT_CTRL (DIRECT_IF_REVB_BASE + 0 x00000038)
/*****************************************************************************/
/* Reserved [31:24] */
#define FLD_DIF_IIR23_R2 0 x00ff0000
#define FLD_DIF_IIR23_R1 0 x0000ff00
#define FLD_DIF_IIR1_R1 0 x000000ff
/*****************************************************************************/
#define DIF_MISC_CTRL (DIRECT_IF_REVB_BASE + 0 x0000003c)
/*****************************************************************************/
#define FLD_DIF_DIF_BYPASS 0 x80000000
#define FLD_DIF_FM_NYQ_GAIN 0 x40000000
#define FLD_DIF_RF_AGC_ENA 0 x20000000
#define FLD_DIF_INT_AGC_ENA 0 x10000000
#define FLD_DIF_IF_AGC_ENA 0 x08000000
#define FLD_DIF_FORCE_RF_IF_LOCK 0 x04000000
#define FLD_DIF_VIDEO_AGC_ENA 0 x02000000
#define FLD_DIF_RF_AGC_INV 0 x01000000
#define FLD_DIF_INT_AGC_INV 0 x00800000
#define FLD_DIF_IF_AGC_INV 0 x00400000
#define FLD_DIF_SPEC_INV 0 x00200000
#define FLD_DIF_AUD_FULL_BW 0 x00100000
#define FLD_DIF_AUD_SRC_SEL 0 x00080000
/* Reserved [18] */
#define FLD_DIF_IF_FREQ 0 x00030000
/* Reserved [15:14] */
#define FLD_DIF_TIP_OFFSET 0 x00003f00
/* Reserved [7:5] */
#define FLD_DIF_DITHER_ENA 0 x00000010
/* Reserved [3:1] */
#define FLD_DIF_RF_IF_LOCK 0 x00000001
/*****************************************************************************/
#define DIF_SRC_PHASE_INC (DIRECT_IF_REVB_BASE + 0 x00000040)
/*****************************************************************************/
/* Reserved [31:29] */
#define FLD_DIF_PHASE_INC 0 x1fffffff
/*****************************************************************************/
#define DIF_SRC_GAIN_CONTROL (DIRECT_IF_REVB_BASE + 0 x00000044)
/*****************************************************************************/
/* Reserved [31:16] */
#define FLD_DIF_SRC_KI 0 x0000ff00
#define FLD_DIF_SRC_KD 0 x000000ff
/*****************************************************************************/
#define DIF_BPF_COEFF01 (DIRECT_IF_REVB_BASE + 0 x00000048)
/*****************************************************************************/
/* Reserved [31:19] */
#define FLD_DIF_BPF_COEFF_0 0 x00070000
/* Reserved [15:4] */
#define FLD_DIF_BPF_COEFF_1 0 x0000000f
/*****************************************************************************/
#define DIF_BPF_COEFF23 (DIRECT_IF_REVB_BASE + 0 x0000004c)
/*****************************************************************************/
/* Reserved [31:22] */
#define FLD_DIF_BPF_COEFF_2 0 x003f0000
/* Reserved [15:7] */
#define FLD_DIF_BPF_COEFF_3 0 x0000007f
/*****************************************************************************/
#define DIF_BPF_COEFF45 (DIRECT_IF_REVB_BASE + 0 x00000050)
/*****************************************************************************/
/* Reserved [31:24] */
#define FLD_DIF_BPF_COEFF_4 0 x00ff0000
/* Reserved [15:8] */
#define FLD_DIF_BPF_COEFF_5 0 x000000ff
/*****************************************************************************/
#define DIF_BPF_COEFF67 (DIRECT_IF_REVB_BASE + 0 x00000054)
/*****************************************************************************/
/* Reserved [31:25] */
#define FLD_DIF_BPF_COEFF_6 0 x01ff0000
/* Reserved [15:9] */
#define FLD_DIF_BPF_COEFF_7 0 x000001ff
/*****************************************************************************/
#define DIF_BPF_COEFF89 (DIRECT_IF_REVB_BASE + 0 x00000058)
/*****************************************************************************/
/* Reserved [31:26] */
#define FLD_DIF_BPF_COEFF_8 0 x03ff0000
/* Reserved [15:10] */
#define FLD_DIF_BPF_COEFF_9 0 x000003ff
/*****************************************************************************/
#define DIF_BPF_COEFF1011 (DIRECT_IF_REVB_BASE + 0 x0000005c)
/*****************************************************************************/
/* Reserved [31:27] */
#define FLD_DIF_BPF_COEFF_10 0 x07ff0000
/* Reserved [15:11] */
#define FLD_DIF_BPF_COEFF_11 0 x000007ff
/*****************************************************************************/
#define DIF_BPF_COEFF1213 (DIRECT_IF_REVB_BASE + 0 x00000060)
/*****************************************************************************/
/* Reserved [31:27] */
#define FLD_DIF_BPF_COEFF_12 0 x07ff0000
/* Reserved [15:12] */
#define FLD_DIF_BPF_COEFF_13 0 x00000fff
/*****************************************************************************/
#define DIF_BPF_COEFF1415 (DIRECT_IF_REVB_BASE + 0 x00000064)
/*****************************************************************************/
/* Reserved [31:28] */
#define FLD_DIF_BPF_COEFF_14 0 x0fff0000
/* Reserved [15:12] */
#define FLD_DIF_BPF_COEFF_15 0 x00000fff
/*****************************************************************************/
#define DIF_BPF_COEFF1617 (DIRECT_IF_REVB_BASE + 0 x00000068)
/*****************************************************************************/
/* Reserved [31:29] */
#define FLD_DIF_BPF_COEFF_16 0 x1fff0000
/* Reserved [15:13] */
#define FLD_DIF_BPF_COEFF_17 0 x00001fff
/*****************************************************************************/
#define DIF_BPF_COEFF1819 (DIRECT_IF_REVB_BASE + 0 x0000006c)
/*****************************************************************************/
/* Reserved [31:29] */
#define FLD_DIF_BPF_COEFF_18 0 x1fff0000
/* Reserved [15:13] */
#define FLD_DIF_BPF_COEFF_19 0 x00001fff
/*****************************************************************************/
#define DIF_BPF_COEFF2021 (DIRECT_IF_REVB_BASE + 0 x00000070)
/*****************************************************************************/
/* Reserved [31:29] */
#define FLD_DIF_BPF_COEFF_20 0 x1fff0000
/* Reserved [15:14] */
#define FLD_DIF_BPF_COEFF_21 0 x00003fff
/*****************************************************************************/
#define DIF_BPF_COEFF2223 (DIRECT_IF_REVB_BASE + 0 x00000074)
/*****************************************************************************/
/* Reserved [31:30] */
#define FLD_DIF_BPF_COEFF_22 0 x3fff0000
/* Reserved [15:14] */
#define FLD_DIF_BPF_COEFF_23 0 x00003fff
/*****************************************************************************/
#define DIF_BPF_COEFF2425 (DIRECT_IF_REVB_BASE + 0 x00000078)
/*****************************************************************************/
/* Reserved [31:30] */
#define FLD_DIF_BPF_COEFF_24 0 x3fff0000
/* Reserved [15:14] */
#define FLD_DIF_BPF_COEFF_25 0 x00003fff
/*****************************************************************************/
#define DIF_BPF_COEFF2627 (DIRECT_IF_REVB_BASE + 0 x0000007c)
/*****************************************************************************/
/* Reserved [31:30] */
#define FLD_DIF_BPF_COEFF_26 0 x3fff0000
/* Reserved [15:14] */
#define FLD_DIF_BPF_COEFF_27 0 x00003fff
/*****************************************************************************/
#define DIF_BPF_COEFF2829 (DIRECT_IF_REVB_BASE + 0 x00000080)
/*****************************************************************************/
/* Reserved [31:30] */
#define FLD_DIF_BPF_COEFF_28 0 x3fff0000
/* Reserved [15:14] */
#define FLD_DIF_BPF_COEFF_29 0 x00003fff
/*****************************************************************************/
#define DIF_BPF_COEFF3031 (DIRECT_IF_REVB_BASE + 0 x00000084)
/*****************************************************************************/
/* Reserved [31:30] */
#define FLD_DIF_BPF_COEFF_30 0 x3fff0000
/* Reserved [15:14] */
#define FLD_DIF_BPF_COEFF_31 0 x00003fff
/*****************************************************************************/
#define DIF_BPF_COEFF3233 (DIRECT_IF_REVB_BASE + 0 x00000088)
/*****************************************************************************/
/* Reserved [31:30] */
#define FLD_DIF_BPF_COEFF_32 0 x3fff0000
/* Reserved [15:14] */
#define FLD_DIF_BPF_COEFF_33 0 x00003fff
/*****************************************************************************/
#define DIF_BPF_COEFF3435 (DIRECT_IF_REVB_BASE + 0 x0000008c)
/*****************************************************************************/
/* Reserved [31:30] */
#define FLD_DIF_BPF_COEFF_34 0 x3fff0000
/* Reserved [15:14] */
#define FLD_DIF_BPF_COEFF_35 0 x00003fff
/*****************************************************************************/
#define DIF_BPF_COEFF36 (DIRECT_IF_REVB_BASE + 0 x00000090)
/*****************************************************************************/
/* Reserved [31:30] */
#define FLD_DIF_BPF_COEFF_36 0 x3fff0000
/* Reserved [15:0] */
/*****************************************************************************/
#define DIF_RPT_VARIANCE (DIRECT_IF_REVB_BASE + 0 x00000094)
/*****************************************************************************/
/* Reserved [31:20] */
#define FLD_DIF_RPT_VARIANCE 0 x000fffff
/*****************************************************************************/
#define DIF_SOFT_RST_CTRL_REVB (DIRECT_IF_REVB_BASE + 0 x00000098)
/*****************************************************************************/
/* Reserved [31:8] */
#define FLD_DIF_DIF_SOFT_RST 0 x00000080
#define FLD_DIF_DIF_REG_RST_MSK 0 x00000040
#define FLD_DIF_AGC_RST_MSK 0 x00000020
#define FLD_DIF_CMP_RST_MSK 0 x00000010
#define FLD_DIF_AVS_RST_MSK 0 x00000008
#define FLD_DIF_NYQ_RST_MSK 0 x00000004
#define FLD_DIF_DIF_SRC_RST_MSK 0 x00000002
#define FLD_DIF_PLL_RST_MSK 0 x00000001
/*****************************************************************************/
#define DIF_PLL_FREQ_ERR (DIRECT_IF_REVB_BASE + 0 x0000009c)
/*****************************************************************************/
/* Reserved [31:25] */
#define FLD_DIF_CTL_IP 0 x01ffffff
#endif
Messung V0.5 in Prozent C=95 H=93 G=93
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland