diff options
author | Patrick Delaunay | 2019-03-29 15:42:18 +0100 |
---|---|---|
committer | Marek Vasut | 2019-04-21 10:26:52 +0200 |
commit | 2d76160f049c42087011cfa0e6e878aa2ed6b406 (patch) | |
tree | 804fdf3ca8bb10bbfb20eaf7c1b982c2afd0e310 /include/usb/dwc2_udc.h | |
parent | 0fdd0bc621f060fcf60fd4ba48a2a32f338ffeac (diff) |
usb: dwc2: Add function for session B check
Add a new function to check the session B validity, to be use to check
cable connection.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'include/usb/dwc2_udc.h')
-rw-r--r-- | include/usb/dwc2_udc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb/dwc2_udc.h b/include/usb/dwc2_udc.h index 3cf20eab92d..8a426b631ef 100644 --- a/include/usb/dwc2_udc.h +++ b/include/usb/dwc2_udc.h @@ -27,4 +27,6 @@ struct dwc2_plat_otg_data { int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata); +int dwc2_udc_B_session_valid(struct udevice *dev); + #endif /* __DWC2_USB_GADGET */ |