summaryrefslogtreecommitdiff
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-6253cdebeda740af9a57597eb0a61c7e00d524a7.tar.gz
rockbox-6253cdebeda740af9a57597eb0a61c7e00d524a7.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)
78 * OF's setting, although it's not strictly within the USB spec. */ 78 * OF's setting, although it's not strictly within the USB spec. */
79 axp_set_charge_current(780); 79 axp_set_charge_current(780);
80 80
81 /* Short delay to give power outputs time to stabilize */ 81 /* Delay to give power outputs time to stabilize.
82 mdelay(5); 82 * From testing, 170 is the minimum. Make it
83 * 190 for safety. */
84 mdelay(190);
83} 85}
84 86
85#ifdef HAVE_USB_CHARGING_ENABLE 87#ifdef HAVE_USB_CHARGING_ENABLE