hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/usb/phy.h
....@@ -13,18 +13,8 @@
1313 #include <linux/extcon.h>
1414 #include <linux/notifier.h>
1515 #include <linux/usb.h>
16
+#include <linux/android_kabi.h>
1617 #include <uapi/linux/usb/charger.h>
17
-
18
-#define ENABLE_DP_MANUAL_PULLUP BIT(0)
19
-#define ENABLE_SECONDARY_PHY BIT(1)
20
-#define PHY_HOST_MODE BIT(2)
21
-#define PHY_CHARGER_CONNECTED BIT(3)
22
-#define PHY_VBUS_VALID_OVERRIDE BIT(4)
23
-#define DEVICE_IN_SS_MODE BIT(5)
24
-#define PHY_LANE_A BIT(6)
25
-#define PHY_LANE_B BIT(7)
26
-#define PHY_HSFS_MODE BIT(8)
27
-#define PHY_LS_MODE BIT(9)
2818
2919 enum usb_phy_interface {
3020 USBPHY_INTERFACE_MODE_UNKNOWN,
....@@ -48,8 +38,6 @@
4838 USB_PHY_TYPE_UNDEFINED,
4939 USB_PHY_TYPE_USB2,
5040 USB_PHY_TYPE_USB3,
51
- USB_PHY_TYPE_USB3_OR_DP,
52
- USB_PHY_TYPE_USB3_AND_DP,
5341 };
5442
5543 /* OTG defines lots of enumeration states before device reset */
....@@ -60,7 +48,6 @@
6048 OTG_STATE_B_IDLE,
6149 OTG_STATE_B_SRP_INIT,
6250 OTG_STATE_B_PERIPHERAL,
63
- OTG_STATE_B_SUSPEND,
6451
6552 /* extra dual-role default-b states */
6653 OTG_STATE_B_WAIT_ACON,
....@@ -170,9 +157,7 @@
170157 */
171158 enum usb_charger_type (*charger_detect)(struct usb_phy *x);
172159
173
- /* reset the PHY clocks */
174
- int (*reset)(struct usb_phy *x);
175
- int (*drive_dp_pulse)(struct usb_phy *x, unsigned int pulse_width);
160
+ ANDROID_KABI_RESERVE(1);
176161 };
177162
178163 /* for board-specific init logic */
....@@ -229,24 +214,6 @@
229214 return 0;
230215
231216 return x->set_vbus(x, false);
232
-}
233
-
234
-static inline int
235
-usb_phy_reset(struct usb_phy *x)
236
-{
237
- if (x && x->reset)
238
- return x->reset(x);
239
-
240
- return 0;
241
-}
242
-
243
-static inline int
244
-usb_phy_drive_dp_pulse(struct usb_phy *x, unsigned int pulse_width)
245
-{
246
- if (x && x->drive_dp_pulse)
247
- return x->drive_dp_pulse(x, pulse_width);
248
-
249
- return 0;
250217 }
251218
252219 /* for usb host and peripheral controller drivers */