162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2017, The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef QCOM_PHY_QMP_QSERDES_PLL_H_ 762306a36Sopenharmony_ci#define QCOM_PHY_QMP_QSERDES_PLL_H_ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* QMP V2 PHY for PCIE gen3 ports - QSERDES PLL registers */ 1062306a36Sopenharmony_ci#define QSERDES_PLL_BG_TIMER 0x00c 1162306a36Sopenharmony_ci#define QSERDES_PLL_SSC_PER1 0x01c 1262306a36Sopenharmony_ci#define QSERDES_PLL_SSC_PER2 0x020 1362306a36Sopenharmony_ci#define QSERDES_PLL_SSC_STEP_SIZE1_MODE0 0x024 1462306a36Sopenharmony_ci#define QSERDES_PLL_SSC_STEP_SIZE2_MODE0 0x028 1562306a36Sopenharmony_ci#define QSERDES_PLL_SSC_STEP_SIZE1_MODE1 0x02c 1662306a36Sopenharmony_ci#define QSERDES_PLL_SSC_STEP_SIZE2_MODE1 0x030 1762306a36Sopenharmony_ci#define QSERDES_PLL_BIAS_EN_CLKBUFLR_EN 0x03c 1862306a36Sopenharmony_ci#define QSERDES_PLL_CLK_ENABLE1 0x040 1962306a36Sopenharmony_ci#define QSERDES_PLL_SYS_CLK_CTRL 0x044 2062306a36Sopenharmony_ci#define QSERDES_PLL_SYSCLK_BUF_ENABLE 0x048 2162306a36Sopenharmony_ci#define QSERDES_PLL_PLL_IVCO 0x050 2262306a36Sopenharmony_ci#define QSERDES_PLL_LOCK_CMP1_MODE0 0x054 2362306a36Sopenharmony_ci#define QSERDES_PLL_LOCK_CMP2_MODE0 0x058 2462306a36Sopenharmony_ci#define QSERDES_PLL_LOCK_CMP1_MODE1 0x060 2562306a36Sopenharmony_ci#define QSERDES_PLL_LOCK_CMP2_MODE1 0x064 2662306a36Sopenharmony_ci#define QSERDES_PLL_BG_TRIM 0x074 2762306a36Sopenharmony_ci#define QSERDES_PLL_CLK_EP_DIV_MODE0 0x078 2862306a36Sopenharmony_ci#define QSERDES_PLL_CLK_EP_DIV_MODE1 0x07c 2962306a36Sopenharmony_ci#define QSERDES_PLL_CP_CTRL_MODE0 0x080 3062306a36Sopenharmony_ci#define QSERDES_PLL_CP_CTRL_MODE1 0x084 3162306a36Sopenharmony_ci#define QSERDES_PLL_PLL_RCTRL_MODE0 0x088 3262306a36Sopenharmony_ci#define QSERDES_PLL_PLL_RCTRL_MODE1 0x08c 3362306a36Sopenharmony_ci#define QSERDES_PLL_PLL_CCTRL_MODE0 0x090 3462306a36Sopenharmony_ci#define QSERDES_PLL_PLL_CCTRL_MODE1 0x094 3562306a36Sopenharmony_ci#define QSERDES_PLL_BIAS_EN_CTRL_BY_PSM 0x0a4 3662306a36Sopenharmony_ci#define QSERDES_PLL_SYSCLK_EN_SEL 0x0a8 3762306a36Sopenharmony_ci#define QSERDES_PLL_RESETSM_CNTRL 0x0b0 3862306a36Sopenharmony_ci#define QSERDES_PLL_LOCK_CMP_EN 0x0c4 3962306a36Sopenharmony_ci#define QSERDES_PLL_DEC_START_MODE0 0x0cc 4062306a36Sopenharmony_ci#define QSERDES_PLL_DEC_START_MODE1 0x0d0 4162306a36Sopenharmony_ci#define QSERDES_PLL_DIV_FRAC_START1_MODE0 0x0d8 4262306a36Sopenharmony_ci#define QSERDES_PLL_DIV_FRAC_START2_MODE0 0x0dc 4362306a36Sopenharmony_ci#define QSERDES_PLL_DIV_FRAC_START3_MODE0 0x0e0 4462306a36Sopenharmony_ci#define QSERDES_PLL_DIV_FRAC_START1_MODE1 0x0e4 4562306a36Sopenharmony_ci#define QSERDES_PLL_DIV_FRAC_START2_MODE1 0x0e8 4662306a36Sopenharmony_ci#define QSERDES_PLL_DIV_FRAC_START3_MODE1 0x0ec 4762306a36Sopenharmony_ci#define QSERDES_PLL_INTEGLOOP_GAIN0_MODE0 0x100 4862306a36Sopenharmony_ci#define QSERDES_PLL_INTEGLOOP_GAIN1_MODE0 0x104 4962306a36Sopenharmony_ci#define QSERDES_PLL_INTEGLOOP_GAIN0_MODE1 0x108 5062306a36Sopenharmony_ci#define QSERDES_PLL_INTEGLOOP_GAIN1_MODE1 0x10c 5162306a36Sopenharmony_ci#define QSERDES_PLL_VCO_TUNE_MAP 0x120 5262306a36Sopenharmony_ci#define QSERDES_PLL_VCO_TUNE1_MODE0 0x124 5362306a36Sopenharmony_ci#define QSERDES_PLL_VCO_TUNE2_MODE0 0x128 5462306a36Sopenharmony_ci#define QSERDES_PLL_VCO_TUNE1_MODE1 0x12c 5562306a36Sopenharmony_ci#define QSERDES_PLL_VCO_TUNE2_MODE1 0x130 5662306a36Sopenharmony_ci#define QSERDES_PLL_VCO_TUNE_TIMER1 0x13c 5762306a36Sopenharmony_ci#define QSERDES_PLL_VCO_TUNE_TIMER2 0x140 5862306a36Sopenharmony_ci#define QSERDES_PLL_CLK_SELECT 0x16c 5962306a36Sopenharmony_ci#define QSERDES_PLL_HSCLK_SEL 0x170 6062306a36Sopenharmony_ci#define QSERDES_PLL_CORECLK_DIV 0x17c 6162306a36Sopenharmony_ci#define QSERDES_PLL_CORE_CLK_EN 0x184 6262306a36Sopenharmony_ci#define QSERDES_PLL_CMN_CONFIG 0x18c 6362306a36Sopenharmony_ci#define QSERDES_PLL_SVS_MODE_CLK_SEL 0x194 6462306a36Sopenharmony_ci#define QSERDES_PLL_CORECLK_DIV_MODE1 0x1b4 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci#endif 67