summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/imx233/power-imx233.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/firmware/target/arm/imx233/power-imx233.c b/firmware/target/arm/imx233/power-imx233.c
index 9ad8734823..0a4482fa08 100644
--- a/firmware/target/arm/imx233/power-imx233.c
+++ b/firmware/target/arm/imx233/power-imx233.c
@@ -383,13 +383,7 @@ void imx233_power_set_regulator(enum imx233_regulator_t reg, unsigned value_mv,
* Otherwise it is unreliable (doesn't work when lowering voltage on linregs)
* It usually takes between 0.5ms and 2.5ms */
#if IMX233_SUBTARGET >= 3700
- if(!BF_RD(POWER_5VCTRL, ENABLE_DCDC))
- panicf("regulator %d: wait for voltage stabilize in linreg mode !", reg);
- unsigned timeout = current_tick + (HZ * 20) / 1000;
- while(!BF_RD(POWER_CTRL, DC_OK_IRQ) || !TIME_AFTER(current_tick, timeout))
- yield();
- if(!BF_RD(POWER_CTRL, DC_OK_IRQ))
- panicf("regulator %d: failed to stabilize", reg);
+ sleep(1);
#else
if(!BF_RD(POWER_5VCTRL, EN_DCDC1) || !BF_RD(POWER_5VCTRL, EN_DCDC2))
panicf("regulator %d: wait for voltage stabilize in linreg mode !", reg);