summaryrefslogtreecommitdiff
path: root/drivers/timer/Kconfig
diff options
context:
space:
mode:
authorKuan-Wei Chiu <[email protected]>2026-01-07 20:18:31 +0000
committerTom Rini <[email protected]>2026-02-02 14:24:40 -0600
commit909f717eaf299a97fb87307e8606f3fdc6cb0c14 (patch)
tree6221580c2b98631290f8df00f3c9f842a5cf31f9 /drivers/timer/Kconfig
parentbf55b84736d6b220dae11e3b1e7a670918d9daee (diff)
timer: Add Goldfish timer driver
Add support for the Goldfish timer driver. This driver utilizes the Goldfish RTC hardware to provide a nanosecond-resolution timer. This virtual device is commonly found in QEMU virtual machines (such as the m68k virt machine) and Android emulators. The driver implements the standard U-Boot timer UCLASS interface, exposing a 64-bit monotonically increasing counter with a 1GHz clock rate derived from the RTC registers. Signed-off-by: Kuan-Wei Chiu <[email protected]> Tested-by: Daniel Palmer <[email protected]> Reviewed-by: Yao Zi <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Angelo Dureghello <[email protected]>
Diffstat (limited to 'drivers/timer/Kconfig')
-rw-r--r--drivers/timer/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig
index f9511503b02..a84a0dc0539 100644
--- a/drivers/timer/Kconfig
+++ b/drivers/timer/Kconfig
@@ -340,4 +340,12 @@ config STARFIVE_TIMER
Select this to enable support for the timer found on
Starfive SoC.
+config GOLDFISH_TIMER
+ bool "Goldfish Timer support"
+ depends on TIMER
+ help
+ Select this to enable support for the Goldfish Timer.
+ It uses the Goldfish RTC hardware to provide a nanosecond-resolution
+ timer, commonly found in QEMU virt machines.
+
endmenu