]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sunxi: USB download gadget cable detection
authorPaul Kocialkowski <contact@paulk.fr>
Sun, 22 Mar 2015 17:07:13 +0000 (18:07 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:14 +0000 (21:47 +0200)
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>
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)
 {