diff options
author | Dana Conrad <dconrad@fastmail.com> | 2021-09-13 14:41:42 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-09-19 21:13:09 -0400 |
commit | 0ca0940f012566f8bb9d378386f97608d21ea8bc (patch) | |
tree | 1ea0f78e5554d034fdc3eabb93dd9d598dec4832 /firmware/export/config/erosqnative.h | |
parent | 5765deb08e538b0c9d02dd3cfe40cd857a5c69ef (diff) | |
download | rockbox-0ca0940f012566f8bb9d378386f97608d21ea8bc.tar.gz rockbox-0ca0940f012566f8bb9d378386f97608d21ea8bc.zip |
Make USB Charging default value configurable per device
A reasonable default assumption for a user
would be that they can plug their device into
a USB AC adapter and it will charge with as much
current as it reasonably can. With the previous
default, an AC adapter will only do 100mA, basically
a trickle charge.
Make this configurable default per-device, so as not
to break old devices without testing.
Define TARGET_USB_CHARGING_DEFAULT to USB_CHARGING_FORCE
to use the new default.
Tested on both erosQ Native and M3K.
Change-Id: I77265d356a41d67357ebc6e9f7e0c25a37b74931
Diffstat (limited to 'firmware/export/config/erosqnative.h')
-rw-r--r-- | firmware/export/config/erosqnative.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/config/erosqnative.h b/firmware/export/config/erosqnative.h index b2b6f3f89e..e0a668d82d 100644 --- a/firmware/export/config/erosqnative.h +++ b/firmware/export/config/erosqnative.h | |||
@@ -114,6 +114,7 @@ | |||
114 | #define USB_DEVBSS_ATTR __attribute__((aligned(32))) | 114 | #define USB_DEVBSS_ATTR __attribute__((aligned(32))) |
115 | #define HAVE_USB_POWER | 115 | #define HAVE_USB_POWER |
116 | #define HAVE_USB_CHARGING_ENABLE | 116 | #define HAVE_USB_CHARGING_ENABLE |
117 | #define TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE | ||
117 | #define HAVE_BOOTLOADER_USB_MODE | 118 | #define HAVE_BOOTLOADER_USB_MODE |
118 | #endif | 119 | #endif |
119 | 120 | ||