Add a simple delay timer driver API
The API is simple. The BSP or specific timer driver creates an
instance of timer_ops_t, fills in the timer specific data, then calls
timer_init(). The timer specific data includes a function pointer
to return the timer value and a clock multiplier/divider. The ratio
of the multiplier and the divider is the clock frequency in MHz.

After that, mdelay() or udelay() can be called to delay execution for
the specified time (milliseconds or microseconds, respectively).

Change-Id: Icf8a295e1d25874f789bf28b7412156329dc975c
Co-authored-by: Dan Handley <dan.handley@arm.com>
1 parent 789c220 commit 9055c7d149758f2f2a646f40f08d6d24b07dfff3
@Ryan Harkin Ryan Harkin authored on 17 Mar 2015
Dan Handley committed on 17 Jun 2015
Showing 2 changed files
View
drivers/delay_timer/delay_timer.c 0 → 100644
View
include/drivers/delay_timer.h 0 → 100644