]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib_sh/time.c
rename CFG_ macros to CONFIG_SYS
[people/ms/u-boot.git] / lib_sh / time.c
index 3d33918f28f8d7f1d537b638b77e4ccadfb8bce4..e637e95a31689f2ff4c1dc029f9971a64d825aa9 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #include <common.h>
-#include <asm/processer.h>
+#include <asm/processor.h>
 
 static void tmu_timer_start (unsigned int timer)
 {
@@ -63,7 +63,7 @@ void reset_timer (void)
 void udelay (unsigned long usec)
 {
        unsigned int start = get_timer (0);
-       unsigned int end = start + (usec * ((CFG_HZ + 500000) / 1000000));
+       unsigned int end = start + (usec * ((CONFIG_SYS_HZ + 500000) / 1000000));
 
        while (get_timer (0) < end)
                continue;
@@ -71,5 +71,5 @@ void udelay (unsigned long usec)
 
 unsigned long get_tbclk (void)
 {
-       return CFG_HZ;
+       return CONFIG_SYS_HZ;
 }