Skip to content
Snippets Groups Projects
Commit f1df758d authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Hans de Goede
Browse files

sunxi: USB download gadget cable detection

parent ebd468b2
No related branches found
No related tags found
No related merge requests found
...@@ -241,6 +241,13 @@ static struct musb_hdrc_platform_data musb_plat = { ...@@ -241,6 +241,13 @@ static struct musb_hdrc_platform_data musb_plat = {
}; };
#endif #endif
#ifdef CONFIG_USB_GADGET
int g_dnl_board_usb_cable_connected(void)
{
return sunxi_usbc_vbus_detect(0);
}
#endif
#ifdef CONFIG_MISC_INIT_R #ifdef CONFIG_MISC_INIT_R
int misc_init_r(void) int misc_init_r(void)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment