x86: Add function to read time stamp counter
authorVadim Bendebury <vbendeb@chromium.org>
Tue, 23 Oct 2012 18:04:32 +0000 (18:04 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:38 +0000 (14:30 -0800)
commit2f899e03a94cac4b092e4c013c6afda73178cc9f
tree0b849b105c20f56c6b173f11bb2beeee4e0d4928
parent57be9172fc87fa156973faadb7b74c36ae5c52e7
x86: Add function to read time stamp counter

Put this function in the u-boot-x86.h header file. We could instead create
timer.h perhaps.

We support setting a base time, and reading the time relative to this base.

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/include/asm/u-boot-x86.h
arch/x86/lib/timer.c