forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/usb/phy/phy-fsl-usb.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0+
1
+/* SPDX-License-Identifier: GPL-2.0+ */
22 /* Copyright (C) 2007,2008 Freescale Semiconductor, Inc. */
33
44 #include <linux/usb/otg-fsm.h>
....@@ -371,21 +371,7 @@
371371 u8 otg_port;
372372 };
373373
374
-/* For SRP and HNP handle */
375
-#define FSL_OTG_MAJOR 240
376374 #define FSL_OTG_NAME "fsl-usb2-otg"
377
-/* Command to OTG driver ioctl */
378
-#define OTG_IOCTL_MAGIC FSL_OTG_MAJOR
379
-/* if otg work as host, it should return 1, otherwise return 0 */
380
-#define GET_OTG_STATUS _IOR(OTG_IOCTL_MAGIC, 1, int)
381
-#define SET_A_SUSPEND_REQ _IOW(OTG_IOCTL_MAGIC, 2, int)
382
-#define SET_A_BUS_DROP _IOW(OTG_IOCTL_MAGIC, 3, int)
383
-#define SET_A_BUS_REQ _IOW(OTG_IOCTL_MAGIC, 4, int)
384
-#define SET_B_BUS_REQ _IOW(OTG_IOCTL_MAGIC, 5, int)
385
-#define GET_A_SUSPEND_REQ _IOR(OTG_IOCTL_MAGIC, 6, int)
386
-#define GET_A_BUS_DROP _IOR(OTG_IOCTL_MAGIC, 7, int)
387
-#define GET_A_BUS_REQ _IOR(OTG_IOCTL_MAGIC, 8, int)
388
-#define GET_B_BUS_REQ _IOR(OTG_IOCTL_MAGIC, 9, int)
389375
390376 void fsl_otg_add_timer(struct otg_fsm *fsm, void *timer);
391377 void fsl_otg_del_timer(struct otg_fsm *fsm, void *timer);