sunxi: USB download gadget cable detection

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Paul Kocialkowski 2015-03-22 18:07:13 +01:00 committed by Hans de Goede
parent ebd468b2d2
commit f1df758d30

View File

@ -241,6 +241,13 @@ static struct musb_hdrc_platform_data musb_plat = {
};
#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
int misc_init_r(void)
{