@@ -134,3 +134,21 @@ ulong get_tbclk(void)
{
return gd->timer_rate_hz;
}
+
+void reset_timer(void)
+{
+ /*
+ * A dummy() implementation _just_ to build drivers/mtd/cfi_flash.c
+ * and drivers/block/mg_disk.c drivers.
+ *
+ * In AT91 the get_timer(base) returns the elapsed time
+ * between the time_start and later after some work.
+ * While the "others" are using reset_timer to make
+ * epoches and get current time after some work in that
+ * epoch.
+ *
+ * time_start = get_timer(0)
+ * Some work here
+ * time_elapsed = get_timer(time_start)
+ */
+}
In AT91 the get_timer(base) returns the elapsed time between the time_start and later after some work. While the "others" are using reset_timer to make epoches and get current time after some work in that epoch. time_start = get_timer(0) Some work here time_elapsed = get_timer(time_start) Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at> --- arch/arm/cpu/arm926ejs/at91/timer.c | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-)