Set vbus max current to 500 mA

Balaji Rao balajirrao at openmoko.org
Fri Nov 7 21:35:36 CET 2008


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



More information about the openmoko-kernel mailing list