phy-qcom-qmp-pcs-pcie-v4.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2017, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef QCOM_PHY_QMP_PCS_PCIE_V4_H_
  6. #define QCOM_PHY_QMP_PCS_PCIE_V4_H_
  7. /* Only for QMP V4 PHY - PCS_PCIE registers (same as PCS_MISC?) */
  8. #define QPHY_V4_PCS_PCIE_INT_AUX_CLK_STATUS 0x00
  9. #define QPHY_V4_PCS_PCIE_OSC_DTCT_STATUS 0x04
  10. #define QPHY_V4_PCS_PCIE_POWER_STATE_CONFIG1 0x08
  11. #define QPHY_V4_PCS_PCIE_POWER_STATE_CONFIG2 0x0c
  12. #define QPHY_V4_PCS_PCIE_POWER_STATE_CONFIG3 0x10
  13. #define QPHY_V4_PCS_PCIE_POWER_STATE_CONFIG4 0x14
  14. #define QPHY_V4_PCS_PCIE_PCS_TX_RX_CONFIG 0x18
  15. #define QPHY_V4_PCS_PCIE_ENDPOINT_REFCLK_DRIVE 0x1c
  16. #define QPHY_V4_PCS_PCIE_ENDPOINT_REFCLK_CNTRL 0x20
  17. #define QPHY_V4_PCS_PCIE_EPCLK_PRE_PLL_LOCK_DLY_AUXCLK 0x24
  18. #define QPHY_V4_PCS_PCIE_EPCLK_DLY_COUNT_VAL_L 0x28
  19. #define QPHY_V4_PCS_PCIE_EPCLK_DLY_COUNT_VAL_H 0x2c
  20. #define QPHY_V4_PCS_PCIE_RX_IDLE_DTCT_CNTRL1 0x30
  21. #define QPHY_V4_PCS_PCIE_RX_IDLE_DTCT_CNTRL2 0x34
  22. #define QPHY_V4_PCS_PCIE_SIGDET_CNTRL 0x38
  23. #define QPHY_V4_PCS_PCIE_SIGDET_LOW_2_IDLE_TIME 0x3c
  24. #define QPHY_V4_PCS_PCIE_L1P1_WAKEUP_DLY_TIME_AUXCLK_L 0x40
  25. #define QPHY_V4_PCS_PCIE_L1P1_WAKEUP_DLY_TIME_AUXCLK_H 0x44
  26. #define QPHY_V4_PCS_PCIE_L1P2_WAKEUP_DLY_TIME_AUXCLK_L 0x48
  27. #define QPHY_V4_PCS_PCIE_L1P2_WAKEUP_DLY_TIME_AUXCLK_H 0x4c
  28. #define QPHY_V4_PCS_PCIE_INT_AUX_CLK_CONFIG1 0x50
  29. #define QPHY_V4_PCS_PCIE_INT_AUX_CLK_CONFIG2 0x54
  30. #define QPHY_V4_PCS_PCIE_OSC_DTCT_CONFIG1 0x58
  31. #define QPHY_V4_PCS_PCIE_OSC_DTCT_CONFIG2 0x5c
  32. #define QPHY_V4_PCS_PCIE_OSC_DTCT_CONFIG3 0x60
  33. #define QPHY_V4_PCS_PCIE_OSC_DTCT_CONFIG4 0x64
  34. #define QPHY_V4_PCS_PCIE_OSC_DTCT_CONFIG5 0x68
  35. #define QPHY_V4_PCS_PCIE_OSC_DTCT_CONFIG6 0x6c
  36. #define QPHY_V4_PCS_PCIE_OSC_DTCT_CONFIG7 0x70
  37. #define QPHY_V4_PCS_PCIE_OSC_DTCT_MODE2_CONFIG1 0x74
  38. #define QPHY_V4_PCS_PCIE_OSC_DTCT_MODE2_CONFIG2 0x78
  39. #define QPHY_V4_PCS_PCIE_OSC_DTCT_MODE2_CONFIG3 0x7c
  40. #define QPHY_V4_PCS_PCIE_OSC_DTCT_MODE2_CONFIG4 0x80
  41. #define QPHY_V4_PCS_PCIE_OSC_DTCT_MODE2_CONFIG5 0x84
  42. #define QPHY_V4_PCS_PCIE_OSC_DTCT_MODE2_CONFIG6 0x88
  43. #define QPHY_V4_PCS_PCIE_OSC_DTCT_MODE2_CONFIG7 0x8c
  44. #define QPHY_V4_PCS_PCIE_OSC_DTCT_ACTIONS 0x90
  45. #define QPHY_V4_PCS_PCIE_LOCAL_FS 0x94
  46. #define QPHY_V4_PCS_PCIE_LOCAL_LF 0x98
  47. #define QPHY_V4_PCS_PCIE_LOCAL_FS_RS 0x9c
  48. #define QPHY_V4_PCS_PCIE_EQ_CONFIG1 0xa0
  49. #define QPHY_V4_PCS_PCIE_EQ_CONFIG2 0xa4
  50. #define QPHY_V4_PCS_PCIE_PRESET_P0_P1_PRE 0xa8
  51. #define QPHY_V4_PCS_PCIE_PRESET_P2_P3_PRE 0xac
  52. #define QPHY_V4_PCS_PCIE_PRESET_P4_P5_PRE 0xb0
  53. #define QPHY_V4_PCS_PCIE_PRESET_P6_P7_PRE 0xb4
  54. #define QPHY_V4_PCS_PCIE_PRESET_P8_P9_PRE 0xb8
  55. #define QPHY_V4_PCS_PCIE_PRESET_P10_PRE 0xbc
  56. #define QPHY_V4_PCS_PCIE_PRESET_P1_P3_PRE_RS 0xc0
  57. #define QPHY_V4_PCS_PCIE_PRESET_P4_P5_PRE_RS 0xc4
  58. #define QPHY_V4_PCS_PCIE_PRESET_P6_P9_PRE_RS 0xc8
  59. #define QPHY_V4_PCS_PCIE_PRESET_P0_P1_POST 0xcc
  60. #define QPHY_V4_PCS_PCIE_PRESET_P2_P3_POST 0xd0
  61. #define QPHY_V4_PCS_PCIE_PRESET_P4_P5_POST 0xd4
  62. #define QPHY_V4_PCS_PCIE_PRESET_P6_P7_POST 0xd8
  63. #define QPHY_V4_PCS_PCIE_PRESET_P8_P9_POST 0xdc
  64. #define QPHY_V4_PCS_PCIE_PRESET_P10_POST 0xe0
  65. #define QPHY_V4_PCS_PCIE_PRESET_P1_P3_POST_RS 0xe4
  66. #define QPHY_V4_PCS_PCIE_PRESET_P4_P5_POST_RS 0xe8
  67. #define QPHY_V4_PCS_PCIE_PRESET_P6_P9_POST_RS 0xec
  68. #define QPHY_V4_PCS_PCIE_RXEQEVAL_TIME 0xf0
  69. #endif