summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/imx233/system-imx233.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c
index 165a32d143..078e052b30 100644
--- a/firmware/target/arm/imx233/system-imx233.c
+++ b/firmware/target/arm/imx233/system-imx233.c
@@ -257,7 +257,9 @@ void imx233_reset_block(volatile uint32_t *block_reg)
void udelay(unsigned us)
{
uint32_t ref = HW_DIGCTL_MICROSECONDS;
- while(!imx233_us_elapsed(ref, us));
+ /* increase number of us by 1 to make sure we wait *at least* the requested
+ * time */
+ while(!imx233_us_elapsed(ref, us + 1));
}
void imx233_digctl_set_arm_cache_timings(unsigned timings)