summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2022-03-25 22:44:19 -0500
committerAidan MacDonald <amachronic@protonmail.com>2022-04-01 12:04:46 -0400
commitde285741bfe5094d5f67b9244378359cb94b66ee (patch)
tree66f0e7e783897374e47a0e923ac0376d78655c48 /firmware/target/mips
parent7aa2a23b950244d0c9d08001b72c143990bc1c00 (diff)
downloadrockbox-de285741bfe5094d5f67b9244378359cb94b66ee.tar.gz
rockbox-de285741bfe5094d5f67b9244378359cb94b66ee.zip
ErosQ Native: Make power delay bootloader-only
gotta go fast Change-Id: Ic01e4aa70a2bec4c48ae7cf8f32f8dfd366decad
Diffstat (limited to 'firmware/target/mips')
-rw-r--r--firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c b/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
index 183a6164f6..ab6393a9fe 100644
--- a/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
+++ b/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
@@ -83,11 +83,13 @@ void power_init(void)
* OF's setting, although it's not strictly within the USB spec. */
axp_set_charge_current(780);
+#ifdef BOOTLOADER
/* Delay to give power outputs time to stabilize.
* With the power thread delay, this can apparently go as low as 50,
* Keeping a higher value here just to ensure the bootloader works
* correctly. */
mdelay(200);
+#endif
}
#ifdef HAVE_USB_CHARGING_ENABLE