mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
imx233: fix potential bug in udelay
Change-Id: I5c8f5d9917f7a3353862c856bd9bbbbe9b291b1d
This commit is contained in:
parent
7677a9946f
commit
b81c1555ef
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue