|
29 | 29 | #include "phy-qcom-qmp-pcs-usb-v6.h" |
30 | 30 | #include "phy-qcom-qmp-pcs-usb-v7.h" |
31 | 31 |
|
32 | | -/* QPHY_SW_RESET bit */ |
33 | | -#define SW_RESET BIT(0) |
34 | | -/* QPHY_POWER_DOWN_CONTROL */ |
35 | | -#define SW_PWRDN BIT(0) |
36 | | -/* QPHY_START_CONTROL bits */ |
37 | | -#define SERDES_START BIT(0) |
38 | | -#define PCS_START BIT(1) |
39 | | -/* QPHY_PCS_STATUS bit */ |
40 | | -#define PHYSTATUS BIT(6) |
41 | | - |
42 | | -/* QPHY_V3_DP_COM_RESET_OVRD_CTRL register bits */ |
43 | | -/* DP PHY soft reset */ |
44 | | -#define SW_DPPHY_RESET BIT(0) |
45 | | -/* mux to select DP PHY reset control, 0:HW control, 1: software reset */ |
46 | | -#define SW_DPPHY_RESET_MUX BIT(1) |
47 | | -/* USB3 PHY soft reset */ |
48 | | -#define SW_USB3PHY_RESET BIT(2) |
49 | | -/* mux to select USB3 PHY reset control, 0:HW control, 1: software reset */ |
50 | | -#define SW_USB3PHY_RESET_MUX BIT(3) |
51 | | - |
52 | | -/* QPHY_V3_DP_COM_PHY_MODE_CTRL register bits */ |
53 | | -#define USB3_MODE BIT(0) /* enables USB3 mode */ |
54 | | -#define DP_MODE BIT(1) /* enables DP mode */ |
55 | | - |
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 | | - |
61 | | -/* QPHY_PCS_LFPS_RXTERM_IRQ_CLEAR register bits */ |
62 | | -#define IRQ_CLEAR BIT(0) |
63 | | - |
64 | | -/* QPHY_V3_PCS_MISC_CLAMP_ENABLE register bits */ |
65 | | -#define CLAMP_EN BIT(0) /* enables i/o clamp_n */ |
66 | | - |
67 | 32 | #define PHY_INIT_COMPLETE_TIMEOUT 10000 |
68 | 33 |
|
69 | 34 | /* set of registers with offsets different per-PHY */ |
|
0 commit comments