[Gta04-owner] [PATCH] usb max current sysfs file

Andreas Kemnade andreas at kemnade.info
Fri Mar 23 07:04:35 CET 2012


Hi,

here is a patch for kernel 3.2 to change the usb max current.
It provides a sysfs file here:
/sys/bus/platform/devices/twl4030_bci/max_current
/sys/class/power_supply/twl4030_usb/device/max_current (symlinked stuff)

Into this sysfs file you can write and read the maximum usb current in uA.
The setting stays the same when you disconnect and reconnect the usb plug.

Greetings
Andreas Kemnade
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twl4030_charger-current-limit.diff
Type: text/x-patch
Size: 3174 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120323/e10d15d0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120323/e10d15d0/attachment-0001.bin>


More information about the Gta04-owner mailing list