Message ID | 1427044034-32031-6-git-send-email-contact@paulk.fr |
---|---|
State | Accepted |
Delegated to: | Hans de Goede |
Headers | show |
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index e1891d1..becdc8b 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) {
Signed-off-by: Paul Kocialkowski <contact@paulk.fr> --- board/sunxi/board.c | 7 +++++++ 1 file changed, 7 insertions(+)