x1000: Increase USB current limit to 500 mA at all times
The 100 mA USB current limit added in commit 90dd2f84a9
is a problem when booting with a completely dead battery.
Often 100 mA isn't enough to power the player, never mind
charge the battery, so revert to the old behavior of only
limiting charge current.
Given that the original firmware on these devices isn't
following the USB spec to the letter, it's probably not
worth trying to make Rockbox do so unless and until it
causes a real problem - which hasn't happened yet.
Change-Id: I179a08310c226fe01460680c62fd25fd69079256
This commit is contained in:
parent
83c2398384
commit
42999913ba
3 changed files with 6 additions and 6 deletions
|
@ -103,8 +103,8 @@ void usb_charging_maxcurrent_change(int maxcurrent)
|
||||||
* reduced dynamically by the AXP192 so the combined load is less
|
* reduced dynamically by the AXP192 so the combined load is less
|
||||||
* than the set VBUS current limit. */
|
* than the set VBUS current limit. */
|
||||||
if(maxcurrent <= 100) {
|
if(maxcurrent <= 100) {
|
||||||
vbus_limit = AXP_VBUS_LIMIT_100mA;
|
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
||||||
charge_current = 550;
|
charge_current = 100;
|
||||||
} else {
|
} else {
|
||||||
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
||||||
charge_current = 550;
|
charge_current = 550;
|
||||||
|
|
|
@ -96,8 +96,8 @@ void usb_charging_maxcurrent_change(int maxcurrent)
|
||||||
* reduced dynamically by the AXP192 so the combined load is less
|
* reduced dynamically by the AXP192 so the combined load is less
|
||||||
* than the set VBUS current limit. */
|
* than the set VBUS current limit. */
|
||||||
if(maxcurrent <= 100) {
|
if(maxcurrent <= 100) {
|
||||||
vbus_limit = AXP_VBUS_LIMIT_100mA;
|
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
||||||
charge_current = 550;
|
charge_current = 100;
|
||||||
} else {
|
} else {
|
||||||
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
||||||
charge_current = 550;
|
charge_current = 550;
|
||||||
|
|
|
@ -116,8 +116,8 @@ void usb_charging_maxcurrent_change(int maxcurrent)
|
||||||
* reduced dynamically by the AXP192 so the combined load is less
|
* reduced dynamically by the AXP192 so the combined load is less
|
||||||
* than the set VBUS current limit. */
|
* than the set VBUS current limit. */
|
||||||
if(maxcurrent <= 100) {
|
if(maxcurrent <= 100) {
|
||||||
vbus_limit = AXP_VBUS_LIMIT_100mA;
|
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
||||||
charge_current = 550;
|
charge_current = 100;
|
||||||
} else {
|
} else {
|
||||||
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
vbus_limit = AXP_VBUS_LIMIT_500mA;
|
||||||
charge_current = 550;
|
charge_current = 550;
|
||||||
|
|
Loading…
Reference in a new issue