]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/pxa/timer.c
pxa: use -mcpu=xscale compiler option
[u-boot] / arch / arm / cpu / pxa / timer.c
index b7b0da98a4d392d7d454b4436dc5053f6564d154..212b31eb6853f7d4182ef2b2b745dfe37abf8989 100644 (file)
@@ -31,8 +31,8 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #define        TIMER_LOAD_VAL  0xffffffff
 
-#define        timestamp       (gd->tbl)
-#define        lastinc         (gd->lastinc)
+#define        timestamp       (gd->arch.tbl)
+#define        lastinc         (gd->arch.lastinc)
 
 #if defined(CONFIG_CPU_PXA27X) || defined(CONFIG_CPU_MONAHANS)
 #define        TIMER_FREQ_HZ   3250000
@@ -94,3 +94,8 @@ void __udelay(unsigned long usec)
        while (get_ticks() < tmp)       /* loop till event */
                 /*NOP*/;
 }
+
+ulong get_tbclk(void)
+{
+       return TIMER_FREQ_HZ;
+}