diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-03-22 17:07:13 (GMT) |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-04-15 14:17:17 (GMT) |
commit | f1df758d30f712be82177e3c4cbb9a44e5964b9b (patch) | |
tree | 395d763fbc707fd809f8a1070bddb8a3cf6ff7fc /board/sunxi | |
parent | ebd468b2d26660ff7811e37cc64fa2369d4b5fff (diff) | |
download | u-boot-f1df758d30f712be82177e3c4cbb9a44e5964b9b.tar.xz |
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/sunxi')
-rw-r--r-- | board/sunxi/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 808bf82..3b419b3 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) { |