mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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>
This commit is contained in:
parent
3cfcf774c2
commit
fc9ae1bac4
1 changed files with 6 additions and 0 deletions
|
@ -596,6 +596,12 @@ void ddr_enable_ecc(unsigned int dram_size);
|
||||||
#endif
|
#endif
|
||||||
#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 */
|
/* $(CPU)/cpu.c */
|
||||||
static inline int cpumask_next(int cpu, unsigned int mask)
|
static inline int cpumask_next(int cpu, unsigned int mask)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue