]> git.sur5r.net Git - u-boot/blobdiff - cpu/microblaze/timer.c
MPC83XX: Fix GPIO configuration - set gpio level before direction
[u-boot] / cpu / microblaze / timer.c
index ab1cb127492b0c18dff5eb7d3884ae0af117bf3f..b350453443e8d09fbfdaa979df50284df1f57cd7 100644 (file)
@@ -33,10 +33,17 @@ void reset_timer (void)
        timestamp = 0;
 }
 
+#ifdef CFG_TIMER_0
 ulong get_timer (ulong base)
 {
        return (timestamp - base);
 }
+#else
+ulong get_timer (ulong base)
+{
+       return (timestamp++ - base);
+}
+#endif
 
 void set_timer (ulong t)
 {