summaryrefslogtreecommitdiff
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
parent7aa2a23b950244d0c9d08001b72c143990bc1c00 (diff)
downloadrockbox-de285741bfe5094d5f67b9244378359cb94b66ee.tar.gz
rockbox-de285741bfe5094d5f67b9244378359cb94b66ee.zip
ErosQ Native: Make power delay bootloader-only
gotta go fast Change-Id: Ic01e4aa70a2bec4c48ae7cf8f32f8dfd366decad
-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)
83 * OF's setting, although it's not strictly within the USB spec. */ 83 * OF's setting, although it's not strictly within the USB spec. */
84 axp_set_charge_current(780); 84 axp_set_charge_current(780);
85 85
86#ifdef BOOTLOADER
86 /* Delay to give power outputs time to stabilize. 87 /* Delay to give power outputs time to stabilize.
87 * With the power thread delay, this can apparently go as low as 50, 88 * With the power thread delay, this can apparently go as low as 50,
88 * Keeping a higher value here just to ensure the bootloader works 89 * Keeping a higher value here just to ensure the bootloader works
89 * correctly. */ 90 * correctly. */
90 mdelay(200); 91 mdelay(200);
92#endif
91} 93}
92 94
93#ifdef HAVE_USB_CHARGING_ENABLE 95#ifdef HAVE_USB_CHARGING_ENABLE