summaryrefslogtreecommitdiff
path: root/drivers/usb/fotg210/fotg210.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2023-01-18 10:09:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-19 16:10:44 +0300
commit3e679bde529e892a59e89d3a0728cc153e8ecefe (patch)
treedada0059f4d26f303a7c48e45e8fed643f7e915d /drivers/usb/fotg210/fotg210.h
parent816f518df20531a01eb8ddd2e84adc9791e16539 (diff)
downloadlinux-3e679bde529e892a59e89d3a0728cc153e8ecefe.tar.xz
usb: fotg210-udc: Implement VBUS session
Implement VBUS session handling for FOTG210. This is mainly used by the UDC driver which needs to call down to the FOTG210 core and enable/disable VBUS, as this needs to be handled outside of the HCD and UDC drivers, by platform specific glue code. The Gemini has a special bit in a system register to turn VBUS on and off so we implement this in the FOTG210 core. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230103-gemini-fotg210-usb-v2-7-100388af9810@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/fotg210/fotg210.h')
-rw-r--r--drivers/usb/fotg210/fotg210.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/fotg210/fotg210.h b/drivers/usb/fotg210/fotg210.h
index 4d0d4ae1a957..c44c0afe2956 100644
--- a/drivers/usb/fotg210/fotg210.h
+++ b/drivers/usb/fotg210/fotg210.h
@@ -17,6 +17,8 @@ struct fotg210 {
enum gemini_port port;
};
+void fotg210_vbus(struct fotg210 *fotg, bool enable);
+
#ifdef CONFIG_USB_FOTG210_HCD
int fotg210_hcd_probe(struct platform_device *pdev, struct fotg210 *fotg);
int fotg210_hcd_remove(struct platform_device *pdev);