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_V4_H_ 762306a36Sopenharmony_ci#define QCOM_PHY_QMP_PCS_V4_H_ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* Only for QMP V4 PHY - USB/PCIe PCS registers */ 1062306a36Sopenharmony_ci#define QPHY_V4_PCS_SW_RESET 0x000 1162306a36Sopenharmony_ci#define QPHY_V4_PCS_REVISION_ID0 0x004 1262306a36Sopenharmony_ci#define QPHY_V4_PCS_REVISION_ID1 0x008 1362306a36Sopenharmony_ci#define QPHY_V4_PCS_REVISION_ID2 0x00c 1462306a36Sopenharmony_ci#define QPHY_V4_PCS_REVISION_ID3 0x010 1562306a36Sopenharmony_ci#define QPHY_V4_PCS_PCS_STATUS1 0x014 1662306a36Sopenharmony_ci#define QPHY_V4_PCS_PCS_STATUS2 0x018 1762306a36Sopenharmony_ci#define QPHY_V4_PCS_PCS_STATUS3 0x01c 1862306a36Sopenharmony_ci#define QPHY_V4_PCS_PCS_STATUS4 0x020 1962306a36Sopenharmony_ci#define QPHY_V4_PCS_PCS_STATUS5 0x024 2062306a36Sopenharmony_ci#define QPHY_V4_PCS_PCS_STATUS6 0x028 2162306a36Sopenharmony_ci#define QPHY_V4_PCS_PCS_STATUS7 0x02c 2262306a36Sopenharmony_ci#define QPHY_V4_PCS_DEBUG_BUS_0_STATUS 0x030 2362306a36Sopenharmony_ci#define QPHY_V4_PCS_DEBUG_BUS_1_STATUS 0x034 2462306a36Sopenharmony_ci#define QPHY_V4_PCS_DEBUG_BUS_2_STATUS 0x038 2562306a36Sopenharmony_ci#define QPHY_V4_PCS_DEBUG_BUS_3_STATUS 0x03c 2662306a36Sopenharmony_ci#define QPHY_V4_PCS_POWER_DOWN_CONTROL 0x040 2762306a36Sopenharmony_ci#define QPHY_V4_PCS_START_CONTROL 0x044 2862306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_SW_CTRL1 0x048 2962306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_SW_CTRL2 0x04c 3062306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_SW_CTRL3 0x050 3162306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_SW_CTRL4 0x054 3262306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_SW_CTRL5 0x058 3362306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_SW_CTRL6 0x05c 3462306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_SW_CTRL7 0x060 3562306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_SW_CTRL8 0x064 3662306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_MX_CTRL1 0x068 3762306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_MX_CTRL2 0x06c 3862306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_MX_CTRL3 0x070 3962306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_MX_CTRL4 0x074 4062306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_MX_CTRL5 0x078 4162306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_MX_CTRL7 0x07c 4262306a36Sopenharmony_ci#define QPHY_V4_PCS_INSIG_MX_CTRL8 0x080 4362306a36Sopenharmony_ci#define QPHY_V4_PCS_OUTSIG_SW_CTRL1 0x084 4462306a36Sopenharmony_ci#define QPHY_V4_PCS_OUTSIG_MX_CTRL1 0x088 4562306a36Sopenharmony_ci#define QPHY_V4_PCS_CLAMP_ENABLE 0x08c 4662306a36Sopenharmony_ci#define QPHY_V4_PCS_POWER_STATE_CONFIG1 0x090 4762306a36Sopenharmony_ci#define QPHY_V4_PCS_POWER_STATE_CONFIG2 0x094 4862306a36Sopenharmony_ci#define QPHY_V4_PCS_FLL_CNTRL1 0x098 4962306a36Sopenharmony_ci#define QPHY_V4_PCS_FLL_CNTRL2 0x09c 5062306a36Sopenharmony_ci#define QPHY_V4_PCS_FLL_CNT_VAL_L 0x0a0 5162306a36Sopenharmony_ci#define QPHY_V4_PCS_FLL_CNT_VAL_H_TOL 0x0a4 5262306a36Sopenharmony_ci#define QPHY_V4_PCS_FLL_MAN_CODE 0x0a8 5362306a36Sopenharmony_ci#define QPHY_V4_PCS_TEST_CONTROL1 0x0ac 5462306a36Sopenharmony_ci#define QPHY_V4_PCS_TEST_CONTROL2 0x0b0 5562306a36Sopenharmony_ci#define QPHY_V4_PCS_TEST_CONTROL3 0x0b4 5662306a36Sopenharmony_ci#define QPHY_V4_PCS_TEST_CONTROL4 0x0b8 5762306a36Sopenharmony_ci#define QPHY_V4_PCS_TEST_CONTROL5 0x0bc 5862306a36Sopenharmony_ci#define QPHY_V4_PCS_TEST_CONTROL6 0x0c0 5962306a36Sopenharmony_ci#define QPHY_V4_PCS_LOCK_DETECT_CONFIG1 0x0c4 6062306a36Sopenharmony_ci#define QPHY_V4_PCS_LOCK_DETECT_CONFIG2 0x0c8 6162306a36Sopenharmony_ci#define QPHY_V4_PCS_LOCK_DETECT_CONFIG3 0x0cc 6262306a36Sopenharmony_ci#define QPHY_V4_PCS_LOCK_DETECT_CONFIG4 0x0d0 6362306a36Sopenharmony_ci#define QPHY_V4_PCS_LOCK_DETECT_CONFIG5 0x0d4 6462306a36Sopenharmony_ci#define QPHY_V4_PCS_LOCK_DETECT_CONFIG6 0x0d8 6562306a36Sopenharmony_ci#define QPHY_V4_PCS_REFGEN_REQ_CONFIG1 0x0dc 6662306a36Sopenharmony_ci#define QPHY_V4_PCS_REFGEN_REQ_CONFIG2 0x0e0 6762306a36Sopenharmony_ci#define QPHY_V4_PCS_REFGEN_REQ_CONFIG3 0x0e4 6862306a36Sopenharmony_ci#define QPHY_V4_PCS_BIST_CTRL 0x0e8 6962306a36Sopenharmony_ci#define QPHY_V4_PCS_PRBS_POLY0 0x0ec 7062306a36Sopenharmony_ci#define QPHY_V4_PCS_PRBS_POLY1 0x0f0 7162306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT0 0x0f4 7262306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT1 0x0f8 7362306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT2 0x0fc 7462306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT3 0x100 7562306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT4 0x104 7662306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT5 0x108 7762306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT6 0x10c 7862306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT7 0x110 7962306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT8 0x114 8062306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT9 0x118 8162306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT10 0x11c 8262306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT11 0x120 8362306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT12 0x124 8462306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT13 0x128 8562306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT14 0x12c 8662306a36Sopenharmony_ci#define QPHY_V4_PCS_FIXED_PAT15 0x130 8762306a36Sopenharmony_ci#define QPHY_V4_PCS_TXMGN_CONFIG 0x134 8862306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V0 0x138 8962306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V1 0x13c 9062306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V2 0x140 9162306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V3 0x144 9262306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V4 0x148 9362306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V0_RS 0x14c 9462306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V1_RS 0x150 9562306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V2_RS 0x154 9662306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V3_RS 0x158 9762306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXMGN_V4_RS 0x15c 9862306a36Sopenharmony_ci#define QPHY_V4_PCS_G3S2_TXMGN_MAIN 0x160 9962306a36Sopenharmony_ci#define QPHY_V4_PCS_G3S2_TXMGN_MAIN_RS 0x164 10062306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXDEEMPH_M6DB 0x168 10162306a36Sopenharmony_ci#define QPHY_V4_PCS_G12S1_TXDEEMPH_M3P5DB 0x16c 10262306a36Sopenharmony_ci#define QPHY_V4_PCS_G3S2_PRE_GAIN 0x170 10362306a36Sopenharmony_ci#define QPHY_V4_PCS_G3S2_POST_GAIN 0x174 10462306a36Sopenharmony_ci#define QPHY_V4_PCS_G3S2_PRE_POST_OFFSET 0x178 10562306a36Sopenharmony_ci#define QPHY_V4_PCS_G3S2_PRE_GAIN_RS 0x17c 10662306a36Sopenharmony_ci#define QPHY_V4_PCS_G3S2_POST_GAIN_RS 0x180 10762306a36Sopenharmony_ci#define QPHY_V4_PCS_G3S2_PRE_POST_OFFSET_RS 0x184 10862306a36Sopenharmony_ci#define QPHY_V4_PCS_RX_SIGDET_LVL 0x188 10962306a36Sopenharmony_ci#define QPHY_V4_PCS_RX_SIGDET_DTCT_CNTRL 0x18c 11062306a36Sopenharmony_ci#define QPHY_V4_PCS_RCVR_DTCT_DLY_P1U2_L 0x190 11162306a36Sopenharmony_ci#define QPHY_V4_PCS_RCVR_DTCT_DLY_P1U2_H 0x194 11262306a36Sopenharmony_ci#define QPHY_V4_PCS_RATE_SLEW_CNTRL1 0x198 11362306a36Sopenharmony_ci#define QPHY_V4_PCS_RATE_SLEW_CNTRL2 0x19c 11462306a36Sopenharmony_ci#define QPHY_V4_PCS_PWRUP_RESET_DLY_TIME_AUXCLK 0x1a0 11562306a36Sopenharmony_ci#define QPHY_V4_PCS_P2U3_WAKEUP_DLY_TIME_AUXCLK_L 0x1a4 11662306a36Sopenharmony_ci#define QPHY_V4_PCS_P2U3_WAKEUP_DLY_TIME_AUXCLK_H 0x1a8 11762306a36Sopenharmony_ci#define QPHY_V4_PCS_TSYNC_RSYNC_TIME 0x1ac 11862306a36Sopenharmony_ci#define QPHY_V4_PCS_CDR_RESET_TIME 0x1b0 11962306a36Sopenharmony_ci#define QPHY_V4_PCS_TSYNC_DLY_TIME 0x1b4 12062306a36Sopenharmony_ci#define QPHY_V4_PCS_ELECIDLE_DLY_SEL 0x1b8 12162306a36Sopenharmony_ci#define QPHY_V4_PCS_CMN_ACK_OUT_SEL 0x1bc 12262306a36Sopenharmony_ci#define QPHY_V4_PCS_ALIGN_DETECT_CONFIG1 0x1c0 12362306a36Sopenharmony_ci#define QPHY_V4_PCS_ALIGN_DETECT_CONFIG2 0x1c4 12462306a36Sopenharmony_ci#define QPHY_V4_PCS_ALIGN_DETECT_CONFIG3 0x1c8 12562306a36Sopenharmony_ci#define QPHY_V4_PCS_ALIGN_DETECT_CONFIG4 0x1cc 12662306a36Sopenharmony_ci#define QPHY_V4_PCS_PCS_TX_RX_CONFIG 0x1d0 12762306a36Sopenharmony_ci#define QPHY_V4_PCS_RX_IDLE_DTCT_CNTRL 0x1d4 12862306a36Sopenharmony_ci#define QPHY_V4_PCS_RX_DCC_CAL_CONFIG 0x1d8 12962306a36Sopenharmony_ci#define QPHY_V4_PCS_EQ_CONFIG1 0x1dc 13062306a36Sopenharmony_ci#define QPHY_V4_PCS_EQ_CONFIG2 0x1e0 13162306a36Sopenharmony_ci#define QPHY_V4_PCS_EQ_CONFIG3 0x1e4 13262306a36Sopenharmony_ci#define QPHY_V4_PCS_EQ_CONFIG4 0x1e8 13362306a36Sopenharmony_ci#define QPHY_V4_PCS_EQ_CONFIG5 0x1ec 13462306a36Sopenharmony_ci 13562306a36Sopenharmony_ci#endif 136