1*bc546cc8SAbel Vesa /* SPDX-License-Identifier: GPL-2.0 */ 2*bc546cc8SAbel Vesa /* 3*bc546cc8SAbel Vesa * Copyright (c) 2023, Linaro Limited 4*bc546cc8SAbel Vesa */ 5*bc546cc8SAbel Vesa 6*bc546cc8SAbel Vesa #ifndef QCOM_PHY_QMP_QSERDES_COM_V7_H_ 7*bc546cc8SAbel Vesa #define QCOM_PHY_QMP_QSERDES_COM_V7_H_ 8*bc546cc8SAbel Vesa 9*bc546cc8SAbel Vesa /* Only for QMP V7 PHY - QSERDES COM registers */ 10*bc546cc8SAbel Vesa 11*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SSC_STEP_SIZE1_MODE1 0x00 12*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SSC_STEP_SIZE2_MODE1 0x04 13*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CP_CTRL_MODE1 0x10 14*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_RCTRL_MODE1 0x14 15*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_CCTRL_MODE1 0x18 16*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CORECLK_DIV_MODE1 0x1c 17*bc546cc8SAbel Vesa #define QSERDES_V7_COM_LOCK_CMP1_MODE1 0x20 18*bc546cc8SAbel Vesa #define QSERDES_V7_COM_LOCK_CMP2_MODE1 0x24 19*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DEC_START_MODE1 0x28 20*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DEC_START_MSB_MODE1 0x2c 21*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DIV_FRAC_START1_MODE1 0x30 22*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DIV_FRAC_START2_MODE1 0x34 23*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DIV_FRAC_START3_MODE1 0x38 24*bc546cc8SAbel Vesa #define QSERDES_V7_COM_HSCLK_SEL_1 0x3c 25*bc546cc8SAbel Vesa #define QSERDES_V7_COM_INTEGLOOP_GAIN0_MODE1 0x40 26*bc546cc8SAbel Vesa #define QSERDES_V7_COM_INTEGLOOP_GAIN1_MODE1 0x44 27*bc546cc8SAbel Vesa #define QSERDES_V7_COM_VCO_TUNE1_MODE1 0x48 28*bc546cc8SAbel Vesa #define QSERDES_V7_COM_VCO_TUNE2_MODE1 0x4c 29*bc546cc8SAbel Vesa #define QSERDES_V7_COM_BIN_VCOCAL_CMP_CODE1_MODE1 0x50 30*bc546cc8SAbel Vesa #define QSERDES_V7_COM_BIN_VCOCAL_CMP_CODE2_MODE1 0x54 31*bc546cc8SAbel Vesa #define QSERDES_V7_COM_BIN_VCOCAL_CMP_CODE1_MODE0 0x58 32*bc546cc8SAbel Vesa #define QSERDES_V7_COM_BIN_VCOCAL_CMP_CODE2_MODE0 0x5c 33*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SSC_STEP_SIZE1_MODE0 0x60 34*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SSC_STEP_SIZE2_MODE0 0x64 35*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CP_CTRL_MODE0 0x70 36*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_RCTRL_MODE0 0x74 37*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_CCTRL_MODE0 0x78 38*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_CORE_CLK_DIV_MODE0 0x7c 39*bc546cc8SAbel Vesa #define QSERDES_V7_COM_LOCK_CMP1_MODE0 0x80 40*bc546cc8SAbel Vesa #define QSERDES_V7_COM_LOCK_CMP2_MODE0 0x84 41*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DEC_START_MODE0 0x88 42*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DEC_START_MSB_MODE0 0x8c 43*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DIV_FRAC_START1_MODE0 0x90 44*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DIV_FRAC_START2_MODE0 0x94 45*bc546cc8SAbel Vesa #define QSERDES_V7_COM_DIV_FRAC_START3_MODE0 0x98 46*bc546cc8SAbel Vesa #define QSERDES_V7_COM_HSCLK_HS_SWITCH_SEL_1 0x9c 47*bc546cc8SAbel Vesa #define QSERDES_V7_COM_INTEGLOOP_GAIN0_MODE0 0xa0 48*bc546cc8SAbel Vesa #define QSERDES_V7_COM_INTEGLOOP_GAIN1_MODE0 0xa4 49*bc546cc8SAbel Vesa #define QSERDES_V7_COM_VCO_TUNE1_MODE0 0xa8 50*bc546cc8SAbel Vesa #define QSERDES_V7_COM_VCO_TUNE2_MODE0 0xac 51*bc546cc8SAbel Vesa #define QSERDES_V7_COM_BG_TIMER 0xbc 52*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SSC_EN_CENTER 0xc0 53*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SSC_ADJ_PER1 0xc4 54*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SSC_PER1 0xcc 55*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SSC_PER2 0xd0 56*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_POST_DIV_MUX 0xd8 57*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_BIAS_EN_CLK_BUFLR_EN 0xdc 58*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CLK_ENABLE1 0xe0 59*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SYS_CLK_CTRL 0xe4 60*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SYSCLK_BUF_ENABLE 0xe8 61*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_IVCO 0xf4 62*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_IVCO_MODE1 0xf8 63*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SYSCLK_EN_SEL 0x110 64*bc546cc8SAbel Vesa #define QSERDES_V7_COM_RESETSM_CNTRL 0x118 65*bc546cc8SAbel Vesa #define QSERDES_V7_COM_LOCK_CMP_EN 0x120 66*bc546cc8SAbel Vesa #define QSERDES_V7_COM_LOCK_CMP_CFG 0x124 67*bc546cc8SAbel Vesa #define QSERDES_V7_COM_VCO_TUNE_CTRL 0x13c 68*bc546cc8SAbel Vesa #define QSERDES_V7_COM_VCO_TUNE_MAP 0x140 69*bc546cc8SAbel Vesa #define QSERDES_V7_COM_VCO_TUNE_INITVAL2 0x148 70*bc546cc8SAbel Vesa #define QSERDES_V7_COM_VCO_TUNE_MAXVAL2 0x158 71*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CLK_SELECT 0x164 72*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CORE_CLK_EN 0x170 73*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CMN_CONFIG_1 0x174 74*bc546cc8SAbel Vesa #define QSERDES_V7_COM_SVS_MODE_CLK_SEL 0x17c 75*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CMN_MISC_1 0x184 76*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CMN_MODE 0x188 77*bc546cc8SAbel Vesa #define QSERDES_V7_COM_PLL_VCO_DC_LEVEL_CTRL 0x198 78*bc546cc8SAbel Vesa #define QSERDES_V7_COM_AUTO_GAIN_ADJ_CTRL_1 0x1a4 79*bc546cc8SAbel Vesa #define QSERDES_V7_COM_AUTO_GAIN_ADJ_CTRL_2 0x1a8 80*bc546cc8SAbel Vesa #define QSERDES_V7_COM_AUTO_GAIN_ADJ_CTRL_3 0x1ac 81*bc546cc8SAbel Vesa #define QSERDES_V7_COM_ADDITIONAL_MISC 0x1b4 82*bc546cc8SAbel Vesa #define QSERDES_V7_COM_ADDITIONAL_MISC_2 0x1b8 83*bc546cc8SAbel Vesa #define QSERDES_V7_COM_ADDITIONAL_MISC_3 0x1bc 84*bc546cc8SAbel Vesa #define QSERDES_V7_COM_CMN_STATUS 0x1d0 85*bc546cc8SAbel Vesa #define QSERDES_V7_COM_C_READY_STATUS 0x1f8 86*bc546cc8SAbel Vesa 87*bc546cc8SAbel Vesa #endif 88