]> git.ipfire.org Git - thirdparty/u-boot.git/commit
timer: Add Goldfish timer driver
authorKuan-Wei Chiu <visitorckw@gmail.com>
Wed, 7 Jan 2026 20:18:31 +0000 (20:18 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 2 Feb 2026 20:24:40 +0000 (14:24 -0600)
commit909f717eaf299a97fb87307e8606f3fdc6cb0c14
tree6221580c2b98631290f8df00f3c9f842a5cf31f9
parentbf55b84736d6b220dae11e3b1e7a670918d9daee
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 <visitorckw@gmail.com>
Tested-by: Daniel Palmer <daniel@0x0f.com>
Reviewed-by: Yao Zi <me@ziyao.cc>
Reviewed-by: Simon Glass <simon.glass@canonical.com>
Reviewed-by: Angelo Dureghello <angelo@kernel-space.org>
MAINTAINERS
drivers/timer/Kconfig
drivers/timer/Makefile
drivers/timer/goldfish_timer.c [new file with mode: 0644]
include/goldfish_timer.h [new file with mode: 0644]