phy-qcom-qmp.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2017, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef QCOM_PHY_QMP_H_
  6. #define QCOM_PHY_QMP_H_
  7. #include "phy-qcom-qmp-qserdes-com.h"
  8. #include "phy-qcom-qmp-qserdes-txrx.h"
  9. #include "phy-qcom-qmp-qserdes-com-v2.h"
  10. #include "phy-qcom-qmp-qserdes-txrx-v2.h"
  11. #include "phy-qcom-qmp-qserdes-com-v3.h"
  12. #include "phy-qcom-qmp-qserdes-txrx-v3.h"
  13. #include "phy-qcom-qmp-qserdes-com-v4.h"
  14. #include "phy-qcom-qmp-qserdes-txrx-v4.h"
  15. #include "phy-qcom-qmp-qserdes-txrx-v4_20.h"
  16. #include "phy-qcom-qmp-qserdes-com-v5.h"
  17. #include "phy-qcom-qmp-qserdes-txrx-v5.h"
  18. #include "phy-qcom-qmp-qserdes-txrx-v5_20.h"
  19. #include "phy-qcom-qmp-qserdes-txrx-v5_5nm.h"
  20. #include "phy-qcom-qmp-qserdes-com-v6.h"
  21. #include "phy-qcom-qmp-qserdes-txrx-v6.h"
  22. #include "phy-qcom-qmp-qserdes-txrx-v6_20.h"
  23. #include "phy-qcom-qmp-qserdes-txrx-v6_n4.h"
  24. #include "phy-qcom-qmp-qserdes-ln-shrd-v5.h"
  25. #include "phy-qcom-qmp-qserdes-ln-shrd-v6.h"
  26. #include "phy-qcom-qmp-qserdes-com-v7.h"
  27. #include "phy-qcom-qmp-qserdes-txrx-v7.h"
  28. #include "phy-qcom-qmp-qserdes-com-v8.h"
  29. #include "phy-qcom-qmp-usb43-qserdes-com-v8.h"
  30. #include "phy-qcom-qmp-qserdes-txrx-v8.h"
  31. #include "phy-qcom-qmp-qserdes-lalb-v8.h"
  32. #include "phy-qcom-qmp-qserdes-pll.h"
  33. #include "phy-qcom-qmp-pcs-v2.h"
  34. #include "phy-qcom-qmp-pcs-v3.h"
  35. #include "phy-qcom-qmp-pcs-v4.h"
  36. #include "phy-qcom-qmp-pcs-v4_20.h"
  37. #include "phy-qcom-qmp-pcs-v5.h"
  38. #include "phy-qcom-qmp-pcs-v5_20.h"
  39. #include "phy-qcom-qmp-pcs-v6.h"
  40. #include "phy-qcom-qmp-pcs-v6-n4.h"
  41. #include "phy-qcom-qmp-pcs-v6_20.h"
  42. #include "phy-qcom-qmp-pcs-v7.h"
  43. #include "phy-qcom-qmp-pcs-v8.h"
  44. #include "phy-qcom-qmp-pcs-v8_50.h"
  45. /* QPHY_SW_RESET bit */
  46. #define SW_RESET BIT(0)
  47. /* QPHY_POWER_DOWN_CONTROL */
  48. #define SW_PWRDN BIT(0)
  49. #define REFCLK_DRV_DSBL BIT(1) /* PCIe */
  50. /* QPHY_START_CONTROL bits */
  51. #define SERDES_START BIT(0)
  52. #define PCS_START BIT(1)
  53. /* QPHY_PCS_STATUS bit */
  54. #define PHYSTATUS BIT(6)
  55. #define PHYSTATUS_4_20 BIT(7)
  56. /* QPHY_PCS_AUTONOMOUS_MODE_CTRL register bits */
  57. #define ARCVR_DTCT_EN BIT(0)
  58. #define ALFPS_DTCT_EN BIT(1)
  59. #define ARCVR_DTCT_EVENT_SEL BIT(4)
  60. /* QPHY_PCS_LFPS_RXTERM_IRQ_CLEAR register bits */
  61. #define IRQ_CLEAR BIT(0)
  62. /* QPHY_PCS_MISC_CLAMP_ENABLE register bits */
  63. #define CLAMP_EN BIT(0) /* enables i/o clamp_n */
  64. #endif