ARM: rmobile: blanche: Disable CONFIG_CMD_SF / CONFIG_CMD_SPI
[oweals/u-boot.git] / lib / time.c
index f30fc05804be9914d55973bd6163f1c46b0e30f8..65db0f6cda29367c6f4b2eee1666a18a3d578100 100644 (file)
@@ -5,12 +5,16 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
+#include <time.h>
 #include <timer.h>
 #include <watchdog.h>
 #include <div64.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #ifndef CONFIG_WD_PERIOD
 # define CONFIG_WD_PERIOD      (10 * 1000 * 1000)      /* 10 seconds default */
@@ -180,7 +184,7 @@ void udelay(unsigned long usec)
        do {
                WATCHDOG_RESET();
                kv = usec > CONFIG_WD_PERIOD ? CONFIG_WD_PERIOD : usec;
-               __udelay (kv);
+               __udelay(kv);
                usec -= kv;
        } while(usec);
 }