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_V2_H_
762306a36Sopenharmony_ci#define QCOM_PHY_QMP_PCS_V2_H_
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/* Only for QMP V2 PHY - PCS registers */
1062306a36Sopenharmony_ci#define QPHY_V2_PCS_SW_RESET				0x000
1162306a36Sopenharmony_ci#define QPHY_V2_PCS_POWER_DOWN_CONTROL			0x004
1262306a36Sopenharmony_ci#define QPHY_V2_PCS_START_CONTROL			0x008
1362306a36Sopenharmony_ci#define QPHY_V2_PCS_TXDEEMPH_M6DB_V0			0x024
1462306a36Sopenharmony_ci#define QPHY_V2_PCS_TXDEEMPH_M3P5DB_V0			0x028
1562306a36Sopenharmony_ci#define QPHY_V2_PCS_ENDPOINT_REFCLK_DRIVE		0x054
1662306a36Sopenharmony_ci#define QPHY_V2_PCS_RX_IDLE_DTCT_CNTRL			0x058
1762306a36Sopenharmony_ci#define QPHY_V2_PCS_POWER_STATE_CONFIG1			0x060
1862306a36Sopenharmony_ci#define QPHY_V2_PCS_POWER_STATE_CONFIG2			0x064
1962306a36Sopenharmony_ci#define QPHY_V2_PCS_POWER_STATE_CONFIG4			0x06c
2062306a36Sopenharmony_ci#define QPHY_V2_PCS_LOCK_DETECT_CONFIG1			0x080
2162306a36Sopenharmony_ci#define QPHY_V2_PCS_LOCK_DETECT_CONFIG2			0x084
2262306a36Sopenharmony_ci#define QPHY_V2_PCS_LOCK_DETECT_CONFIG3			0x088
2362306a36Sopenharmony_ci#define QPHY_V2_PCS_PWRUP_RESET_DLY_TIME_AUXCLK		0x0a0
2462306a36Sopenharmony_ci#define QPHY_V2_PCS_LP_WAKEUP_DLY_TIME_AUXCLK		0x0a4
2562306a36Sopenharmony_ci#define QPHY_V2_PCS_PLL_LOCK_CHK_DLY_TIME		0x0a8
2662306a36Sopenharmony_ci#define QPHY_V2_PCS_FLL_CNTRL1				0x0c0
2762306a36Sopenharmony_ci#define QPHY_V2_PCS_FLL_CNTRL2				0x0c4
2862306a36Sopenharmony_ci#define QPHY_V2_PCS_FLL_CNT_VAL_L			0x0c8
2962306a36Sopenharmony_ci#define QPHY_V2_PCS_FLL_CNT_VAL_H_TOL			0x0cc
3062306a36Sopenharmony_ci#define QPHY_V2_PCS_FLL_MAN_CODE			0x0d0
3162306a36Sopenharmony_ci#define QPHY_V2_PCS_AUTONOMOUS_MODE_CTRL		0x0d4
3262306a36Sopenharmony_ci#define QPHY_V2_PCS_LFPS_RXTERM_IRQ_CLEAR		0x0d8
3362306a36Sopenharmony_ci#define QPHY_V2_PCS_LFPS_RXTERM_IRQ_STATUS		0x178
3462306a36Sopenharmony_ci#define QPHY_V2_PCS_USB_PCS_STATUS			0x17c /* USB */
3562306a36Sopenharmony_ci#define QPHY_V2_PCS_PLL_LOCK_CHK_DLY_TIME_AUXCLK_LSB	0x1a8
3662306a36Sopenharmony_ci#define QPHY_V2_PCS_OSC_DTCT_ACTIONS			0x1ac
3762306a36Sopenharmony_ci#define QPHY_V2_PCS_RX_SIGDET_LVL			0x1d8
3862306a36Sopenharmony_ci#define QPHY_V2_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_LSB	0x1dc
3962306a36Sopenharmony_ci#define QPHY_V2_PCS_L1SS_WAKEUP_DLY_TIME_AUXCLK_MSB	0x1e0
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci#define QPHY_V2_PCS_PCI_PCS_STATUS			0x174 /* PCI */
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ci#endif
44