mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
280f45d239
commit
9674c09b74
1 changed files with 0 additions and 6 deletions
|
@ -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: ");
|
||||
|
|
Loading…
Add table
Reference in a new issue