Skip to content
Snippets Groups Projects
Commit 6dbe0cce authored by Vadim Bendebury's avatar Vadim Bendebury Committed by Simon Glass
Browse files

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: default avatarVadim Bendebury <vbendeb@chromium.org>
Signed-off-by: default avatarStefan Reinauer <reinauer@chromium.org>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 2f899e03
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment