summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2018-01-25 14:02:33 -0700
committerAaron Durbin <adurbin@chromium.org>2018-01-26 00:23:28 +0000
commit610e2e6faf3f7c1d106378a642976295ea1d5c4c (patch)
treebae61981b8ddc8b975d8f16aa7fc0ef132c7ea61 /payloads/libpayload
parent51e4c1a76cafa0ddd429ffa78d0e6fdee179f731 (diff)
downloadcoreboot-610e2e6faf3f7c1d106378a642976295ea1d5c4c.tar.xz
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 <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/23435 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/drivers/timer/Kconfig13
1 files 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"