coreboot-kgpe-d16/payloads/libpayload/arch/armv7
Gabe Black 5c0b7abe78 libpayload: Generalize and redistribute timekeeping code
The timekeeping code in libpayload was dependent on rdtsc, and when it was
split up by arch, that code was duplicated even though it was mostly the same.
This change factors out actually reading the count from the timer and the
speed of the timer and puts the definitions of ndelay, udelay, mdelay and
delay into generic code. Then, in x86, the timer_hz and timer_get_raw_value
functions which used to be in depthcharge were moved over to libpayload's
arch/x86/timer.c. In ARM where there isn't a single, canonical timer, those
functions are omitted with the intention that they'll be implemented by a
specific timer driver chosen elsewhere.

Change-Id: I9c919bed712ace941f417c1d58679d667b2d8269
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://review.coreboot.org/2717
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-03-14 04:53:33 +01:00
..
Config.in libpayload: Fix license headers 2013-02-20 02:41:24 +01:00
Makefile.inc libpayload: Catch exceptions and print out an error message. 2013-03-04 22:39:09 +01:00
assembler.h
coreboot.c libpayload: Use an appropriate range of memory when looking for cb tables. 2013-02-15 03:19:06 +01:00
exception.c libpayload: Don't declare the loop counter within the for loop 2013-03-14 01:42:52 +01:00
exception_asm.S libpayload: Catch exceptions and print out an error message. 2013-03-04 22:39:09 +01:00
head.S libpayload: Move over to the payload's stack during startup 2013-03-13 23:41:23 +01:00
libpayload.ldscript
main.c libpayload: Catch exceptions and print out an error message. 2013-03-04 22:39:09 +01:00
memcpy.S
memset.S
sysinfo.c
timer.c libpayload: Generalize and redistribute timekeeping code 2013-03-14 04:53:33 +01:00
util.S libpayload: Mark "halt" as a function. 2013-03-01 16:49:41 +01:00
virtual.c