summaryrefslogtreecommitdiff
path: root/drivers/usb/musb-new
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2022-07-15 06:34:54 +0300
committerMarek Vasut <marex@denx.de>2022-07-15 15:10:39 +0300
commit9674c09b7495d15017b68a3d462b17040c12ff70 (patch)
tree18bfb0781dd95532345f695799428b5e3c7191da /drivers/usb/musb-new
parent280f45d23977c650cb57bb91ce5936b02dcf3baa (diff)
downloadu-boot-9674c09b7495d15017b68a3d462b17040c12ff70.tar.xz
musb: sunxi: Allow host-side USB with external VBUS
Now that the PHY driver will not try to drive VBUS if it is already driven by an external supply, there is no need to check the VBUS voltage before powering on the PHY. Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'drivers/usb/musb-new')
-rw-r--r--drivers/usb/musb-new/sunxi.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c
index 7e62e3fe6e..dc4cfc2194 100644
--- a/drivers/usb/musb-new/sunxi.c
+++ b/drivers/usb/musb-new/sunxi.c
@@ -241,12 +241,6 @@ static int sunxi_musb_enable(struct musb *musb)
musb_writeb(musb->mregs, USBC_REG_o_VEND0, 0);
if (is_host_enabled(musb)) {
- ret = sun4i_usb_phy_vbus_detect(&glue->phy);
- if (ret == 1) {
- printf("A charger is plugged into the OTG: ");
- return -ENODEV;
- }
-
ret = sun4i_usb_phy_id_detect(&glue->phy);
if (ret == 1) {
printf("No host cable detected: ");