]> git.sur5r.net Git - u-boot/blobdiff - lib_microblaze/time.c
ppc4xx: Update AMCC Bamboo README doc/README.bamboo
[u-boot] / lib_microblaze / time.c
index 12e84888bd5f3daa0285be53a34e430208d76194..3fa1b112627664d9fefa13bc1d5aea13bc40796d 100644 (file)
@@ -1,6 +1,8 @@
 /*
+ * (C) Copyright 2007 Michal Simek
  * (C) Copyright 2004 Atmark Techno, Inc.
  *
+ * Michal  SIMEK <monstr@monstr.eu>
  * Yasushi SHOJI <yashi@atmark-techno.com>
  *
  * See file CREDITS for list of people who contributed to this
  * MA 02111-1307 USA
  */
 
-void udelay(unsigned long usec)
+#include <common.h>
+
+void udelay (unsigned long usec)
 {
+       int i;
+       i = get_timer (0);
+       while ((get_timer (0) - i) < (usec / 1000)) ;
 }