diff -drupN a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig --- a/drivers/clocksource/Kconfig 2018-08-06 17:23:04.000000000 +0300 +++ b/drivers/clocksource/Kconfig 2022-06-12 05:28:14.000000000 +0300 @@ -91,9 +91,10 @@ config ORION_TIMER Enables the support for the Orion timer driver config SUN4I_TIMER - bool "Sun4i timer driver" if COMPILE_TEST + bool "Sun4i timer driver" depends on GENERIC_CLOCKEVENTS depends on HAS_IOMEM + default y select CLKSRC_MMIO help Enables support for the Sun4i timer. @@ -305,6 +306,14 @@ config ARM_ARCH_TIMER_EVTSTREAM This must be disabled for hardware validation purposes to detect any hardware anomalies of missing events. +config ARM_ARCH_TIMER_VCT_ACCESS + bool "Support for ARM architected timer virtual counter access in userspace" + default !ARM64 + depends on ARM_ARCH_TIMER + help + This option enables support for reading the ARM architected timer's + virtual counter in userspace. + config FSL_ERRATUM_A008585 bool "Workaround for Freescale/NXP Erratum A-008585" default y