From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Kocialkowski Date: Mon, 23 Mar 2015 17:33:58 +0100 Subject: [U-Boot] [PATCH] sunxi: axp221: Use vbus-available rather then vbus-usable for vbus-detect In-Reply-To: <1427128104-30144-1-git-send-email-hdegoede@redhat.com> References: <1427128104-30144-1-git-send-email-hdegoede@redhat.com> Message-ID: <1427128438.2507.8.camel@collins> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le lundi 23 mars 2015 ? 17:28 +0100, Hans de Goede a ?crit : > 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. You (or I) could submit the very same change for the AXP209. It's the same bit for available (1 << 5). > Signed-off-by: Hans de Goede > --- > drivers/power/axp221.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/axp221.c b/drivers/power/axp221.c > index f758a75..dc3a7f1 100644 > --- a/drivers/power/axp221.c > +++ b/drivers/power/axp221.c > @@ -424,7 +424,7 @@ int axp_gpio_get_value(unsigned int pin) > if (ret) > return ret; > > - return !!(val & AXP221_POWER_STATUS_VBUS_USABLE); > + return !!(val & AXP221_POWER_STATUS_VBUS_AVAIL); > default: > return -EINVAL; > } -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: This is a digitally signed message part URL: