diff options
author | wdenk <wdenk> | 2004-11-24 23:35:19 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-11-24 23:35:19 +0000 |
commit | ed54e6212518262d27abe5e6de3c608d5ebceafb (patch) | |
tree | 81a904f4473e7425023cfd2da4415b9f7fdfe10b /cpu/pxa/interrupts.c | |
parent | bb310d462bbe2be9be867f969e7a2b60ae90e785 (diff) | |
download | u-boot-imx-ed54e6212518262d27abe5e6de3c608d5ebceafb.zip u-boot-imx-ed54e6212518262d27abe5e6de3c608d5ebceafb.tar.gz u-boot-imx-ed54e6212518262d27abe5e6de3c608d5ebceafb.tar.bz2 |
* Fix udelay() on AT91RM9200 for delays < 1 ms.
* Enable long help on CMC PU2 board;
fix reset issue;
increase CPU speed from 179 to 207 MHz.
Diffstat (limited to 'cpu/pxa/interrupts.c')
-rw-r--r-- | cpu/pxa/interrupts.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cpu/pxa/interrupts.c b/cpu/pxa/interrupts.c index 8aec0b9..fd02154 100644 --- a/cpu/pxa/interrupts.c +++ b/cpu/pxa/interrupts.c @@ -193,9 +193,14 @@ void udelay_masked (unsigned long usec) { ulong tmo; - tmo = usec / 1000; - tmo *= CFG_HZ; - tmo /= 1000; + if (usec >= 1000) { + tmo = usec / 1000; + tmo *= CFG_HZ; + tmo /= 1000; + } else { + tmo = usec * CFG_HZ; + tmo /= (1000*1000); + } reset_timer_masked (); |