1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (c) 2017, The Linux Foundation. All rights reserved. 4 */ 5 6 #ifndef QCOM_PHY_QMP_H_ 7 #define QCOM_PHY_QMP_H_ 8 9 #include "phy-qcom-qmp-qserdes-com-v2.h" 10 #include "phy-qcom-qmp-qserdes-txrx-v2.h" 11 12 #include "phy-qcom-qmp-qserdes-com-v3.h" 13 #include "phy-qcom-qmp-qserdes-txrx-v3.h" 14 15 #include "phy-qcom-qmp-qserdes-com-v4.h" 16 #include "phy-qcom-qmp-qserdes-txrx-v4.h" 17 #include "phy-qcom-qmp-qserdes-txrx-v4_20.h" 18 19 #include "phy-qcom-qmp-qserdes-com-v5.h" 20 #include "phy-qcom-qmp-qserdes-txrx-v5.h" 21 #include "phy-qcom-qmp-qserdes-txrx-v5_20.h" 22 #include "phy-qcom-qmp-qserdes-txrx-v5_5nm.h" 23 24 #include "phy-qcom-qmp-qserdes-com-v6.h" 25 #include "phy-qcom-qmp-qserdes-txrx-v6.h" 26 #include "phy-qcom-qmp-qserdes-txrx-v6_20.h" 27 #include "phy-qcom-qmp-qserdes-txrx-v6_n4.h" 28 #include "phy-qcom-qmp-qserdes-ln-shrd-v5.h" 29 #include "phy-qcom-qmp-qserdes-ln-shrd-v6.h" 30 31 #include "phy-qcom-qmp-qserdes-com-v7.h" 32 #include "phy-qcom-qmp-qserdes-txrx-v7.h" 33 34 #include "phy-qcom-qmp-qserdes-com-v8.h" 35 #include "phy-qcom-qmp-usb43-qserdes-com-v8.h" 36 #include "phy-qcom-qmp-qserdes-txrx-v8.h" 37 #include "phy-qcom-qmp-qserdes-lalb-v8.h" 38 39 #include "phy-qcom-qmp-qserdes-com-v10.h" 40 #include "phy-qcom-qmp-qserdes-txrx-v10.h" 41 42 #include "phy-qcom-qmp-qserdes-com-v10_60.h" 43 #include "phy-qcom-qmp-qserdes-txrx-v10_60.h" 44 45 #include "phy-qcom-qmp-qserdes-pll.h" 46 47 #include "phy-qcom-qmp-pcs-v2.h" 48 49 #include "phy-qcom-qmp-pcs-v3.h" 50 51 #include "phy-qcom-qmp-pcs-v4.h" 52 53 #include "phy-qcom-qmp-pcs-v4_20.h" 54 55 #include "phy-qcom-qmp-pcs-v5.h" 56 57 #include "phy-qcom-qmp-pcs-v5_20.h" 58 59 #include "phy-qcom-qmp-pcs-v6.h" 60 61 #include "phy-qcom-qmp-pcs-v6-n4.h" 62 63 #include "phy-qcom-qmp-pcs-v6_20.h" 64 65 #include "phy-qcom-qmp-pcs-v7.h" 66 67 #include "phy-qcom-qmp-pcs-v8.h" 68 69 #include "phy-qcom-qmp-pcs-v8_50.h" 70 71 #include "phy-qcom-qmp-pcs-v10.h" 72 73 #include "phy-qcom-qmp-pcs-v10_60.h" 74 75 /* QPHY_SW_RESET bit */ 76 #define SW_RESET BIT(0) 77 /* QPHY_POWER_DOWN_CONTROL */ 78 #define SW_PWRDN BIT(0) 79 #define REFCLK_DRV_DSBL BIT(1) /* PCIe */ 80 81 /* QPHY_START_CONTROL bits */ 82 #define SERDES_START BIT(0) 83 #define PCS_START BIT(1) 84 85 /* QPHY_PCS_STATUS bit */ 86 #define PHYSTATUS BIT(6) 87 #define PHYSTATUS_4_20 BIT(7) 88 89 /* QPHY_PCS_AUTONOMOUS_MODE_CTRL register bits */ 90 #define ARCVR_DTCT_EN BIT(0) 91 #define ALFPS_DTCT_EN BIT(1) 92 #define ARCVR_DTCT_EVENT_SEL BIT(4) 93 94 /* QPHY_PCS_LFPS_RXTERM_IRQ_CLEAR register bits */ 95 #define IRQ_CLEAR BIT(0) 96 97 /* QPHY_PCS_MISC_CLAMP_ENABLE register bits */ 98 #define CLAMP_EN BIT(0) /* enables i/o clamp_n */ 99 100 #endif 101