Home
last modified time | relevance | path

Searched hist:"9055 c7d149758f2f2a646f40f08d6d24b07dfff3" (Results 1 – 2 of 2) sorted by relevance

/rk3399_ARM-atf/include/drivers/
H A Ddelay_timer.h9055c7d149758f2f2a646f40f08d6d24b07dfff3 Tue Mar 17 14:50:05 UTC 2015 Ryan Harkin <ryan.harkin@linaro.org> 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>
/rk3399_ARM-atf/drivers/delay_timer/
H A Ddelay_timer.c9055c7d149758f2f2a646f40f08d6d24b07dfff3 Tue Mar 17 14:50:05 UTC 2015 Ryan Harkin <ryan.harkin@linaro.org> 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>