From 6253cdebeda740af9a57597eb0a61c7e00d524a7 Mon Sep 17 00:00:00 2001 From: Dana Conrad Date: Tue, 5 Oct 2021 12:17:38 -0500 Subject: [PATCH] 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 --- .../mips/ingenic_x1000/erosqnative/power-erosqnative.c | 6 ++++-- 1 file 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