1*0ade8cd8SKonstantin Porotchkin /* 2*0ade8cd8SKonstantin Porotchkin * Copyright (C) 2018 Marvell International Ltd. 3*0ade8cd8SKonstantin Porotchkin * 4*0ade8cd8SKonstantin Porotchkin * SPDX-License-Identifier: BSD-3-Clause 5*0ade8cd8SKonstantin Porotchkin * https://spdx.org/licenses 6*0ade8cd8SKonstantin Porotchkin */ 7*0ade8cd8SKonstantin Porotchkin 8*0ade8cd8SKonstantin Porotchkin /* Driver for COMPHY unit that is part or Marvell A8K SoCs */ 9*0ade8cd8SKonstantin Porotchkin 10*0ade8cd8SKonstantin Porotchkin #ifndef _COMPHY_H_ 11*0ade8cd8SKonstantin Porotchkin #define _COMPHY_H_ 12*0ade8cd8SKonstantin Porotchkin 13*0ade8cd8SKonstantin Porotchkin /* COMPHY registers */ 14*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_REG 0x0 15*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PWR_UP_OFFSET 1 16*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PWR_UP_MASK \ 17*0ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_CFG1_PWR_UP_OFFSET) 18*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PIPE_SELECT_OFFSET 2 19*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PIPE_SELECT_MASK \ 20*0ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_CFG1_PIPE_SELECT_OFFSET) 21*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PWR_ON_RESET_OFFSET 13 22*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PWR_ON_RESET_MASK \ 23*0ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_CFG1_PWR_ON_RESET_OFFSET) 24*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_CORE_RSTN_OFFSET 14 25*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_CORE_RSTN_MASK \ 26*0ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_CFG1_CORE_RSTN_OFFSET) 27*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_PHY_MODE_OFFSET 15 28*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_PHY_MODE_MASK \ 29*0ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_PHY_MODE_OFFSET) 30*0ade8cd8SKonstantin Porotchkin 31*0ade8cd8SKonstantin Porotchkin #define COMMON_SELECTOR_PHY_OFFSET 0x140 32*0ade8cd8SKonstantin Porotchkin #define COMMON_SELECTOR_PIPE_OFFSET 0x144 33*0ade8cd8SKonstantin Porotchkin 34*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1 0x148 35*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_COMPHY_0_4_PORT_OFFSET 0 36*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_COMPHY_0_4_PORT_MASK 0xFFFF 37*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_PCIE_X4_EN_OFFSET 24 38*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_PCIE_X4_EN_MASK \ 39*0ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_SD_CTRL1_PCIE_X4_EN_OFFSET) 40*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_PCIE_X2_EN_OFFSET 25 41*0ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_PCIE_X2_EN_MASK \ 42*0ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_SD_CTRL1_PCIE_X2_EN_OFFSET) 43*0ade8cd8SKonstantin Porotchkin 44*0ade8cd8SKonstantin Porotchkin #define DFX_DEV_GEN_CTRL12 0x80 45*0ade8cd8SKonstantin Porotchkin #define DFX_DEV_GEN_PCIE_CLK_SRC_OFFSET 7 46*0ade8cd8SKonstantin Porotchkin #define DFX_DEV_GEN_PCIE_CLK_SRC_MASK \ 47*0ade8cd8SKonstantin Porotchkin (0x3 << DFX_DEV_GEN_PCIE_CLK_SRC_OFFSET) 48*0ade8cd8SKonstantin Porotchkin 49*0ade8cd8SKonstantin Porotchkin /* HPIPE register */ 50*0ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_REG 0x4 51*0ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_REF_FREQ_OFFSET 0 52*0ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_REF_FREQ_MASK \ 53*0ade8cd8SKonstantin Porotchkin (0x1f << HPIPE_PWR_PLL_REF_FREQ_OFFSET) 54*0ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_PHY_MODE_OFFSET 5 55*0ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_PHY_MODE_MASK \ 56*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_PWR_PLL_PHY_MODE_OFFSET) 57*0ade8cd8SKonstantin Porotchkin 58*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_REG0 0x01C 59*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_RES_FORCE_OFFSET 15 60*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_RES_FORCE_MASK \ 61*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_DFE_RES_FORCE_OFFSET) 62*0ade8cd8SKonstantin Porotchkin 63*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_REG 0x040 64*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUPI_OFFSET 0 65*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUPI_MASK \ 66*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G2_SET_1_G2_RX_SELMUPI_OFFSET) 67*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUPP_OFFSET 3 68*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUPP_MASK \ 69*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G2_SET_1_G2_RX_SELMUPP_OFFSET) 70*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUFI_OFFSET 6 71*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUFI_MASK \ 72*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_G2_SET_1_G2_RX_SELMUFI_OFFSET) 73*0ade8cd8SKonstantin Porotchkin 74*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTINGS_1_REG 0x048 75*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_RX_SELMUPI_OFFSET 0 76*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_RX_SELMUPI_MASK \ 77*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G3_RX_SELMUPI_OFFSET) 78*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_RX_SELMUPF_OFFSET 3 79*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_RX_SELMUPF_MASK \ 80*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G3_RX_SELMUPF_OFFSET) 81*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_BIT_OFFSET 13 82*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_BIT_MASK \ 83*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_G3_SETTING_BIT_OFFSET) 84*0ade8cd8SKonstantin Porotchkin 85*0ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_REG 0x94 86*0ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_GEN_MAX_OFFSET 10 87*0ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_GEN_MAX_MASK \ 88*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_INTERFACE_GEN_MAX_OFFSET) 89*0ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_DET_BYPASS_OFFSET 12 90*0ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_DET_BYPASS_MASK \ 91*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_INTERFACE_DET_BYPASS_OFFSET) 92*0ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_LINK_TRAIN_OFFSET 14 93*0ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_LINK_TRAIN_MASK \ 94*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_INTERFACE_LINK_TRAIN_OFFSET) 95*0ade8cd8SKonstantin Porotchkin 96*0ade8cd8SKonstantin Porotchkin #define HPIPE_VDD_CAL_CTRL_REG 0x114 97*0ade8cd8SKonstantin Porotchkin #define HPIPE_EXT_SELLV_RXSAMPL_OFFSET 5 98*0ade8cd8SKonstantin Porotchkin #define HPIPE_EXT_SELLV_RXSAMPL_MASK \ 99*0ade8cd8SKonstantin Porotchkin (0x1f << HPIPE_EXT_SELLV_RXSAMPL_OFFSET) 100*0ade8cd8SKonstantin Porotchkin 101*0ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_REG0 0x120 102*0ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_IDLE_SYNC_OFFSET 12 103*0ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_IDLE_SYNC_MASK \ 104*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_PCIE_IDLE_SYNC_OFFSET) 105*0ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_SEL_BITS_OFFSET 13 106*0ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_SEL_BITS_MASK \ 107*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_PCIE_SEL_BITS_OFFSET) 108*0ade8cd8SKonstantin Porotchkin 109*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_ALIGN_REG 0x124 110*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_ALIGN_OFF_OFFSET 12 111*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_ALIGN_OFF_MASK \ 112*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_ALIGN_OFF_OFFSET) 113*0ade8cd8SKonstantin Porotchkin 114*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_REG 0x13C 115*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_CLK100M_125M_OFFSET 4 116*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_CLK100M_125M_MASK \ 117*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_CLK100M_125M_OFFSET) 118*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_ICP_FORCE_OFFSET 5 119*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_ICP_FORCE_MASK \ 120*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_ICP_FORCE_OFFSET) 121*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_TXDCLK_2X_OFFSET 6 122*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_TXDCLK_2X_MASK \ 123*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_TXDCLK_2X_OFFSET) 124*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_CLK500_EN_OFFSET 7 125*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_CLK500_EN_MASK \ 126*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_CLK500_EN_OFFSET) 127*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_REFCLK_SEL_OFFSET 10 128*0ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_REFCLK_SEL_MASK \ 129*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_REFCLK_SEL_OFFSET) 130*0ade8cd8SKonstantin Porotchkin 131*0ade8cd8SKonstantin Porotchkin #define HPIPE_SAMPLER_N_PROC_CALIB_CTRL_REG 0x16C 132*0ade8cd8SKonstantin Porotchkin #define HPIPE_SMAPLER_OFFSET 12 133*0ade8cd8SKonstantin Porotchkin #define HPIPE_SMAPLER_MASK (0x1 << HPIPE_SMAPLER_OFFSET) 134*0ade8cd8SKonstantin Porotchkin 135*0ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_CTR_DTL_REG 0x184 136*0ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_CTR_DTL_FLOOP_EN_OFFSET 2 137*0ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_CTR_DTL_FLOOP_EN_MASK \ 138*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_PWR_CTR_DTL_FLOOP_EN_OFFSET) 139*0ade8cd8SKonstantin Porotchkin 140*0ade8cd8SKonstantin Porotchkin #define HPIPE_FRAME_DET_CONTROL_REG 0x220 141*0ade8cd8SKonstantin Porotchkin #define HPIPE_FRAME_DET_LOCK_LOST_TO_OFFSET 12 142*0ade8cd8SKonstantin Porotchkin #define HPIPE_FRAME_DET_LOCK_LOST_TO_MASK \ 143*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_FRAME_DET_LOCK_LOST_TO_OFFSET) 144*0ade8cd8SKonstantin Porotchkin 145*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_0_REG 0x268 146*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_P2P_HOLD_OFFSET 15 147*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_P2P_HOLD_MASK \ 148*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_P2P_HOLD_OFFSET) 149*0ade8cd8SKonstantin Porotchkin 150*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_REG 0x26C 151*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_G1_OFFSET 0 152*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_G1_MASK \ 153*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_CTRL_G1_OFFSET) 154*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_GN1_OFFSET 1 155*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_GN1_MASK \ 156*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_CTRL_GN1_OFFSET) 157*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_G0_OFFSET 2 158*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_G0_MASK \ 159*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_CTRL_G0_OFFSET) 160*0ade8cd8SKonstantin Porotchkin 161*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_4_REG 0x278 162*0ade8cd8SKonstantin Porotchkin #define HPIPE_TRX_TRAIN_TIMER_OFFSET 0 163*0ade8cd8SKonstantin Porotchkin #define HPIPE_TRX_TRAIN_TIMER_MASK \ 164*0ade8cd8SKonstantin Porotchkin (0x3FF << HPIPE_TRX_TRAIN_TIMER_OFFSET) 165*0ade8cd8SKonstantin Porotchkin 166*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_5_REG 0x2A4 167*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_SQ_EN_OFFSET 11 168*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_SQ_EN_MASK \ 169*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_START_SQ_EN_OFFSET) 170*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_FRM_DET_EN_OFFSET 12 171*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_FRM_DET_EN_MASK \ 172*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_START_FRM_DET_EN_OFFSET) 173*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_FRM_LOCK_EN_OFFSET 13 174*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_FRM_LOCK_EN_MASK \ 175*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_START_FRM_LOCK_EN_OFFSET) 176*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_WAIT_TIME_EN_OFFSET 14 177*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_WAIT_TIME_EN_MASK \ 178*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_WAIT_TIME_EN_OFFSET) 179*0ade8cd8SKonstantin Porotchkin 180*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_REG 0x31C 181*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CHK_INIT_OFFSET 4 182*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CHK_INIT_MASK \ 183*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_CHK_INIT_OFFSET) 184*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_COE_FM_PIN_PCIE3_OFFSET 7 185*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_COE_FM_PIN_PCIE3_MASK \ 186*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_COE_FM_PIN_PCIE3_OFFSET) 187*0ade8cd8SKonstantin Porotchkin 188*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_CONTROL_REG 0x418 189*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_RX_MAX_DFE_ADAPT_0_OFFSET 14 190*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_RX_MAX_DFE_ADAPT_0_MASK \ 191*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_CDR_RX_MAX_DFE_ADAPT_0_OFFSET) 192*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_RX_MAX_DFE_ADAPT_1_OFFSET 12 193*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_RX_MAX_DFE_ADAPT_1_MASK \ 194*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_CDR_RX_MAX_DFE_ADAPT_1_OFFSET) 195*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_MAX_DFE_ADAPT_0_OFFSET 9 196*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_MAX_DFE_ADAPT_0_MASK \ 197*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_CDR_MAX_DFE_ADAPT_0_OFFSET) 198*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_MAX_DFE_ADAPT_1_OFFSET 6 199*0ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_MAX_DFE_ADAPT_1_MASK \ 200*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_CDR_MAX_DFE_ADAPT_1_OFFSET) 201*0ade8cd8SKonstantin Porotchkin 202*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_11_REG 0x438 203*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_STATUS_CHECK_MODE_OFFSET 6 204*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TX_STATUS_CHECK_MODE_MASK \ 205*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_STATUS_CHECK_MODE_OFFSET) 206*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_NUM_OF_PRESET_OFFSET 10 207*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_NUM_OF_PRESET_MASK \ 208*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_TX_NUM_OF_PRESET_OFFSET) 209*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_SWEEP_PRESET_EN_OFFSET 15 210*0ade8cd8SKonstantin Porotchkin #define HPIPE_TX_SWEEP_PRESET_EN_MASK \ 211*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_SWEEP_PRESET_EN_OFFSET) 212*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SETTINGS_4_REG 0x44C 213*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_DFE_RES_OFFSET 8 214*0ade8cd8SKonstantin Porotchkin #define HPIPE_G2_DFE_RES_MASK (0x3 << HPIPE_G2_DFE_RES_OFFSET) 215*0ade8cd8SKonstantin Porotchkin 216*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_3_REG 0x450 217*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_CAP_SEL_OFFSET 0 218*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_CAP_SEL_MASK \ 219*0ade8cd8SKonstantin Porotchkin (0xf << HPIPE_G3_FFE_CAP_SEL_OFFSET) 220*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_RES_SEL_OFFSET 4 221*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_RES_SEL_MASK \ 222*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G3_FFE_RES_SEL_OFFSET) 223*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_SETTING_FORCE_OFFSET 7 224*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_SETTING_FORCE_MASK \ 225*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_G3_FFE_SETTING_FORCE_OFFSET) 226*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_DEG_RES_LEVEL_OFFSET 12 227*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_DEG_RES_LEVEL_MASK \ 228*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_G3_FFE_DEG_RES_LEVEL_OFFSET) 229*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_LOAD_RES_LEVEL_OFFSET 14 230*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_LOAD_RES_LEVEL_MASK \ 231*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_G3_FFE_LOAD_RES_LEVEL_OFFSET) 232*0ade8cd8SKonstantin Porotchkin 233*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_4_REG 0x454 234*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_DFE_RES_OFFSET 8 235*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_DFE_RES_MASK (0x3 << HPIPE_G3_DFE_RES_OFFSET) 236*0ade8cd8SKonstantin Porotchkin 237*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_CONTROL_REG 0x470 238*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_TX_MAX_DFE_ADAPT_OFFSET 14 239*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_TX_MAX_DFE_ADAPT_MASK \ 240*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_DFE_TX_MAX_DFE_ADAPT_OFFSET) 241*0ade8cd8SKonstantin Porotchkin 242*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_CTRL_28_REG 0x49C 243*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_CTRL_28_PIPE4_OFFSET 7 244*0ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_CTRL_28_PIPE4_MASK \ 245*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_DFE_CTRL_28_PIPE4_OFFSET) 246*0ade8cd8SKonstantin Porotchkin 247*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_5_REG 0x548 248*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_5_G3_ICP_OFFSET 0 249*0ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_5_G3_ICP_MASK \ 250*0ade8cd8SKonstantin Porotchkin (0xf << HPIPE_G3_SETTING_5_G3_ICP_OFFSET) 251*0ade8cd8SKonstantin Porotchkin 252*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_STATUS1_REG 0x60C 253*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_STATUS1_PCLK_EN_OFFSET 0 254*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_STATUS1_PCLK_EN_MASK \ 255*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_STATUS1_PCLK_EN_OFFSET) 256*0ade8cd8SKonstantin Porotchkin 257*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG4_REG 0x620 258*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG4_DFE_EN_SEL_OFFSET 3 259*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG4_DFE_EN_SEL_MASK \ 260*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_CFG4_DFE_EN_SEL_OFFSET) 261*0ade8cd8SKonstantin Porotchkin 262*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_EQU_CONFIG_0_REG 0x69C 263*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_FS_OFFSET 0 264*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_FS_MASK (0x3f << HPIPE_CFG_EQ_FS_OFFSET) 265*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_LF_OFFSET 6 266*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_LF_MASK (0x3f << HPIPE_CFG_EQ_LF_OFFSET) 267*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PHY_RC_EP_OFFSET 12 268*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PHY_RC_EP_MASK \ 269*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CFG_PHY_RC_EP_OFFSET) 270*0ade8cd8SKonstantin Porotchkin 271*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_EQ_CFG1_REG 0x6a0 272*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_UPDATE_POLARITY_OFFSET 12 273*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_UPDATE_POLARITY_MASK \ 274*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CFG_UPDATE_POLARITY_OFFSET) 275*0ade8cd8SKonstantin Porotchkin 276*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_EQ_CFG2_REG 0x6a4 277*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_BUNDLE_DIS_OFFSET 14 278*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_BUNDLE_DIS_MASK \ 279*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CFG_EQ_BUNDLE_DIS_OFFSET) 280*0ade8cd8SKonstantin Porotchkin 281*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG0_REG 0x6a8 282*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET0_OFFSET 0 283*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET0_MASK \ 284*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET0_OFFSET) 285*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET1_OFFSET 6 286*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET1_MASK \ 287*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET1_OFFSET) 288*0ade8cd8SKonstantin Porotchkin 289*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG1_REG 0x6ac 290*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET2_OFFSET 0 291*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET2_MASK \ 292*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET2_OFFSET) 293*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET3_OFFSET 6 294*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET3_MASK \ 295*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET3_OFFSET) 296*0ade8cd8SKonstantin Porotchkin 297*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG2_REG 0x6b0 298*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET4_OFFSET 0 299*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET4_MASK \ 300*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET4_OFFSET) 301*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET5_OFFSET 6 302*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET5_MASK \ 303*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET5_OFFSET) 304*0ade8cd8SKonstantin Porotchkin 305*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG3_REG 0x6b4 306*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET6_OFFSET 0 307*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET6_MASK \ 308*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET6_OFFSET) 309*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET7_OFFSET 6 310*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET7_MASK \ 311*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET7_OFFSET) 312*0ade8cd8SKonstantin Porotchkin 313*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG4_REG 0x6b8 314*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET8_OFFSET 0 315*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET8_MASK \ 316*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET8_OFFSET) 317*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET9_OFFSET 6 318*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET9_MASK \ 319*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET9_OFFSET) 320*0ade8cd8SKonstantin Porotchkin 321*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG5_REG 0x6bc 322*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET10_OFFSET 0 323*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET10_MASK \ 324*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET10_OFFSET) 325*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET11_OFFSET 6 326*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET11_MASK \ 327*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET11_OFFSET) 328*0ade8cd8SKonstantin Porotchkin 329*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG6_REG 0x6c0 330*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET0_OFFSET 0 331*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET0_MASK \ 332*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET0_OFFSET) 333*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET0_OFFSET 6 334*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET0_MASK \ 335*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET0_OFFSET) 336*0ade8cd8SKonstantin Porotchkin 337*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG7_REG 0x6c4 338*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET1_OFFSET 0 339*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET1_MASK \ 340*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET1_OFFSET) 341*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET1_OFFSET 6 342*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET1_MASK \ 343*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET1_OFFSET) 344*0ade8cd8SKonstantin Porotchkin 345*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG8_REG 0x6c8 346*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET2_OFFSET 0 347*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET2_MASK \ 348*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET2_OFFSET) 349*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET2_OFFSET 6 350*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET2_MASK \ 351*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET2_OFFSET) 352*0ade8cd8SKonstantin Porotchkin 353*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG9_REG 0x6cc 354*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET3_OFFSET 0 355*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET3_MASK \ 356*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET3_OFFSET) 357*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET3_OFFSET 6 358*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET3_MASK \ 359*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET3_OFFSET) 360*0ade8cd8SKonstantin Porotchkin 361*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG10_REG 0x6d0 362*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET4_OFFSET 0 363*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET4_MASK \ 364*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET4_OFFSET) 365*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET4_OFFSET 6 366*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET4_MASK \ 367*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET4_OFFSET) 368*0ade8cd8SKonstantin Porotchkin 369*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG11_REG 0x6d4 370*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET5_OFFSET 0 371*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET5_MASK \ 372*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET5_OFFSET) 373*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET5_OFFSET 6 374*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET5_MASK \ 375*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET5_OFFSET) 376*0ade8cd8SKonstantin Porotchkin 377*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG12_REG 0x6d8 378*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET6_OFFSET 0 379*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET6_MASK \ 380*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET6_OFFSET) 381*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET6_OFFSET 6 382*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET6_MASK \ 383*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET6_OFFSET) 384*0ade8cd8SKonstantin Porotchkin 385*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG13_REG 0x6dc 386*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET7_OFFSET 0 387*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET7_MASK \ 388*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET7_OFFSET) 389*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET7_OFFSET 6 390*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET7_MASK \ 391*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET7_OFFSET) 392*0ade8cd8SKonstantin Porotchkin 393*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG14_REG 0x6e0 394*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET8_OFFSET 0 395*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET8_MASK \ 396*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET8_OFFSET) 397*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET8_OFFSET 6 398*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET8_MASK \ 399*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET8_OFFSET) 400*0ade8cd8SKonstantin Porotchkin 401*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG15_REG 0x6e4 402*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET9_OFFSET 0 403*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET9_MASK \ 404*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET9_OFFSET) 405*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET9_OFFSET 6 406*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET9_MASK \ 407*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET9_OFFSET) 408*0ade8cd8SKonstantin Porotchkin 409*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG16_REG 0x6e8 410*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET10_OFFSET 0 411*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET10_MASK \ 412*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET10_OFFSET) 413*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET10_OFFSET 6 414*0ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET10_MASK \ 415*0ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET10_OFFSET) 416*0ade8cd8SKonstantin Porotchkin 417*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_EQ_REMOTE_SETTING_REG 0x6f8 418*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_DIRN_OVERRIDE_OFFSET 0 419*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_DIRN_OVERRIDE_MASK \ 420*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_CFG_FOM_DIRN_OVERRIDE_OFFSET) 421*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_ONLY_MODE_OFFFSET 1 422*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_ONLY_MODE_MASK \ 423*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_CFG_FOM_ONLY_MODE_OFFFSET) 424*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_PRESET_VECTOR_OFFSET 2 425*0ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_PRESET_VECTOR_MASK \ 426*0ade8cd8SKonstantin Porotchkin (0xf << HPIPE_LANE_CFG_FOM_PRESET_VECTOR_OFFSET) 427*0ade8cd8SKonstantin Porotchkin 428*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_REG 0x704 429*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_PIPE_RST_OFFSET 0 430*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_PIPE_RST_MASK \ 431*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_RST_CLK_CTRL_PIPE_RST_OFFSET) 432*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_FIXED_PCLK_OFFSET 2 433*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_FIXED_PCLK_MASK \ 434*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_RST_CLK_CTRL_FIXED_PCLK_OFFSET) 435*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_PIPE_WIDTH_OFFSET 3 436*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_PIPE_WIDTH_MASK \ 437*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_RST_CLK_CTRL_PIPE_WIDTH_OFFSET) 438*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_CORE_FREQ_SEL_OFFSET 9 439*0ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_CORE_FREQ_SEL_MASK \ 440*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_RST_CLK_CTRL_CORE_FREQ_SEL_OFFSET) 441*0ade8cd8SKonstantin Porotchkin 442*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_REG 0x70c 443*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SEL_OFFSET 1 444*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SEL_MASK \ 445*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SEL_OFFSET) 446*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SCALE_OFFSET 2 447*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SCALE_MASK \ 448*0ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SCALE_OFFSET) 449*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_PLL_RDY_DL_OFFSET 5 450*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_PLL_RDY_DL_MASK \ 451*0ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_CLK_SRC_LO_PLL_RDY_DL_OFFSET) 452*0ade8cd8SKonstantin Porotchkin 453*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_REG 0x710 454*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_STRT_OFFSET 0 455*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_STRT_MASK \ 456*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_HI_LANE_STRT_OFFSET) 457*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_BREAK_OFFSET 1 458*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_BREAK_MASK \ 459*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_HI_LANE_BREAK_OFFSET) 460*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_MASTER_OFFSET 2 461*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_MASTER_MASK \ 462*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_HI_LANE_MASTER_OFFSET) 463*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_MODE_PIPE_OFFSET 7 464*0ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_MODE_PIPE_MASK \ 465*0ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_HI_MODE_PIPE_OFFSET) 466*0ade8cd8SKonstantin Porotchkin 467*0ade8cd8SKonstantin Porotchkin #define HPIPE_GLOBAL_PM_CTRL 0x740 468*0ade8cd8SKonstantin Porotchkin #define HPIPE_GLOBAL_PM_RXDLOZ_WAIT_OFFSET 0 469*0ade8cd8SKonstantin Porotchkin #define HPIPE_GLOBAL_PM_RXDLOZ_WAIT_MASK \ 470*0ade8cd8SKonstantin Porotchkin (0xFF << HPIPE_GLOBAL_PM_RXDLOZ_WAIT_OFFSET) 471*0ade8cd8SKonstantin Porotchkin 472*0ade8cd8SKonstantin Porotchkin #endif /* _COMPHY_H_ */ 473*0ade8cd8SKonstantin Porotchkin 474