summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-07 07:41:49 +0300
committerBin Meng <bmeng.cn@gmail.com>2019-12-15 06:44:09 +0300
commit77dd7c6854f3bd8ddc422f0cb1953071fe00dc6c (patch)
tree9f20790502407316911d7bab7b2f5b69057e0a05 /lib
parentdd0edcb2508b9abcf828baede32e6b3da5fc0c8a (diff)
downloadu-boot-77dd7c6854f3bd8ddc422f0cb1953071fe00dc6c.tar.xz
x86: timer: use a timer base of 0
On x86 platforms the timer is reset to 0 when the SoC is reset. Having this as the timer base is useful since it provides an indication of how long it takes before U-Boot is running. When U-Boot sets the timer base to something else, time is lost and we no-longer have an accurate account of the time since reset. This particularly affects bootstage. Change the default to not read the timer base, leaving it at 0. Add an option for when U-Boot is the secondary bootloader. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efi/Kconfig b/lib/efi/Kconfig
index 919e314a0c..93b8564492 100644
--- a/lib/efi/Kconfig
+++ b/lib/efi/Kconfig
@@ -1,6 +1,7 @@
config EFI
bool "Support running U-Boot from EFI"
depends on X86
+ imply X86_TSC_READ_BASE
help
U-Boot can be started from EFI on certain platforms. This allows
EFI to perform most of the system init and then jump to U-Boot for