arm: mxs: Wait when disabling VDDMEM current limiter
According to i.MX23 datasheet Table 32-17, we must wait for the supply to settle before disabling the current limiter. Indeed, not waiting a little here causes the system to crash at times. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
dd24b57bb7
commit
be0ecdbed5
|
@ -240,9 +240,14 @@ static void mx23_mem_setup_vddmem(void)
|
||||||
struct mxs_power_regs *power_regs =
|
struct mxs_power_regs *power_regs =
|
||||||
(struct mxs_power_regs *)MXS_POWER_BASE;
|
(struct mxs_power_regs *)MXS_POWER_BASE;
|
||||||
|
|
||||||
|
/* We must wait before and after disabling the current limiter! */
|
||||||
|
early_delay(10000);
|
||||||
|
|
||||||
clrbits_le32(&power_regs->hw_power_vddmemctrl,
|
clrbits_le32(&power_regs->hw_power_vddmemctrl,
|
||||||
POWER_VDDMEMCTRL_ENABLE_ILIMIT);
|
POWER_VDDMEMCTRL_ENABLE_ILIMIT);
|
||||||
|
|
||||||
|
early_delay(10000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mx23_mem_init(void)
|
static void mx23_mem_init(void)
|
||||||
|
|
Loading…
Reference in New Issue