10ade8cd8SKonstantin Porotchkin /* 20ade8cd8SKonstantin Porotchkin * Copyright (C) 2018 Marvell International Ltd. 30ade8cd8SKonstantin Porotchkin * 40ade8cd8SKonstantin Porotchkin * SPDX-License-Identifier: BSD-3-Clause 50ade8cd8SKonstantin Porotchkin * https://spdx.org/licenses 60ade8cd8SKonstantin Porotchkin */ 70ade8cd8SKonstantin Porotchkin 80ade8cd8SKonstantin Porotchkin /* Driver for COMPHY unit that is part or Marvell A8K SoCs */ 90ade8cd8SKonstantin Porotchkin 10*c3cf06f1SAntonio Nino Diaz #ifndef COMPHY_H 11*c3cf06f1SAntonio Nino Diaz #define COMPHY_H 120ade8cd8SKonstantin Porotchkin 130ade8cd8SKonstantin Porotchkin /* COMPHY registers */ 140ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_REG 0x0 150ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PWR_UP_OFFSET 1 160ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PWR_UP_MASK \ 170ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_CFG1_PWR_UP_OFFSET) 180ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PIPE_SELECT_OFFSET 2 190ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PIPE_SELECT_MASK \ 200ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_CFG1_PIPE_SELECT_OFFSET) 210ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PWR_ON_RESET_OFFSET 13 220ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_PWR_ON_RESET_MASK \ 230ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_CFG1_PWR_ON_RESET_OFFSET) 240ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_CORE_RSTN_OFFSET 14 250ade8cd8SKonstantin Porotchkin #define COMMON_PHY_CFG1_CORE_RSTN_MASK \ 260ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_CFG1_CORE_RSTN_OFFSET) 270ade8cd8SKonstantin Porotchkin #define COMMON_PHY_PHY_MODE_OFFSET 15 280ade8cd8SKonstantin Porotchkin #define COMMON_PHY_PHY_MODE_MASK \ 290ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_PHY_MODE_OFFSET) 300ade8cd8SKonstantin Porotchkin 310ade8cd8SKonstantin Porotchkin #define COMMON_SELECTOR_PHY_OFFSET 0x140 320ade8cd8SKonstantin Porotchkin #define COMMON_SELECTOR_PIPE_OFFSET 0x144 330ade8cd8SKonstantin Porotchkin 340ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1 0x148 350ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_COMPHY_0_4_PORT_OFFSET 0 360ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_COMPHY_0_4_PORT_MASK 0xFFFF 370ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_PCIE_X4_EN_OFFSET 24 380ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_PCIE_X4_EN_MASK \ 390ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_SD_CTRL1_PCIE_X4_EN_OFFSET) 400ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_PCIE_X2_EN_OFFSET 25 410ade8cd8SKonstantin Porotchkin #define COMMON_PHY_SD_CTRL1_PCIE_X2_EN_MASK \ 420ade8cd8SKonstantin Porotchkin (0x1 << COMMON_PHY_SD_CTRL1_PCIE_X2_EN_OFFSET) 430ade8cd8SKonstantin Porotchkin 440ade8cd8SKonstantin Porotchkin #define DFX_DEV_GEN_CTRL12 0x80 450ade8cd8SKonstantin Porotchkin #define DFX_DEV_GEN_PCIE_CLK_SRC_OFFSET 7 460ade8cd8SKonstantin Porotchkin #define DFX_DEV_GEN_PCIE_CLK_SRC_MASK \ 470ade8cd8SKonstantin Porotchkin (0x3 << DFX_DEV_GEN_PCIE_CLK_SRC_OFFSET) 480ade8cd8SKonstantin Porotchkin 490ade8cd8SKonstantin Porotchkin /* HPIPE register */ 500ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_REG 0x4 510ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_REF_FREQ_OFFSET 0 520ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_REF_FREQ_MASK \ 530ade8cd8SKonstantin Porotchkin (0x1f << HPIPE_PWR_PLL_REF_FREQ_OFFSET) 540ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_PHY_MODE_OFFSET 5 550ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_PLL_PHY_MODE_MASK \ 560ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_PWR_PLL_PHY_MODE_OFFSET) 570ade8cd8SKonstantin Porotchkin 580ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_REG0 0x01C 590ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_RES_FORCE_OFFSET 15 600ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_RES_FORCE_MASK \ 610ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_DFE_RES_FORCE_OFFSET) 620ade8cd8SKonstantin Porotchkin 630ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_REG 0x040 640ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUPI_OFFSET 0 650ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUPI_MASK \ 660ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G2_SET_1_G2_RX_SELMUPI_OFFSET) 670ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUPP_OFFSET 3 680ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUPP_MASK \ 690ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G2_SET_1_G2_RX_SELMUPP_OFFSET) 700ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUFI_OFFSET 6 710ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SET_1_G2_RX_SELMUFI_MASK \ 720ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_G2_SET_1_G2_RX_SELMUFI_OFFSET) 730ade8cd8SKonstantin Porotchkin 740ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTINGS_1_REG 0x048 750ade8cd8SKonstantin Porotchkin #define HPIPE_G3_RX_SELMUPI_OFFSET 0 760ade8cd8SKonstantin Porotchkin #define HPIPE_G3_RX_SELMUPI_MASK \ 770ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G3_RX_SELMUPI_OFFSET) 780ade8cd8SKonstantin Porotchkin #define HPIPE_G3_RX_SELMUPF_OFFSET 3 790ade8cd8SKonstantin Porotchkin #define HPIPE_G3_RX_SELMUPF_MASK \ 800ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G3_RX_SELMUPF_OFFSET) 810ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_BIT_OFFSET 13 820ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_BIT_MASK \ 830ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_G3_SETTING_BIT_OFFSET) 840ade8cd8SKonstantin Porotchkin 850ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_REG 0x94 860ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_GEN_MAX_OFFSET 10 870ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_GEN_MAX_MASK \ 880ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_INTERFACE_GEN_MAX_OFFSET) 890ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_DET_BYPASS_OFFSET 12 900ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_DET_BYPASS_MASK \ 910ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_INTERFACE_DET_BYPASS_OFFSET) 920ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_LINK_TRAIN_OFFSET 14 930ade8cd8SKonstantin Porotchkin #define HPIPE_INTERFACE_LINK_TRAIN_MASK \ 940ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_INTERFACE_LINK_TRAIN_OFFSET) 950ade8cd8SKonstantin Porotchkin 960ade8cd8SKonstantin Porotchkin #define HPIPE_VDD_CAL_CTRL_REG 0x114 970ade8cd8SKonstantin Porotchkin #define HPIPE_EXT_SELLV_RXSAMPL_OFFSET 5 980ade8cd8SKonstantin Porotchkin #define HPIPE_EXT_SELLV_RXSAMPL_MASK \ 990ade8cd8SKonstantin Porotchkin (0x1f << HPIPE_EXT_SELLV_RXSAMPL_OFFSET) 1000ade8cd8SKonstantin Porotchkin 1010ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_REG0 0x120 1020ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_IDLE_SYNC_OFFSET 12 1030ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_IDLE_SYNC_MASK \ 1040ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_PCIE_IDLE_SYNC_OFFSET) 1050ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_SEL_BITS_OFFSET 13 1060ade8cd8SKonstantin Porotchkin #define HPIPE_PCIE_SEL_BITS_MASK \ 1070ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_PCIE_SEL_BITS_OFFSET) 1080ade8cd8SKonstantin Porotchkin 1090ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_ALIGN_REG 0x124 1100ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_ALIGN_OFF_OFFSET 12 1110ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_ALIGN_OFF_MASK \ 1120ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_ALIGN_OFF_OFFSET) 1130ade8cd8SKonstantin Porotchkin 1140ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_REG 0x13C 1150ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_CLK100M_125M_OFFSET 4 1160ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_CLK100M_125M_MASK \ 1170ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_CLK100M_125M_OFFSET) 1180ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_ICP_FORCE_OFFSET 5 1190ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_ICP_FORCE_MASK \ 1200ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_ICP_FORCE_OFFSET) 1210ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_TXDCLK_2X_OFFSET 6 1220ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_TXDCLK_2X_MASK \ 1230ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_TXDCLK_2X_OFFSET) 1240ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_CLK500_EN_OFFSET 7 1250ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_CLK500_EN_MASK \ 1260ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_CLK500_EN_OFFSET) 1270ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_REFCLK_SEL_OFFSET 10 1280ade8cd8SKonstantin Porotchkin #define HPIPE_MISC_REFCLK_SEL_MASK \ 1290ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_MISC_REFCLK_SEL_OFFSET) 1300ade8cd8SKonstantin Porotchkin 1310ade8cd8SKonstantin Porotchkin #define HPIPE_SAMPLER_N_PROC_CALIB_CTRL_REG 0x16C 1320ade8cd8SKonstantin Porotchkin #define HPIPE_SMAPLER_OFFSET 12 1330ade8cd8SKonstantin Porotchkin #define HPIPE_SMAPLER_MASK (0x1 << HPIPE_SMAPLER_OFFSET) 1340ade8cd8SKonstantin Porotchkin 1350ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_CTR_DTL_REG 0x184 1360ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_CTR_DTL_FLOOP_EN_OFFSET 2 1370ade8cd8SKonstantin Porotchkin #define HPIPE_PWR_CTR_DTL_FLOOP_EN_MASK \ 1380ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_PWR_CTR_DTL_FLOOP_EN_OFFSET) 1390ade8cd8SKonstantin Porotchkin 1400ade8cd8SKonstantin Porotchkin #define HPIPE_FRAME_DET_CONTROL_REG 0x220 1410ade8cd8SKonstantin Porotchkin #define HPIPE_FRAME_DET_LOCK_LOST_TO_OFFSET 12 1420ade8cd8SKonstantin Porotchkin #define HPIPE_FRAME_DET_LOCK_LOST_TO_MASK \ 1430ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_FRAME_DET_LOCK_LOST_TO_OFFSET) 1440ade8cd8SKonstantin Porotchkin 1450ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_0_REG 0x268 1460ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_P2P_HOLD_OFFSET 15 1470ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_P2P_HOLD_MASK \ 1480ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_P2P_HOLD_OFFSET) 1490ade8cd8SKonstantin Porotchkin 1500ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_REG 0x26C 1510ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_G1_OFFSET 0 1520ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_G1_MASK \ 1530ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_CTRL_G1_OFFSET) 1540ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_GN1_OFFSET 1 1550ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_GN1_MASK \ 1560ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_CTRL_GN1_OFFSET) 1570ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_G0_OFFSET 2 1580ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_G0_MASK \ 1590ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_CTRL_G0_OFFSET) 1600ade8cd8SKonstantin Porotchkin 1610ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_4_REG 0x278 1620ade8cd8SKonstantin Porotchkin #define HPIPE_TRX_TRAIN_TIMER_OFFSET 0 1630ade8cd8SKonstantin Porotchkin #define HPIPE_TRX_TRAIN_TIMER_MASK \ 1640ade8cd8SKonstantin Porotchkin (0x3FF << HPIPE_TRX_TRAIN_TIMER_OFFSET) 1650ade8cd8SKonstantin Porotchkin 1660ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_5_REG 0x2A4 1670ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_SQ_EN_OFFSET 11 1680ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_SQ_EN_MASK \ 1690ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_START_SQ_EN_OFFSET) 1700ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_FRM_DET_EN_OFFSET 12 1710ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_FRM_DET_EN_MASK \ 1720ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_START_FRM_DET_EN_OFFSET) 1730ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_FRM_LOCK_EN_OFFSET 13 1740ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_START_FRM_LOCK_EN_MASK \ 1750ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_START_FRM_LOCK_EN_OFFSET) 1760ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_WAIT_TIME_EN_OFFSET 14 1770ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_WAIT_TIME_EN_MASK \ 1780ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_WAIT_TIME_EN_OFFSET) 1790ade8cd8SKonstantin Porotchkin 1800ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_REG 0x31C 1810ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CHK_INIT_OFFSET 4 1820ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CHK_INIT_MASK \ 1830ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_CHK_INIT_OFFSET) 1840ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_COE_FM_PIN_PCIE3_OFFSET 7 1850ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_COE_FM_PIN_PCIE3_MASK \ 1860ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_TRAIN_COE_FM_PIN_PCIE3_OFFSET) 1870ade8cd8SKonstantin Porotchkin 1880ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_CONTROL_REG 0x418 1890ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_RX_MAX_DFE_ADAPT_0_OFFSET 14 1900ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_RX_MAX_DFE_ADAPT_0_MASK \ 1910ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_CDR_RX_MAX_DFE_ADAPT_0_OFFSET) 1920ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_RX_MAX_DFE_ADAPT_1_OFFSET 12 1930ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_RX_MAX_DFE_ADAPT_1_MASK \ 1940ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_CDR_RX_MAX_DFE_ADAPT_1_OFFSET) 1950ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_MAX_DFE_ADAPT_0_OFFSET 9 1960ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_MAX_DFE_ADAPT_0_MASK \ 1970ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_CDR_MAX_DFE_ADAPT_0_OFFSET) 1980ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_MAX_DFE_ADAPT_1_OFFSET 6 1990ade8cd8SKonstantin Porotchkin #define HPIPE_CDR_MAX_DFE_ADAPT_1_MASK \ 2000ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_CDR_MAX_DFE_ADAPT_1_OFFSET) 2010ade8cd8SKonstantin Porotchkin 2020ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TRAIN_CTRL_11_REG 0x438 2030ade8cd8SKonstantin Porotchkin #define HPIPE_TX_STATUS_CHECK_MODE_OFFSET 6 2040ade8cd8SKonstantin Porotchkin #define HPIPE_TX_TX_STATUS_CHECK_MODE_MASK \ 2050ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_STATUS_CHECK_MODE_OFFSET) 2060ade8cd8SKonstantin Porotchkin #define HPIPE_TX_NUM_OF_PRESET_OFFSET 10 2070ade8cd8SKonstantin Porotchkin #define HPIPE_TX_NUM_OF_PRESET_MASK \ 2080ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_TX_NUM_OF_PRESET_OFFSET) 2090ade8cd8SKonstantin Porotchkin #define HPIPE_TX_SWEEP_PRESET_EN_OFFSET 15 2100ade8cd8SKonstantin Porotchkin #define HPIPE_TX_SWEEP_PRESET_EN_MASK \ 2110ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_TX_SWEEP_PRESET_EN_OFFSET) 2120ade8cd8SKonstantin Porotchkin #define HPIPE_G2_SETTINGS_4_REG 0x44C 2130ade8cd8SKonstantin Porotchkin #define HPIPE_G2_DFE_RES_OFFSET 8 2140ade8cd8SKonstantin Porotchkin #define HPIPE_G2_DFE_RES_MASK (0x3 << HPIPE_G2_DFE_RES_OFFSET) 2150ade8cd8SKonstantin Porotchkin 2160ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_3_REG 0x450 2170ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_CAP_SEL_OFFSET 0 2180ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_CAP_SEL_MASK \ 2190ade8cd8SKonstantin Porotchkin (0xf << HPIPE_G3_FFE_CAP_SEL_OFFSET) 2200ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_RES_SEL_OFFSET 4 2210ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_RES_SEL_MASK \ 2220ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_G3_FFE_RES_SEL_OFFSET) 2230ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_SETTING_FORCE_OFFSET 7 2240ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_SETTING_FORCE_MASK \ 2250ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_G3_FFE_SETTING_FORCE_OFFSET) 2260ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_DEG_RES_LEVEL_OFFSET 12 2270ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_DEG_RES_LEVEL_MASK \ 2280ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_G3_FFE_DEG_RES_LEVEL_OFFSET) 2290ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_LOAD_RES_LEVEL_OFFSET 14 2300ade8cd8SKonstantin Porotchkin #define HPIPE_G3_FFE_LOAD_RES_LEVEL_MASK \ 2310ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_G3_FFE_LOAD_RES_LEVEL_OFFSET) 2320ade8cd8SKonstantin Porotchkin 2330ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_4_REG 0x454 2340ade8cd8SKonstantin Porotchkin #define HPIPE_G3_DFE_RES_OFFSET 8 2350ade8cd8SKonstantin Porotchkin #define HPIPE_G3_DFE_RES_MASK (0x3 << HPIPE_G3_DFE_RES_OFFSET) 2360ade8cd8SKonstantin Porotchkin 2370ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_CONTROL_REG 0x470 2380ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_TX_MAX_DFE_ADAPT_OFFSET 14 2390ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_TX_MAX_DFE_ADAPT_MASK \ 2400ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_DFE_TX_MAX_DFE_ADAPT_OFFSET) 2410ade8cd8SKonstantin Porotchkin 2420ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_CTRL_28_REG 0x49C 2430ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_CTRL_28_PIPE4_OFFSET 7 2440ade8cd8SKonstantin Porotchkin #define HPIPE_DFE_CTRL_28_PIPE4_MASK \ 2450ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_DFE_CTRL_28_PIPE4_OFFSET) 2460ade8cd8SKonstantin Porotchkin 2470ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_5_REG 0x548 2480ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_5_G3_ICP_OFFSET 0 2490ade8cd8SKonstantin Porotchkin #define HPIPE_G3_SETTING_5_G3_ICP_MASK \ 2500ade8cd8SKonstantin Porotchkin (0xf << HPIPE_G3_SETTING_5_G3_ICP_OFFSET) 2510ade8cd8SKonstantin Porotchkin 2520ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_STATUS1_REG 0x60C 2530ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_STATUS1_PCLK_EN_OFFSET 0 2540ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_STATUS1_PCLK_EN_MASK \ 2550ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_STATUS1_PCLK_EN_OFFSET) 2560ade8cd8SKonstantin Porotchkin 2570ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG4_REG 0x620 2580ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG4_DFE_EN_SEL_OFFSET 3 2590ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG4_DFE_EN_SEL_MASK \ 2600ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_CFG4_DFE_EN_SEL_OFFSET) 2610ade8cd8SKonstantin Porotchkin 2620ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_EQU_CONFIG_0_REG 0x69C 2630ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_FS_OFFSET 0 2640ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_FS_MASK (0x3f << HPIPE_CFG_EQ_FS_OFFSET) 2650ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_LF_OFFSET 6 2660ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_LF_MASK (0x3f << HPIPE_CFG_EQ_LF_OFFSET) 2670ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PHY_RC_EP_OFFSET 12 2680ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PHY_RC_EP_MASK \ 2690ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CFG_PHY_RC_EP_OFFSET) 2700ade8cd8SKonstantin Porotchkin 2710ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_EQ_CFG1_REG 0x6a0 2720ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_UPDATE_POLARITY_OFFSET 12 2730ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_UPDATE_POLARITY_MASK \ 2740ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CFG_UPDATE_POLARITY_OFFSET) 2750ade8cd8SKonstantin Porotchkin 2760ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_EQ_CFG2_REG 0x6a4 2770ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_BUNDLE_DIS_OFFSET 14 2780ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_EQ_BUNDLE_DIS_MASK \ 2790ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CFG_EQ_BUNDLE_DIS_OFFSET) 2800ade8cd8SKonstantin Porotchkin 2810ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG0_REG 0x6a8 2820ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET0_OFFSET 0 2830ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET0_MASK \ 2840ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET0_OFFSET) 2850ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET1_OFFSET 6 2860ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET1_MASK \ 2870ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET1_OFFSET) 2880ade8cd8SKonstantin Porotchkin 2890ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG1_REG 0x6ac 2900ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET2_OFFSET 0 2910ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET2_MASK \ 2920ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET2_OFFSET) 2930ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET3_OFFSET 6 2940ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET3_MASK \ 2950ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET3_OFFSET) 2960ade8cd8SKonstantin Porotchkin 2970ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG2_REG 0x6b0 2980ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET4_OFFSET 0 2990ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET4_MASK \ 3000ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET4_OFFSET) 3010ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET5_OFFSET 6 3020ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET5_MASK \ 3030ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET5_OFFSET) 3040ade8cd8SKonstantin Porotchkin 3050ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG3_REG 0x6b4 3060ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET6_OFFSET 0 3070ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET6_MASK \ 3080ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET6_OFFSET) 3090ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET7_OFFSET 6 3100ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET7_MASK \ 3110ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET7_OFFSET) 3120ade8cd8SKonstantin Porotchkin 3130ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG4_REG 0x6b8 3140ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET8_OFFSET 0 3150ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET8_MASK \ 3160ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET8_OFFSET) 3170ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET9_OFFSET 6 3180ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET9_MASK \ 3190ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET9_OFFSET) 3200ade8cd8SKonstantin Porotchkin 3210ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG5_REG 0x6bc 3220ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET10_OFFSET 0 3230ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET10_MASK \ 3240ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET10_OFFSET) 3250ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET11_OFFSET 6 3260ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_CURSOR_PRESET11_MASK \ 3270ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_CURSOR_PRESET11_OFFSET) 3280ade8cd8SKonstantin Porotchkin 3290ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG6_REG 0x6c0 3300ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET0_OFFSET 0 3310ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET0_MASK \ 3320ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET0_OFFSET) 3330ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET0_OFFSET 6 3340ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET0_MASK \ 3350ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET0_OFFSET) 3360ade8cd8SKonstantin Porotchkin 3370ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG7_REG 0x6c4 3380ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET1_OFFSET 0 3390ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET1_MASK \ 3400ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET1_OFFSET) 3410ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET1_OFFSET 6 3420ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET1_MASK \ 3430ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET1_OFFSET) 3440ade8cd8SKonstantin Porotchkin 3450ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG8_REG 0x6c8 3460ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET2_OFFSET 0 3470ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET2_MASK \ 3480ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET2_OFFSET) 3490ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET2_OFFSET 6 3500ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET2_MASK \ 3510ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET2_OFFSET) 3520ade8cd8SKonstantin Porotchkin 3530ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG9_REG 0x6cc 3540ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET3_OFFSET 0 3550ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET3_MASK \ 3560ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET3_OFFSET) 3570ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET3_OFFSET 6 3580ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET3_MASK \ 3590ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET3_OFFSET) 3600ade8cd8SKonstantin Porotchkin 3610ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG10_REG 0x6d0 3620ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET4_OFFSET 0 3630ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET4_MASK \ 3640ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET4_OFFSET) 3650ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET4_OFFSET 6 3660ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET4_MASK \ 3670ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET4_OFFSET) 3680ade8cd8SKonstantin Porotchkin 3690ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG11_REG 0x6d4 3700ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET5_OFFSET 0 3710ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET5_MASK \ 3720ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET5_OFFSET) 3730ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET5_OFFSET 6 3740ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET5_MASK \ 3750ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET5_OFFSET) 3760ade8cd8SKonstantin Porotchkin 3770ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG12_REG 0x6d8 3780ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET6_OFFSET 0 3790ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET6_MASK \ 3800ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET6_OFFSET) 3810ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET6_OFFSET 6 3820ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET6_MASK \ 3830ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET6_OFFSET) 3840ade8cd8SKonstantin Porotchkin 3850ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG13_REG 0x6dc 3860ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET7_OFFSET 0 3870ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET7_MASK \ 3880ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET7_OFFSET) 3890ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET7_OFFSET 6 3900ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET7_MASK \ 3910ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET7_OFFSET) 3920ade8cd8SKonstantin Porotchkin 3930ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG14_REG 0x6e0 3940ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET8_OFFSET 0 3950ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET8_MASK \ 3960ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET8_OFFSET) 3970ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET8_OFFSET 6 3980ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET8_MASK \ 3990ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET8_OFFSET) 4000ade8cd8SKonstantin Porotchkin 4010ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG15_REG 0x6e4 4020ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET9_OFFSET 0 4030ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET9_MASK \ 4040ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET9_OFFSET) 4050ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET9_OFFSET 6 4060ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET9_MASK \ 4070ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET9_OFFSET) 4080ade8cd8SKonstantin Porotchkin 4090ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_PRESET_CFG16_REG 0x6e8 4100ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET10_OFFSET 0 4110ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_PRE_CURSOR_PRESET10_MASK \ 4120ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_PRE_CURSOR_PRESET10_OFFSET) 4130ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET10_OFFSET 6 4140ade8cd8SKonstantin Porotchkin #define HPIPE_CFG_POST_CURSOR_PRESET10_MASK \ 4150ade8cd8SKonstantin Porotchkin (0x3f << HPIPE_CFG_POST_CURSOR_PRESET10_OFFSET) 4160ade8cd8SKonstantin Porotchkin 4170ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_EQ_REMOTE_SETTING_REG 0x6f8 4180ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_DIRN_OVERRIDE_OFFSET 0 4190ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_DIRN_OVERRIDE_MASK \ 4200ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_CFG_FOM_DIRN_OVERRIDE_OFFSET) 4210ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_ONLY_MODE_OFFFSET 1 4220ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_ONLY_MODE_MASK \ 4230ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_LANE_CFG_FOM_ONLY_MODE_OFFFSET) 4240ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_PRESET_VECTOR_OFFSET 2 4250ade8cd8SKonstantin Porotchkin #define HPIPE_LANE_CFG_FOM_PRESET_VECTOR_MASK \ 4260ade8cd8SKonstantin Porotchkin (0xf << HPIPE_LANE_CFG_FOM_PRESET_VECTOR_OFFSET) 4270ade8cd8SKonstantin Porotchkin 4280ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_REG 0x704 4290ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_PIPE_RST_OFFSET 0 4300ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_PIPE_RST_MASK \ 4310ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_RST_CLK_CTRL_PIPE_RST_OFFSET) 4320ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_FIXED_PCLK_OFFSET 2 4330ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_FIXED_PCLK_MASK \ 4340ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_RST_CLK_CTRL_FIXED_PCLK_OFFSET) 4350ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_PIPE_WIDTH_OFFSET 3 4360ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_PIPE_WIDTH_MASK \ 4370ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_RST_CLK_CTRL_PIPE_WIDTH_OFFSET) 4380ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_CORE_FREQ_SEL_OFFSET 9 4390ade8cd8SKonstantin Porotchkin #define HPIPE_RST_CLK_CTRL_CORE_FREQ_SEL_MASK \ 4400ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_RST_CLK_CTRL_CORE_FREQ_SEL_OFFSET) 4410ade8cd8SKonstantin Porotchkin 4420ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_REG 0x70c 4430ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SEL_OFFSET 1 4440ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SEL_MASK \ 4450ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SEL_OFFSET) 4460ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SCALE_OFFSET 2 4470ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SCALE_MASK \ 4480ade8cd8SKonstantin Porotchkin (0x3 << HPIPE_CLK_SRC_LO_BUNDLE_PERIOD_SCALE_OFFSET) 4490ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_PLL_RDY_DL_OFFSET 5 4500ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_LO_PLL_RDY_DL_MASK \ 4510ade8cd8SKonstantin Porotchkin (0x7 << HPIPE_CLK_SRC_LO_PLL_RDY_DL_OFFSET) 4520ade8cd8SKonstantin Porotchkin 4530ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_REG 0x710 4540ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_STRT_OFFSET 0 4550ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_STRT_MASK \ 4560ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_HI_LANE_STRT_OFFSET) 4570ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_BREAK_OFFSET 1 4580ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_BREAK_MASK \ 4590ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_HI_LANE_BREAK_OFFSET) 4600ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_MASTER_OFFSET 2 4610ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_LANE_MASTER_MASK \ 4620ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_HI_LANE_MASTER_OFFSET) 4630ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_MODE_PIPE_OFFSET 7 4640ade8cd8SKonstantin Porotchkin #define HPIPE_CLK_SRC_HI_MODE_PIPE_MASK \ 4650ade8cd8SKonstantin Porotchkin (0x1 << HPIPE_CLK_SRC_HI_MODE_PIPE_OFFSET) 4660ade8cd8SKonstantin Porotchkin 4670ade8cd8SKonstantin Porotchkin #define HPIPE_GLOBAL_PM_CTRL 0x740 4680ade8cd8SKonstantin Porotchkin #define HPIPE_GLOBAL_PM_RXDLOZ_WAIT_OFFSET 0 4690ade8cd8SKonstantin Porotchkin #define HPIPE_GLOBAL_PM_RXDLOZ_WAIT_MASK \ 4700ade8cd8SKonstantin Porotchkin (0xFF << HPIPE_GLOBAL_PM_RXDLOZ_WAIT_OFFSET) 4710ade8cd8SKonstantin Porotchkin 472*c3cf06f1SAntonio Nino Diaz #endif /* COMPHY_H */ 473