Patchwork [U-Boot,1/2,V3] exynos: Export timer_get_us() to get microsecond timer

login
register
mail settings
Submitter Rajeshwari Birje
Date May 30, 2013, 5:19 a.m.
Message ID <1369891191-28274-2-git-send-email-rajeshwari.s@samsung.com>
Download mbox | patch
Permalink /patch/247450/
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Comments

Rajeshwari Birje - May 30, 2013, 5:19 a.m.
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@chromium.org>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
Changes in V2:
	- Removed #ifdefine for exported function.
Changes in V3:
	- None
 include/common.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/include/common.h b/include/common.h
index 8a1f3e4..c228d44 100644
--- a/include/common.h
+++ b/include/common.h
@@ -590,6 +590,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)
 {