]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sunxi/board.c
sunxi: USB download gadget cable detection
[karo-tx-uboot.git] / board / sunxi / board.c
index 808bf82b65fe3465105286baa52764152d474816..3b419b398b8faa86d2ec7a5ee7bff3ab17aa3652 100644 (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)
 {