aboutsummaryrefslogtreecommitdiffstats
path: root/GTA04/udev-rules/charging.rules
blob: b9ebed8e091f1d1e97b193ef296edf68c90d0bd0 (plain)
1
2
3
4
5
6
# 500 mA charger
SUBSYSTEM=="power_supply", ACTION=="change", DEVPATH=="*power_supply/twl4030_usb" ATTRS{1-0048/twl4030_usb/id}=="floating", ATTR{../../max_current}="500000"
# 1A charger
SUBSYSTEM=="power_supply", ACTION=="change", DEVPATH=="*power_supply/twl4030_usb" ATTRS{1-0048/twl4030_usb/id}=="102k", ATTR{../../max_current}="851000"
# 2A charger
SUBSYSTEM=="power_supply", ACTION=="change", DEVPATH=="*power_supply/twl4030_usb" ATTRS{1-0048/twl4030_usb/id}=="GND", ATTR{../../max_current}="851000"