Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (c) 2017, The Linux Foundation. All rights reserved.
0004  */
0005 
0006 #ifndef QCOM_PHY_QMP_QSERDES_COM_H_
0007 #define QCOM_PHY_QMP_QSERDES_COM_H_
0008 
0009 /* Only for QMP V2 PHY - QSERDES COM registers */
0010 #define QSERDES_COM_ATB_SEL1                0x000
0011 #define QSERDES_COM_ATB_SEL2                0x004
0012 #define QSERDES_COM_FREQ_UPDATE             0x008
0013 #define QSERDES_COM_BG_TIMER                0x00c
0014 #define QSERDES_COM_SSC_EN_CENTER           0x010
0015 #define QSERDES_COM_SSC_ADJ_PER1            0x014
0016 #define QSERDES_COM_SSC_ADJ_PER2            0x018
0017 #define QSERDES_COM_SSC_PER1                0x01c
0018 #define QSERDES_COM_SSC_PER2                0x020
0019 #define QSERDES_COM_SSC_STEP_SIZE1          0x024
0020 #define QSERDES_COM_SSC_STEP_SIZE2          0x028
0021 #define QSERDES_COM_POST_DIV                0x02c
0022 #define QSERDES_COM_POST_DIV_MUX            0x030
0023 #define QSERDES_COM_BIAS_EN_CLKBUFLR_EN         0x034
0024 #define QSERDES_COM_CLK_ENABLE1             0x038
0025 #define QSERDES_COM_SYS_CLK_CTRL            0x03c
0026 #define QSERDES_COM_SYSCLK_BUF_ENABLE           0x040
0027 #define QSERDES_COM_PLL_EN              0x044
0028 #define QSERDES_COM_PLL_IVCO                0x048
0029 #define QSERDES_COM_LOCK_CMP1_MODE0         0x04c
0030 #define QSERDES_COM_LOCK_CMP2_MODE0         0x050
0031 #define QSERDES_COM_LOCK_CMP3_MODE0         0x054
0032 #define QSERDES_COM_LOCK_CMP1_MODE1         0x058
0033 #define QSERDES_COM_LOCK_CMP2_MODE1         0x05c
0034 #define QSERDES_COM_LOCK_CMP3_MODE1         0x060
0035 #define QSERDES_COM_LOCK_CMP1_MODE2         0x064
0036 #define QSERDES_COM_CMN_RSVD0               0x064
0037 #define QSERDES_COM_LOCK_CMP2_MODE2         0x068
0038 #define QSERDES_COM_EP_CLOCK_DETECT_CTRL        0x068
0039 #define QSERDES_COM_LOCK_CMP3_MODE2         0x06c
0040 #define QSERDES_COM_SYSCLK_DET_COMP_STATUS      0x06c
0041 #define QSERDES_COM_BG_TRIM             0x070
0042 #define QSERDES_COM_CLK_EP_DIV              0x074
0043 #define QSERDES_COM_CP_CTRL_MODE0           0x078
0044 #define QSERDES_COM_CP_CTRL_MODE1           0x07c
0045 #define QSERDES_COM_CP_CTRL_MODE2           0x080
0046 #define QSERDES_COM_CMN_RSVD1               0x080
0047 #define QSERDES_COM_PLL_RCTRL_MODE0         0x084
0048 #define QSERDES_COM_PLL_RCTRL_MODE1         0x088
0049 #define QSERDES_COM_PLL_RCTRL_MODE2         0x08c
0050 #define QSERDES_COM_CMN_RSVD2               0x08c
0051 #define QSERDES_COM_PLL_CCTRL_MODE0         0x090
0052 #define QSERDES_COM_PLL_CCTRL_MODE1         0x094
0053 #define QSERDES_COM_PLL_CCTRL_MODE2         0x098
0054 #define QSERDES_COM_CMN_RSVD3               0x098
0055 #define QSERDES_COM_PLL_CNTRL               0x09c
0056 #define QSERDES_COM_PHASE_SEL_CTRL          0x0a0
0057 #define QSERDES_COM_PHASE_SEL_DC            0x0a4
0058 #define QSERDES_COM_CORE_CLK_IN_SYNC_SEL        0x0a8
0059 #define QSERDES_COM_BIAS_EN_CTRL_BY_PSM         0x0a8
0060 #define QSERDES_COM_SYSCLK_EN_SEL           0x0ac
0061 #define QSERDES_COM_CML_SYSCLK_SEL          0x0b0
0062 #define QSERDES_COM_RESETSM_CNTRL           0x0b4
0063 #define QSERDES_COM_RESETSM_CNTRL2          0x0b8
0064 #define QSERDES_COM_RESTRIM_CTRL            0x0bc
0065 #define QSERDES_COM_RESTRIM_CTRL2           0x0c0
0066 #define QSERDES_COM_RESCODE_DIV_NUM         0x0c4
0067 #define QSERDES_COM_LOCK_CMP_EN             0x0c8
0068 #define QSERDES_COM_LOCK_CMP_CFG            0x0cc
0069 #define QSERDES_COM_DEC_START_MODE0         0x0d0
0070 #define QSERDES_COM_DEC_START_MODE1         0x0d4
0071 #define QSERDES_COM_DEC_START_MODE2         0x0d8
0072 #define QSERDES_COM_VCOCAL_DEADMAN_CTRL         0x0d8
0073 #define QSERDES_COM_DIV_FRAC_START1_MODE0       0x0dc
0074 #define QSERDES_COM_DIV_FRAC_START2_MODE0       0x0e0
0075 #define QSERDES_COM_DIV_FRAC_START3_MODE0       0x0e4
0076 #define QSERDES_COM_DIV_FRAC_START1_MODE1       0x0e8
0077 #define QSERDES_COM_DIV_FRAC_START2_MODE1       0x0ec
0078 #define QSERDES_COM_DIV_FRAC_START3_MODE1       0x0f0
0079 #define QSERDES_COM_DIV_FRAC_START1_MODE2       0x0f4
0080 #define QSERDES_COM_VCO_TUNE_MINVAL1            0x0f4
0081 #define QSERDES_COM_DIV_FRAC_START2_MODE2       0x0f8
0082 #define QSERDES_COM_VCO_TUNE_MINVAL2            0x0f8
0083 #define QSERDES_COM_DIV_FRAC_START3_MODE2       0x0fc
0084 #define QSERDES_COM_CMN_RSVD4               0x0fc
0085 #define QSERDES_COM_INTEGLOOP_INITVAL           0x100
0086 #define QSERDES_COM_INTEGLOOP_EN            0x104
0087 #define QSERDES_COM_INTEGLOOP_GAIN0_MODE0       0x108
0088 #define QSERDES_COM_INTEGLOOP_GAIN1_MODE0       0x10c
0089 #define QSERDES_COM_INTEGLOOP_GAIN0_MODE1       0x110
0090 #define QSERDES_COM_INTEGLOOP_GAIN1_MODE1       0x114
0091 #define QSERDES_COM_INTEGLOOP_GAIN0_MODE2       0x118
0092 #define QSERDES_COM_VCO_TUNE_MAXVAL1            0x118
0093 #define QSERDES_COM_INTEGLOOP_GAIN1_MODE2       0x11c
0094 #define QSERDES_COM_VCO_TUNE_MAXVAL2            0x11c
0095 #define QSERDES_COM_RES_TRIM_CONTROL2           0x120
0096 #define QSERDES_COM_VCO_TUNE_CTRL           0x124
0097 #define QSERDES_COM_VCO_TUNE_MAP            0x128
0098 #define QSERDES_COM_VCO_TUNE1_MODE0         0x12c
0099 #define QSERDES_COM_VCO_TUNE2_MODE0         0x130
0100 #define QSERDES_COM_VCO_TUNE1_MODE1         0x134
0101 #define QSERDES_COM_VCO_TUNE2_MODE1         0x138
0102 #define QSERDES_COM_VCO_TUNE1_MODE2         0x13c
0103 #define QSERDES_COM_VCO_TUNE_INITVAL1           0x13c
0104 #define QSERDES_COM_VCO_TUNE2_MODE2         0x140
0105 #define QSERDES_COM_VCO_TUNE_INITVAL2           0x140
0106 #define QSERDES_COM_VCO_TUNE_TIMER1         0x144
0107 #define QSERDES_COM_VCO_TUNE_TIMER2         0x148
0108 #define QSERDES_COM_SAR                 0x14c
0109 #define QSERDES_COM_SAR_CLK             0x150
0110 #define QSERDES_COM_SAR_CODE_OUT_STATUS         0x154
0111 #define QSERDES_COM_SAR_CODE_READY_STATUS       0x158
0112 #define QSERDES_COM_CMN_STATUS              0x15c
0113 #define QSERDES_COM_RESET_SM_STATUS         0x160
0114 #define QSERDES_COM_RESTRIM_CODE_STATUS         0x164
0115 #define QSERDES_COM_PLLCAL_CODE1_STATUS         0x168
0116 #define QSERDES_COM_PLLCAL_CODE2_STATUS         0x16c
0117 #define QSERDES_COM_BG_CTRL             0x170
0118 #define QSERDES_COM_CLK_SELECT              0x174
0119 #define QSERDES_COM_HSCLK_SEL               0x178
0120 #define QSERDES_COM_INTEGLOOP_BINCODE_STATUS        0x17c
0121 #define QSERDES_COM_PLL_ANALOG              0x180
0122 #define QSERDES_COM_CORECLK_DIV             0x184
0123 #define QSERDES_COM_SW_RESET                0x188
0124 #define QSERDES_COM_CORE_CLK_EN             0x18c
0125 #define QSERDES_COM_C_READY_STATUS          0x190
0126 #define QSERDES_COM_CMN_CONFIG              0x194
0127 #define QSERDES_COM_CMN_RATE_OVERRIDE           0x198
0128 #define QSERDES_COM_SVS_MODE_CLK_SEL            0x19c
0129 #define QSERDES_COM_DEBUG_BUS0              0x1a0
0130 #define QSERDES_COM_DEBUG_BUS1              0x1a4
0131 #define QSERDES_COM_DEBUG_BUS2              0x1a8
0132 #define QSERDES_COM_DEBUG_BUS3              0x1ac
0133 #define QSERDES_COM_DEBUG_BUS_SEL           0x1b0
0134 #define QSERDES_COM_CMN_MISC1               0x1b4
0135 #define QSERDES_COM_CMN_MISC2               0x1b8
0136 #define QSERDES_COM_CORECLK_DIV_MODE1           0x1bc
0137 #define QSERDES_COM_CORECLK_DIV_MODE2           0x1c0
0138 #define QSERDES_COM_CMN_RSVD5               0x1c0
0139 
0140 #endif