Set vbus max current to 500 mA

Andy Green andy at openmoko.com
Sat Nov 8 10:37:40 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| Hi Andy,
|
| I found that stable tracking usb_curlim was zero because of this and the
| battery was not getting charged by default.
|
| CONFIG_USB_GADGET_VBUS_DRAW was introduced in .27-rc6 I guess.
|
| Signed-off-by: Balaji Rao <balajirrao at openmoko.org>
|
| diff --git a/arch/arm/configs/gta02-moredrivers-defconfig
b/arch/arm/configs/gta02-moredrivers-defconfig
| index 7ac6c0f..92d3099 100644
| --- a/arch/arm/configs/gta02-moredrivers-defconfig
| +++ b/arch/arm/configs/gta02-moredrivers-defconfig
| @@ -1514,7 +1514,7 @@ CONFIG_USB_GADGET=y
|  # CONFIG_USB_GADGET_DEBUG is not set
|  # CONFIG_USB_GADGET_DEBUG_FILES is not set
|  # CONFIG_USB_GADGET_DEBUG_FS is not set
| -CONFIG_USB_GADGET_VBUS_DRAW=2
| +CONFIG_USB_GADGET_VBUS_DRAW=500
|  CONFIG_USB_GADGET_SELECTED=y
|  # CONFIG_USB_GADGET_AT91 is not set
|  # CONFIG_USB_GADGET_ATMEL_USBA is not set

Good find Balaji, that would have made major trouble...

- -Andy

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkkVXeQACgkQOjLpvpq7dMrDEgCdH2PVa2+nmL8JQ1jskLyUJMpA
rToAnA7DXkBc67mqzIx3w+CeKMD9QlEI
=uUhx
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list