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_PCS_V3_H_ 762306a36Sopenharmony_ci#define QCOM_PHY_QMP_PCS_V3_H_ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* Only for QMP V3 PHY - PCS registers */ 1062306a36Sopenharmony_ci#define QPHY_V3_PCS_SW_RESET 0x000 1162306a36Sopenharmony_ci#define QPHY_V3_PCS_POWER_DOWN_CONTROL 0x004 1262306a36Sopenharmony_ci#define QPHY_V3_PCS_START_CONTROL 0x008 1362306a36Sopenharmony_ci#define QPHY_V3_PCS_TXMGN_V0 0x00c 1462306a36Sopenharmony_ci#define QPHY_V3_PCS_TXMGN_V1 0x010 1562306a36Sopenharmony_ci#define QPHY_V3_PCS_TXMGN_V2 0x014 1662306a36Sopenharmony_ci#define QPHY_V3_PCS_TXMGN_V3 0x018 1762306a36Sopenharmony_ci#define QPHY_V3_PCS_TXMGN_V4 0x01c 1862306a36Sopenharmony_ci#define QPHY_V3_PCS_TXMGN_LS 0x020 1962306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M6DB_V0 0x024 2062306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V0 0x028 2162306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M6DB_V1 0x02c 2262306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V1 0x030 2362306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M6DB_V2 0x034 2462306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V2 0x038 2562306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M6DB_V3 0x03c 2662306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V3 0x040 2762306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M6DB_V4 0x044 2862306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M3P5DB_V4 0x048 2962306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M6DB_LS 0x04c 3062306a36Sopenharmony_ci#define QPHY_V3_PCS_TXDEEMPH_M3P5DB_LS 0x050 3162306a36Sopenharmony_ci#define QPHY_V3_PCS_ENDPOINT_REFCLK_DRIVE 0x054 3262306a36Sopenharmony_ci#define QPHY_V3_PCS_RX_IDLE_DTCT_CNTRL 0x058 3362306a36Sopenharmony_ci#define QPHY_V3_PCS_RATE_SLEW_CNTRL 0x05c 3462306a36Sopenharmony_ci#define QPHY_V3_PCS_POWER_STATE_CONFIG1 0x060 3562306a36Sopenharmony_ci#define QPHY_V3_PCS_POWER_STATE_CONFIG2 0x064 3662306a36Sopenharmony_ci#define QPHY_V3_PCS_POWER_STATE_CONFIG3 0x068 3762306a36Sopenharmony_ci#define QPHY_V3_PCS_POWER_STATE_CONFIG4 0x06c 3862306a36Sopenharmony_ci#define QPHY_V3_PCS_RCVR_DTCT_DLY_P1U2_L 0x070 3962306a36Sopenharmony_ci#define QPHY_V3_PCS_RCVR_DTCT_DLY_P1U2_H 0x074 4062306a36Sopenharmony_ci#define QPHY_V3_PCS_RCVR_DTCT_DLY_U3_L 0x078 4162306a36Sopenharmony_ci#define QPHY_V3_PCS_RCVR_DTCT_DLY_U3_H 0x07c 4262306a36Sopenharmony_ci#define QPHY_V3_PCS_LOCK_DETECT_CONFIG1 0x080 4362306a36Sopenharmony_ci#define QPHY_V3_PCS_LOCK_DETECT_CONFIG2 0x084 4462306a36Sopenharmony_ci#define QPHY_V3_PCS_LOCK_DETECT_CONFIG3 0x088 4562306a36Sopenharmony_ci#define QPHY_V3_PCS_TSYNC_RSYNC_TIME 0x08c 4662306a36Sopenharmony_ci#define QPHY_V3_PCS_SIGDET_LOW_2_IDLE_TIME 0x090 4762306a36Sopenharmony_ci#define QPHY_V3_PCS_BEACON_2_IDLE_TIME_L 0x094 4862306a36Sopenharmony_ci#define QPHY_V3_PCS_BEACON_2_IDLE_TIME_H 0x098 4962306a36Sopenharmony_ci#define QPHY_V3_PCS_PWRUP_RESET_DLY_TIME_SYSCLK 0x09c 5062306a36Sopenharmony_ci#define QPHY_V3_PCS_PWRUP_RESET_DLY_TIME_AUXCLK 0x0a0 5162306a36Sopenharmony_ci#define QPHY_V3_PCS_LP_WAKEUP_DLY_TIME_AUXCLK 0x0a4 5262306a36Sopenharmony_ci#define QPHY_V3_PCS_PLL_LOCK_CHK_DLY_TIME 0x0a8 5362306a36Sopenharmony_ci#define QPHY_V3_PCS_LFPS_DET_HIGH_COUNT_VAL 0x0ac 5462306a36Sopenharmony_ci#define QPHY_V3_PCS_LFPS_TX_ECSTART_EQTLOCK 0x0b0 5562306a36Sopenharmony_ci#define QPHY_V3_PCS_LFPS_TX_END_CNT_P2U3_START 0x0b4 5662306a36Sopenharmony_ci#define QPHY_V3_PCS_RXEQTRAINING_WAIT_TIME 0x0b8 5762306a36Sopenharmony_ci#define QPHY_V3_PCS_RXEQTRAINING_RUN_TIME 0x0bc 5862306a36Sopenharmony_ci#define QPHY_V3_PCS_TXONESZEROS_RUN_LENGTH 0x0c0 5962306a36Sopenharmony_ci#define QPHY_V3_PCS_FLL_CNTRL1 0x0c4 6062306a36Sopenharmony_ci#define QPHY_V3_PCS_FLL_CNTRL2 0x0c8 6162306a36Sopenharmony_ci#define QPHY_V3_PCS_FLL_CNT_VAL_L 0x0cc 6262306a36Sopenharmony_ci#define QPHY_V3_PCS_FLL_CNT_VAL_H_TOL 0x0d0 6362306a36Sopenharmony_ci#define QPHY_V3_PCS_FLL_MAN_CODE 0x0d4 6462306a36Sopenharmony_ci#define QPHY_V3_PCS_AUTONOMOUS_MODE_CTRL 0x0d8 6562306a36Sopenharmony_ci#define QPHY_V3_PCS_LFPS_RXTERM_IRQ_CLEAR 0x0dc 6662306a36Sopenharmony_ci#define QPHY_V3_PCS_ARCVR_DTCT_EN_PERIOD 0x0e0 6762306a36Sopenharmony_ci#define QPHY_V3_PCS_ARCVR_DTCT_CM_DLY 0x0e4 6862306a36Sopenharmony_ci#define QPHY_V3_PCS_ALFPS_DEGLITCH_VAL 0x0e8 6962306a36Sopenharmony_ci#define QPHY_V3_PCS_INSIG_SW_CTRL1 0x0ec 7062306a36Sopenharmony_ci#define QPHY_V3_PCS_INSIG_SW_CTRL2 0x0f0 7162306a36Sopenharmony_ci#define QPHY_V3_PCS_INSIG_SW_CTRL3 0x0f4 7262306a36Sopenharmony_ci#define QPHY_V3_PCS_INSIG_MX_CTRL1 0x0f8 7362306a36Sopenharmony_ci#define QPHY_V3_PCS_INSIG_MX_CTRL2 0x0fc 7462306a36Sopenharmony_ci#define QPHY_V3_PCS_INSIG_MX_CTRL3 0x100 7562306a36Sopenharmony_ci#define QPHY_V3_PCS_OUTSIG_SW_CTRL1 0x104 7662306a36Sopenharmony_ci#define QPHY_V3_PCS_OUTSIG_MX_CTRL1 0x108 7762306a36Sopenharmony_ci#define QPHY_V3_PCS_CLK_DEBUG_BYPASS_CTRL 0x10c 7862306a36Sopenharmony_ci#define QPHY_V3_PCS_TEST_CONTROL 0x110 7962306a36Sopenharmony_ci#define QPHY_V3_PCS_TEST_CONTROL2 0x114 8062306a36Sopenharmony_ci#define QPHY_V3_PCS_TEST_CONTROL3 0x118 8162306a36Sopenharmony_ci#define QPHY_V3_PCS_TEST_CONTROL4 0x11c 8262306a36Sopenharmony_ci#define QPHY_V3_PCS_TEST_CONTROL5 0x120 8362306a36Sopenharmony_ci#define QPHY_V3_PCS_TEST_CONTROL6 0x124 8462306a36Sopenharmony_ci#define QPHY_V3_PCS_TEST_CONTROL7 0x128 8562306a36Sopenharmony_ci#define QPHY_V3_PCS_COM_RESET_CONTROL 0x12c 8662306a36Sopenharmony_ci#define QPHY_V3_PCS_BIST_CTRL 0x130 8762306a36Sopenharmony_ci#define QPHY_V3_PCS_PRBS_POLY0 0x134 8862306a36Sopenharmony_ci#define QPHY_V3_PCS_PRBS_POLY1 0x138 8962306a36Sopenharmony_ci#define QPHY_V3_PCS_PRBS_SEED0 0x13c 9062306a36Sopenharmony_ci#define QPHY_V3_PCS_PRBS_SEED1 0x140 9162306a36Sopenharmony_ci#define QPHY_V3_PCS_FIXED_PAT_CTRL 0x144 9262306a36Sopenharmony_ci#define QPHY_V3_PCS_FIXED_PAT0 0x148 9362306a36Sopenharmony_ci#define QPHY_V3_PCS_FIXED_PAT1 0x14c 9462306a36Sopenharmony_ci#define QPHY_V3_PCS_FIXED_PAT2 0x150 9562306a36Sopenharmony_ci#define QPHY_V3_PCS_FIXED_PAT3 0x154 9662306a36Sopenharmony_ci#define QPHY_V3_PCS_COM_CLK_SWITCH_CTRL 0x158 9762306a36Sopenharmony_ci#define QPHY_V3_PCS_ELECIDLE_DLY_SEL 0x15c 9862306a36Sopenharmony_ci#define QPHY_V3_PCS_SPARE1 0x160 9962306a36Sopenharmony_ci#define QPHY_V3_PCS_BIST_CHK_ERR_CNT_L_STATUS 0x164 10062306a36Sopenharmony_ci#define QPHY_V3_PCS_BIST_CHK_ERR_CNT_H_STATUS 0x168 10162306a36Sopenharmony_ci#define QPHY_V3_PCS_BIST_CHK_STATUS 0x16c 10262306a36Sopenharmony_ci#define QPHY_V3_PCS_LFPS_RXTERM_IRQ_SOURCE_STATUS 0x170 10362306a36Sopenharmony_ci#define QPHY_V3_PCS_PCS_STATUS 0x174 10462306a36Sopenharmony_ci#define QPHY_V3_PCS_PCS_STATUS2 0x178 10562306a36Sopenharmony_ci#define QPHY_V3_PCS_PCS_STATUS3 0x17c 10662306a36Sopenharmony_ci#define QPHY_V3_PCS_COM_RESET_STATUS 0x180 10762306a36Sopenharmony_ci#define QPHY_V3_PCS_OSC_DTCT_STATUS 0x184 10862306a36Sopenharmony_ci#define QPHY_V3_PCS_REVISION_ID0 0x188 10962306a36Sopenharmony_ci#define QPHY_V3_PCS_REVISION_ID1 0x18c 11062306a36Sopenharmony_ci#define QPHY_V3_PCS_REVISION_ID2 0x190 11162306a36Sopenharmony_ci#define QPHY_V3_PCS_REVISION_ID3 0x194 11262306a36Sopenharmony_ci#define QPHY_V3_PCS_DEBUG_BUS_0_STATUS 0x198 11362306a36Sopenharmony_ci#define QPHY_V3_PCS_DEBUG_BUS_1_STATUS 0x19c 11462306a36Sopenharmony_ci#define QPHY_V3_PCS_DEBUG_BUS_2_STATUS 0x1a0 11562306a36Sopenharmony_ci#define QPHY_V3_PCS_DEBUG_BUS_3_STATUS 0x1a4 11662306a36Sopenharmony_ci#define QPHY_V3_PCS_LP_WAKEUP_DLY_TIME_AUXCLK_MSB 0x1a8 11762306a36Sopenharmony_ci#define QPHY_V3_PCS_OSC_DTCT_ACTIONS 0x1ac 11862306a36Sopenharmony_ci#define QPHY_V3_PCS_SIGDET_CNTRL 0x1b0 11962306a36Sopenharmony_ci#define QPHY_V3_PCS_IDAC_CAL_CNTRL 0x1b4 12062306a36Sopenharmony_ci#define QPHY_V3_PCS_CMN_ACK_OUT_SEL 0x1b8 12162306a36Sopenharmony_ci#define QPHY_V3_PCS_PLL_LOCK_CHK_DLY_TIME_SYSCLK 0x1bc 12262306a36Sopenharmony_ci#define QPHY_V3_PCS_AUTONOMOUS_MODE_STATUS 0x1c0 12362306a36Sopenharmony_ci#define QPHY_V3_PCS_ENDPOINT_REFCLK_CNTRL 0x1c4 12462306a36Sopenharmony_ci#define QPHY_V3_PCS_EPCLK_PRE_PLL_LOCK_DLY_SYSCLK 0x1c8 12562306a36Sopenharmony_ci#define QPHY_V3_PCS_EPCLK_PRE_PLL_LOCK_DLY_AUXCLK 0x1cc 12662306a36Sopenharmony_ci#define QPHY_V3_PCS_EPCLK_DLY_COUNT_VAL_L 0x1d0 12762306a36Sopenharmony_ci#define QPHY_V3_PCS_EPCLK_DLY_COUNT_VAL_H 0x1d4 12862306a36Sopenharmony_ci#define QPHY_V3_PCS_RX_SIGDET_LVL 0x1d8 12962306a36Sopenharmony_ci#define QPHY_V3_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_LSB 0x1dc 13062306a36Sopenharmony_ci#define QPHY_V3_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_MSB 0x1e0 13162306a36Sopenharmony_ci#define QPHY_V3_PCS_AUTONOMOUS_MODE_CTRL2 0x1e4 13262306a36Sopenharmony_ci#define QPHY_V3_PCS_RXTERMINATION_DLY_SEL 0x1e8 13362306a36Sopenharmony_ci#define QPHY_V3_PCS_LFPS_PER_TIMER_VAL 0x1ec 13462306a36Sopenharmony_ci#define QPHY_V3_PCS_SIGDET_STARTUP_TIMER_VAL 0x1f0 13562306a36Sopenharmony_ci#define QPHY_V3_PCS_LOCK_DETECT_CONFIG4 0x1f4 13662306a36Sopenharmony_ci#define QPHY_V3_PCS_RX_SIGDET_DTCT_CNTRL 0x1f8 13762306a36Sopenharmony_ci#define QPHY_V3_PCS_PCS_STATUS4 0x1fc 13862306a36Sopenharmony_ci#define QPHY_V3_PCS_PCS_STATUS4_CLEAR 0x200 13962306a36Sopenharmony_ci#define QPHY_V3_PCS_DEC_ERROR_COUNT_STATUS 0x204 14062306a36Sopenharmony_ci#define QPHY_V3_PCS_COMMA_POS_STATUS 0x208 14162306a36Sopenharmony_ci#define QPHY_V3_PCS_REFGEN_REQ_CONFIG1 0x20c 14262306a36Sopenharmony_ci#define QPHY_V3_PCS_REFGEN_REQ_CONFIG2 0x210 14362306a36Sopenharmony_ci#define QPHY_V3_PCS_REFGEN_REQ_CONFIG3 0x214 14462306a36Sopenharmony_ci 14562306a36Sopenharmony_ci#endif 146