summaryrefslogtreecommitdiff
path: root/firmware/export/config/shanlingq1.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-10-02 11:53:20 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-10-02 15:09:46 +0100
commit3a89fdee96eadda10a6024bd1162fae696654ae6 (patch)
tree2b10f6da1d5575e5ff5831ed173f8daa7069a771 /firmware/export/config/shanlingq1.h
parentd435bb77b57a2c3ec1f3e447101bb6bbb7d163e1 (diff)
downloadrockbox-3a89fdee96eadda10a6024bd1162fae696654ae6.tar.gz
rockbox-3a89fdee96eadda10a6024bd1162fae696654ae6.zip
x1000: fix hang that may occur in USB mode
Upon getting a USB reset, the USB core will update charging current by calling usb_charging_maxcurrent_change(). On all current X1000 targets this may cause a hang, since changing the charge current involves a blocking I2C transaction. Eg. if the host issues a reset when we're already configured as part of error recovery, the change from 500 mA -> 100 mA will cause a hang. Change-Id: I5b45272c01fa16b179ae3d16bbc50c7fab9a416b
Diffstat (limited to 'firmware/export/config/shanlingq1.h')
-rw-r--r--firmware/export/config/shanlingq1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/config/shanlingq1.h b/firmware/export/config/shanlingq1.h
index 88175b9160..1122b7693c 100644
--- a/firmware/export/config/shanlingq1.h
+++ b/firmware/export/config/shanlingq1.h
@@ -104,6 +104,7 @@
104#define USB_DEVBSS_ATTR __attribute__((aligned(32))) 104#define USB_DEVBSS_ATTR __attribute__((aligned(32)))
105#define HAVE_USB_POWER 105#define HAVE_USB_POWER
106#define HAVE_USB_CHARGING_ENABLE 106#define HAVE_USB_CHARGING_ENABLE
107#define HAVE_USB_CHARGING_IN_THREAD
107#define HAVE_BOOTLOADER_USB_MODE 108#define HAVE_BOOTLOADER_USB_MODE
108#endif 109#endif
109 110