From 610e2e6faf3f7c1d106378a642976295ea1d5c4c Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 25 Jan 2018 14:02:33 -0700 Subject: libpayload: allow x86 devices to provide non-tsc implementation Make is so that a different timer source can be provided instead of TSC on x86 platforms. BUG=b:72378235,b:72170796 Change-Id: I6faeecf7624a5aa4e1af8862036f1fbd2f54eb51 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/23435 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Furquan Shaikh --- payloads/libpayload/drivers/timer/Kconfig | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/payloads/libpayload/drivers/timer/Kconfig b/payloads/libpayload/drivers/timer/Kconfig index bcf4b06e39..9e274ee00e 100644 --- a/payloads/libpayload/drivers/timer/Kconfig +++ b/payloads/libpayload/drivers/timer/Kconfig @@ -10,15 +10,14 @@ ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. -config TIMER_RDTSC - bool - default y - depends on ARCH_X86 - choice prompt "Timer driver" - default TIMER_NONE - depends on !ARCH_X86 + default TIMER_NONE if !ARCH_X86 + default TIMER_RDTSC if ARCH_X86 + +config TIMER_RDTSC + bool "x86 rdtsc" + depends on ARCH_X86 config TIMER_NONE bool "None" -- cgit v1.2.3