summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2021-10-05 12:17:38 -0500
committerAidan MacDonald <amachronic@protonmail.com>2021-10-16 16:58:19 -0400
commit6253cdebeda740af9a57597eb0a61c7e00d524a7 (patch)
treef81bf94ab3397af74b371745247e61fb93ab9856
parent7a5130a27722b95f0de965e99e1fd7cb322cafcf (diff)
downloadrockbox-6253cdebed.tar.gz
rockbox-6253cdebed.tar.bz2
rockbox-6253cdebed.zip
ErosQNative: Fix mdelay calls due to g3859
The battery stabilization delay call seems to need to be about 170 at minimum now, let's do 190 for safety (+20ms). Change-Id: Ifd0248891abe827dfcc3e6baf48cc5bef0d0cc1c
-rw-r--r--firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c b/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
index 325893a4b7..7bb8e4582e 100644
--- a/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
+++ b/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
@@ -78,8 +78,10 @@ void power_init(void)
* OF's setting, although it's not strictly within the USB spec. */
axp_set_charge_current(780);
- /* Short delay to give power outputs time to stabilize */
- mdelay(5);
+ /* Delay to give power outputs time to stabilize.
+ * From testing, 170 is the minimum. Make it
+ * 190 for safety. */
+ mdelay(190);
}
#ifdef HAVE_USB_CHARGING_ENABLE