]> git.sur5r.net Git - u-boot/blobdiff - lib_mips/time.c
Add NAND FLASH support for AMCC Bamboo 440EP eval board
[u-boot] / lib_mips / time.c
index 9e6138da961e3049d549bad76e34d36de6a28c98..cd8dc721e2b797a8a50c621421b68d8af8d79d97 100644 (file)
@@ -75,9 +75,7 @@ void udelay (unsigned long usec)
        ulong tmo;
        ulong start = get_timer(0);
 
-       tmo = usec * CFG_HZ / 1000;
-       tmo /= 1000;
-
+       tmo = usec * (CFG_HZ / 1000000);
        while ((ulong)((mips_count_get() - start)) < tmo)
                /*NOP*/;
 }
@@ -99,5 +97,3 @@ ulong get_tbclk(void)
 {
        return CFG_HZ;
 }
-
-