summaryrefslogtreecommitdiffstats
path: root/drivers/usb/fotg210/fotg210-udc.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2022-11-14 12:51:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-22 17:25:23 +0100
commit5f217ccd520f155c2e3b3dd95627140dd5ec947e (patch)
tree7ad7ab2a4f2baead7742fe477de6f4f147877867 /drivers/usb/fotg210/fotg210-udc.h
parentfotg210-udc: Use dev pointer in probe and dev_messages (diff)
downloadlinux-5f217ccd520f155c2e3b3dd95627140dd5ec947e.tar.xz
linux-5f217ccd520f155c2e3b3dd95627140dd5ec947e.zip
fotg210-udc: Support optional external PHY
This adds support for an optional external PHY to the FOTG210 UDC driver. Tested with the GPIO VBUS PHY driver on the Gemini SoC. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20221114115201.302887-2-linus.walleij@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/fotg210/fotg210-udc.h')
-rw-r--r--drivers/usb/fotg210/fotg210-udc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/fotg210/fotg210-udc.h b/drivers/usb/fotg210/fotg210-udc.h
index 08c32957503b..e3067d22a895 100644
--- a/drivers/usb/fotg210/fotg210-udc.h
+++ b/drivers/usb/fotg210/fotg210-udc.h
@@ -234,6 +234,8 @@ struct fotg210_udc {
unsigned long irq_trigger;
+ struct device *dev;
+ struct usb_phy *phy;
struct usb_gadget gadget;
struct usb_gadget_driver *driver;