coreboot-kgpe-d16/payloads/libpayload/drivers/timer
Tristan Shieh a76e6542d1 mediatek: Use the 64-bit timer
GPT4 is a 32-bit timer and the counter of GPT4 will overflow in about
330 seconds (0xffffffff / 13MHz). Timer and delay functions will not
work properly if the counter overflows. To fix that we should use the
64-bit timer (GPT6).

BUG=b:80501386
BRANCH=none
Test=emerge-elm coreboot; emerge-kukui coreboot

Change-Id: I9f080e47253a1b1bab4636a45cb86c8666a25302
Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32245
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: You-Cheng Syu <youcheng@google.com>
2019-04-17 04:32:26 +00:00
..
Kconfig mediatek: Use the 64-bit timer 2019-04-17 04:32:26 +00:00
arm64_arch_timer.c libpayload: Add Timer for sdm845 2018-05-01 23:35:25 +00:00
generic.c libpayload: Get current tick from high register in generic timer 2016-12-21 20:26:39 +01:00
img_pistachio.c libpayload/drivers/timer: Use 64 bits to prevent overflow 2019-04-08 14:16:02 +00:00
rdtsc.c libpayload: timer: cast cpu_khz to make sure 64bit math is used 2017-01-06 18:40:44 +01:00