From: Paul Kocialkowski Date: Sun, 22 Mar 2015 17:07:13 +0000 (+0100) Subject: sunxi: USB download gadget cable detection X-Git-Tag: v2015.07-rc1~345^2~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f1df758d30f712be82177e3c4cbb9a44e5964b9b;p=u-boot sunxi: USB download gadget cable detection Signed-off-by: Paul Kocialkowski Acked-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 808bf82b65..3b419b398b 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -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) {