diff options
author | Rajeshwari Shinde <rajeshwari.s@samsung.com> | 2013-10-08 16:20:03 +0530 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-10-08 18:18:10 +0530 |
commit | fc9ae1bac45a40bdc9b8756757b645dc8d5b781c (patch) | |
tree | b1000a088a07a567c9e27858c12cdce4b3971fa8 | |
parent | 3cfcf774c270ecf6289203d88f859d1f91cb318e (diff) | |
download | u-boot-fc9ae1bac45a40bdc9b8756757b645dc8d5b781c.zip u-boot-fc9ae1bac45a40bdc9b8756757b645dc8d5b781c.tar.gz u-boot-fc9ae1bac45a40bdc9b8756757b645dc8d5b781c.tar.bz2 |
exynos: Export timer_get_us() to get microsecond timer
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 S Shinde <rajeshwari.s@samsung.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
-rw-r--r-- | include/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index f1a590a..bed4316 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) { |