[U-Boot] [PATCH 1/4] exynos: Export timer_get_us() to get microsecond timer

Rajeshwari S Shinde rajeshwari.s at samsung.com
Tue Oct 8 12:50:03 CEST 2013


From: Rajeshwari Shinde <rajeshwari.s at samsung.com>

This function, if implemented by the board, provides a microsecond
timer. The granularity may be larger than 1us if hardware does not
support this.

Signed-off-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Rajeshwari S Shinde <rajeshwari.s at samsung.com>
---
 include/common.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/common.h b/include/common.h
index 8addf43..42964bc 100644
--- a/include/common.h
+++ b/include/common.h
@@ -596,6 +596,12 @@ void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
+/*
+ * Return the current value of a monotonically increasing microsecond timer.
+ * Granularity may be larger than 1us if hardware does not support this.
+ */
+ulong timer_get_us(void);
+
 /* $(CPU)/cpu.c */
 static inline int cpumask_next(int cpu, unsigned int mask)
 {
-- 
1.7.12.4



More information about the U-Boot mailing list