]> git.sur5r.net Git - u-boot/commit
x86: Enable coreboot timestamp facility support in u-boot.
authorVadim Bendebury <vbendeb@chromium.org>
Tue, 23 Oct 2012 18:04:33 +0000 (18:04 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:38 +0000 (14:30 -0800)
commit6dbe0cce3ffce8db8cffad7a16487ef9e3c95021
tree4dcd6ab8fc2cf03072a0a6fa18c8bab295cd5398
parent2f899e03a94cac4b092e4c013c6afda73178cc9f
x86: Enable coreboot timestamp facility support in u-boot.

This change turns on the code which allows u-boot to add
timestamps to the timestamp table created by coreboot.

Since u-boot does not use the tsc_t like structure to represent
HW counter readings, this structure is being replaced by 64 bit
integer.

The timestamp_init() function is now initializing the base timer
value used by u-boot to calculate the HW counter increments.

Timestamp facility is initialized as soon as the timestamp table
pointer is found in the coreboot table. The u-boot generated
timer events' ID will start at 1000 to clearly separate u-boot
events from coreboot events in the timer trace.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/coreboot/Makefile
arch/x86/cpu/coreboot/coreboot.c
arch/x86/cpu/coreboot/timestamp.c [new file with mode: 0644]
arch/x86/include/asm/arch-coreboot/timestamp.h [new file with mode: 0644]