[U-Boot] [PATCH] sunxi: axp221: Use vbus-available rather then vbus-usable for vbus-detect

Chen-Yu Tsai wens at csie.org
Mon Mar 23 17:46:49 CET 2015


Hi,

On Mon, Mar 23, 2015 at 9:34 AM, Hans de Goede <hdegoede at redhat.com> wrote:
> Hi,
>
> On 23-03-15 17:28, Hans de Goede wrote:
>>
>> vbus-usable does not get set if power is provided through the power barrel
>> connector, even if external 5v is also present on the otg connector.
>>
>> vbus-available correctly always reflects if there is 5v present on the otg
>> connector.
>
>
> Except that it also gets set when there is a usb-host cable with a device
> attached plugged in, so this is going to need some more thinking, I'll
> send a new patch when I've something which does not break using the port
> in host mode.

My understanding is VBUS_Usable = VBUS_Available && (!(N_VBUSEN || reg 30h[7]))

reg 30h[7] says whether to check N_VBUSEN before using VBUS.

ChenYu


More information about the U-Boot mailing list