coreboot-kgpe-d16/payloads/libpayload/arch/powerpc
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: Make whether or not there's an IO address space configurable 2013-03-13 23:02:05 +01:00
Makefile.inc Fixes to the libpayload build system 2011-07-03 14:47:48 +02:00
coreboot.c Extend coreboot table entry for serial ports 2011-10-21 23:34:30 +02:00
exec.S This change adds PPC support to libpayload, and hooks it up in the build 2009-05-21 10:02:52 +00:00
head.S This change adds PPC support to libpayload, and hooks it up in the build 2009-05-21 10:02:52 +00:00
main.c libpayload: Use #ifdef for CONFIG_* checks 2012-11-15 18:51:17 +01:00
sysinfo.c Let lib_get_sysinfo() pass through the success of get_coreboot_info() 2011-12-24 12:02:18 +01:00
timer.c libpayload: Generalize and redistribute timekeeping code 2013-03-14 04:53:33 +01:00
util.S This change adds PPC support to libpayload, and hooks it up in the build 2009-05-21 10:02:52 +00:00
virtual.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00