diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-03-22 18:07:13 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-04-15 16:17:17 +0200 |
commit | f1df758d30f712be82177e3c4cbb9a44e5964b9b (patch) | |
tree | 395d763fbc707fd809f8a1070bddb8a3cf6ff7fc | |
parent | ebd468b2d26660ff7811e37cc64fa2369d4b5fff (diff) | |
download | u-boot-imx-f1df758d30f712be82177e3c4cbb9a44e5964b9b.zip u-boot-imx-f1df758d30f712be82177e3c4cbb9a44e5964b9b.tar.gz u-boot-imx-f1df758d30f712be82177e3c4cbb9a44e5964b9b.tar.bz2 |
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>
-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) { |