summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2015-03-22 18:07:13 +0100
committerHans de Goede <hdegoede@redhat.com>2015-04-15 16:17:17 +0200
commitf1df758d30f712be82177e3c4cbb9a44e5964b9b (patch)
tree395d763fbc707fd809f8a1070bddb8a3cf6ff7fc /board
parentebd468b2d26660ff7811e37cc64fa2369d4b5fff (diff)
downloadblackbird-obmc-uboot-f1df758d30f712be82177e3c4cbb9a44e5964b9b.tar.gz
blackbird-obmc-uboot-f1df758d30f712be82177e3c4cbb9a44e5964b9b.zip
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>
Diffstat (limited to 'board')
-rw-r--r--board/sunxi/board.c7
1 files changed, 7 insertions, 0 deletions
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)
{
OpenPOWER on IntegriCloud