162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2023, Linaro Limited 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef QCOM_PHY_QMP_QSERDES_COM_V6_H_ 762306a36Sopenharmony_ci#define QCOM_PHY_QMP_QSERDES_COM_V6_H_ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* Only for QMP V6 PHY - QSERDES COM registers */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define QSERDES_V6_COM_SSC_STEP_SIZE1_MODE1 0x00 1262306a36Sopenharmony_ci#define QSERDES_V6_COM_SSC_STEP_SIZE2_MODE1 0x04 1362306a36Sopenharmony_ci#define QSERDES_V6_COM_CP_CTRL_MODE1 0x10 1462306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_RCTRL_MODE1 0x14 1562306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_CCTRL_MODE1 0x18 1662306a36Sopenharmony_ci#define QSERDES_V6_COM_CORECLK_DIV_MODE1 0x1c 1762306a36Sopenharmony_ci#define QSERDES_V6_COM_LOCK_CMP1_MODE1 0x20 1862306a36Sopenharmony_ci#define QSERDES_V6_COM_LOCK_CMP2_MODE1 0x24 1962306a36Sopenharmony_ci#define QSERDES_V6_COM_DEC_START_MODE1 0x28 2062306a36Sopenharmony_ci#define QSERDES_V6_COM_DEC_START_MSB_MODE1 0x2c 2162306a36Sopenharmony_ci#define QSERDES_V6_COM_DIV_FRAC_START1_MODE1 0x30 2262306a36Sopenharmony_ci#define QSERDES_V6_COM_DIV_FRAC_START2_MODE1 0x34 2362306a36Sopenharmony_ci#define QSERDES_V6_COM_DIV_FRAC_START3_MODE1 0x38 2462306a36Sopenharmony_ci#define QSERDES_V6_COM_HSCLK_SEL_1 0x3c 2562306a36Sopenharmony_ci#define QSERDES_V6_COM_VCO_TUNE1_MODE1 0x48 2662306a36Sopenharmony_ci#define QSERDES_V6_COM_VCO_TUNE2_MODE1 0x4c 2762306a36Sopenharmony_ci#define QSERDES_V6_COM_BIN_VCOCAL_CMP_CODE1_MODE1 0x50 2862306a36Sopenharmony_ci#define QSERDES_V6_COM_BIN_VCOCAL_CMP_CODE2_MODE1 0x54 2962306a36Sopenharmony_ci#define QSERDES_V6_COM_BIN_VCOCAL_CMP_CODE1_MODE0 0x58 3062306a36Sopenharmony_ci#define QSERDES_V6_COM_BIN_VCOCAL_CMP_CODE2_MODE0 0x5c 3162306a36Sopenharmony_ci#define QSERDES_V6_COM_SSC_STEP_SIZE1_MODE0 0x60 3262306a36Sopenharmony_ci#define QSERDES_V6_COM_SSC_STEP_SIZE2_MODE0 0x64 3362306a36Sopenharmony_ci#define QSERDES_V6_COM_CP_CTRL_MODE0 0x70 3462306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_RCTRL_MODE0 0x74 3562306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_CCTRL_MODE0 0x78 3662306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_CORE_CLK_DIV_MODE0 0x7c 3762306a36Sopenharmony_ci#define QSERDES_V6_COM_LOCK_CMP1_MODE0 0x80 3862306a36Sopenharmony_ci#define QSERDES_V6_COM_LOCK_CMP2_MODE0 0x84 3962306a36Sopenharmony_ci#define QSERDES_V6_COM_DEC_START_MODE0 0x88 4062306a36Sopenharmony_ci#define QSERDES_V6_COM_DEC_START_MSB_MODE0 0x8c 4162306a36Sopenharmony_ci#define QSERDES_V6_COM_DIV_FRAC_START1_MODE0 0x90 4262306a36Sopenharmony_ci#define QSERDES_V6_COM_DIV_FRAC_START2_MODE0 0x94 4362306a36Sopenharmony_ci#define QSERDES_V6_COM_DIV_FRAC_START3_MODE0 0x98 4462306a36Sopenharmony_ci#define QSERDES_V6_COM_HSCLK_HS_SWITCH_SEL_1 0x9c 4562306a36Sopenharmony_ci#define QSERDES_V6_COM_INTEGLOOP_GAIN0_MODE0 0xa0 4662306a36Sopenharmony_ci#define QSERDES_V6_COM_INTEGLOOP_GAIN1_MODE0 0xa4 4762306a36Sopenharmony_ci#define QSERDES_V6_COM_VCO_TUNE1_MODE0 0xa8 4862306a36Sopenharmony_ci#define QSERDES_V6_COM_VCO_TUNE2_MODE0 0xac 4962306a36Sopenharmony_ci#define QSERDES_V6_COM_BG_TIMER 0xbc 5062306a36Sopenharmony_ci#define QSERDES_V6_COM_SSC_EN_CENTER 0xc0 5162306a36Sopenharmony_ci#define QSERDES_V6_COM_SSC_PER1 0xcc 5262306a36Sopenharmony_ci#define QSERDES_V6_COM_SSC_PER2 0xd0 5362306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_POST_DIV_MUX 0xd8 5462306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_BIAS_EN_CLK_BUFLR_EN 0xdc 5562306a36Sopenharmony_ci#define QSERDES_V6_COM_CLK_ENABLE1 0xe0 5662306a36Sopenharmony_ci#define QSERDES_V6_COM_SYS_CLK_CTRL 0xe4 5762306a36Sopenharmony_ci#define QSERDES_V6_COM_SYSCLK_BUF_ENABLE 0xe8 5862306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_IVCO 0xf4 5962306a36Sopenharmony_ci#define QSERDES_V6_COM_SYSCLK_EN_SEL 0x110 6062306a36Sopenharmony_ci#define QSERDES_V6_COM_RESETSM_CNTRL 0x118 6162306a36Sopenharmony_ci#define QSERDES_V6_COM_LOCK_CMP_EN 0x120 6262306a36Sopenharmony_ci#define QSERDES_V6_COM_LOCK_CMP_CFG 0x124 6362306a36Sopenharmony_ci#define QSERDES_V6_COM_VCO_TUNE_CTRL 0x13c 6462306a36Sopenharmony_ci#define QSERDES_V6_COM_VCO_TUNE_MAP 0x140 6562306a36Sopenharmony_ci#define QSERDES_V6_COM_VCO_TUNE_INITVAL2 0x148 6662306a36Sopenharmony_ci#define QSERDES_V6_COM_CLK_SELECT 0x164 6762306a36Sopenharmony_ci#define QSERDES_V6_COM_CORE_CLK_EN 0x170 6862306a36Sopenharmony_ci#define QSERDES_V6_COM_CMN_CONFIG_1 0x174 6962306a36Sopenharmony_ci#define QSERDES_V6_COM_SVS_MODE_CLK_SEL 0x17c 7062306a36Sopenharmony_ci#define QSERDES_V6_COM_CMN_MISC_1 0x184 7162306a36Sopenharmony_ci#define QSERDES_V6_COM_CMN_MODE 0x188 7262306a36Sopenharmony_ci#define QSERDES_V6_COM_PLL_VCO_DC_LEVEL_CTRL 0x198 7362306a36Sopenharmony_ci#define QSERDES_V6_COM_AUTO_GAIN_ADJ_CTRL_1 0x1a4 7462306a36Sopenharmony_ci#define QSERDES_V6_COM_AUTO_GAIN_ADJ_CTRL_2 0x1a8 7562306a36Sopenharmony_ci#define QSERDES_V6_COM_AUTO_GAIN_ADJ_CTRL_3 0x1ac 7662306a36Sopenharmony_ci#define QSERDES_V6_COM_ADDITIONAL_MISC 0x1b4 7762306a36Sopenharmony_ci#define QSERDES_V6_COM_ADDITIONAL_MISC_2 0x1b8 7862306a36Sopenharmony_ci#define QSERDES_V6_COM_ADDITIONAL_MISC_3 0x1bc 7962306a36Sopenharmony_ci#define QSERDES_V6_COM_CMN_STATUS 0x1d0 8062306a36Sopenharmony_ci#define QSERDES_V6_COM_C_READY_STATUS 0x1f8 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ci#endif 83