Home
last modified time | relevance | path

Searched hist:"8 dfafdde" (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/lib/
H A Dtime.c8dfafdde Fri Oct 04 10:22:41 CDT 2013 Rob Herring <rob.herring@calxeda.com> Introduce common timer functions

Many platforms duplicate pretty much the same timer code yet they all have
a 32-bit freerunning counter register. Create a common implementation that
minimally requires 2 or 3 defines to add timer support:

CONFIG_SYS_TIMER_RATE - Clock rate of the timer counter
CONFIG_SYS_TIMER_COUNTER - Address of 32-bit counter
CONFIG_SYS_TIMER_COUNTS_DOWN - Define if counter counts down

All functions are weak or ifdef'ed so they can still be overriden by any
platform.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
/openbmc/u-boot/include/asm-generic/
H A Dglobal_data.h8dfafdde Fri Oct 04 10:22:41 CDT 2013 Rob Herring <rob.herring@calxeda.com> Introduce common timer functions

Many platforms duplicate pretty much the same timer code yet they all have
a 32-bit freerunning counter register. Create a common implementation that
minimally requires 2 or 3 defines to add timer support:

CONFIG_SYS_TIMER_RATE - Clock rate of the timer counter
CONFIG_SYS_TIMER_COUNTER - Address of 32-bit counter
CONFIG_SYS_TIMER_COUNTS_DOWN - Define if counter counts down

All functions are weak or ifdef'ed so they can still be overriden by any
platform.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>