diff options
author | Tom Rini <trini@konsulko.com> | 2023-03-13 15:36:52 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-13 15:36:52 -0400 |
commit | 2684aad483f57fba10c245cf56614880e9f4657e (patch) | |
tree | 50d264f36cd5417e9af5e3b7ed5800f34b8c1320 /drivers/timer/tsc_timer.c | |
parent | bcf343146ff365a88481b9a80920ed146c6dee5b (diff) | |
parent | 61a621054194216eefc1a6f5af0a63aa265bbaef (diff) |
Merge tag 'efi-next-20230313' of https://source.denx.de/u-boot/custodians/u-boot-efi into next
Pull request efi-next-20230313
UEFI:
* Improve graphics support in EFI app
Others:
* x86: Add a few more items to bdinfo
* video: Remove duplicate cursor-positioning function
* video: Clear the vidconsole rather than the video
Diffstat (limited to 'drivers/timer/tsc_timer.c')
-rw-r--r-- | drivers/timer/tsc_timer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index 192c7b71a5a..f86a0b86921 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -404,6 +404,15 @@ static void tsc_timer_ensure_setup(bool early) if (!gd->arch.clock_rate) { unsigned long fast_calibrate; + /** + * There is no obvious way to obtain this information from EFI + * boot services. This value was measured on a Framework Laptop + * which has a 12th Gen Intel Core + */ + if (IS_ENABLED(CONFIG_EFI_APP)) { + fast_calibrate = 2750; + goto done; + } fast_calibrate = native_calibrate_tsc(); if (fast_calibrate) goto done; |