Merge tag 'u-boot-rockchip-20200531' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / drivers / timer / Kconfig
index 5f4bc6edb67b256d3c097b0f50f088a34e2eebab..637024445c16e7da67bfa292eea0029056775d22 100644 (file)
@@ -127,6 +127,15 @@ config X86_TSC_TIMER_EARLY_FREQ
          hardware ways, nor got from device tree at the time when device
          tree is not available yet.
 
+config NOMADIK_MTU_TIMER
+       bool "Nomadik MTU Timer"
+       depends on TIMER
+       help
+         Enables support for the Nomadik Multi Timer Unit (MTU),
+         used in ST-Ericsson Ux500 SoCs.
+         The MTU provides 4 decrementing free-running timers.
+         At the moment, only the first timer is used by the driver.
+
 config OMAP_TIMER
        bool "Omap timer support"
        depends on TIMER
@@ -174,6 +183,29 @@ config X86_TSC_TIMER
        help
          Select this to enable Time-Stamp Counter (TSC) timer for x86.
 
+config X86_TSC_READ_BASE
+       bool "Read the TSC timer base on start-up"
+       depends on X86_TSC_TIMER
+       help
+         On x86 platforms the TSC timer tick starts at the value 0 on reset.
+         This it makes no sense to read the timer on boot and use that as the
+         base, since we will miss some time taken to load U-Boot, etc. This
+         delay is controlled by the SoC and we cannot reduce it, but for
+         bootstage we want to record the time since reset as accurately as
+         possible.
+
+         The only exception is when U-Boot is used as a secondary bootloader,
+         where this option should be enabled.
+
+config TPL_X86_TSC_TIMER_NATIVE
+       bool "x86 TSC timer uses native calibration"
+       depends on TPL && X86_TSC_TIMER
+       help
+         Selects native timer calibration for TPL and don't include the other
+         methods in the code. This helps to reduce code size in TPL and works
+         on fairly modern Intel chips. Code-size reductions is about 700
+         bytes.
+
 config MTK_TIMER
        bool "MediaTek timer support"
        depends on TIMER