On Mon, 5 Jan 2026 at 11:20, Kuan-Wei Chiu <[email protected]> wrote: > > 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]> > --- > Changes in v5: > - Rebase on u-boot/next branch. > > MAINTAINERS | 6 +++ > drivers/timer/Kconfig | 8 ++++ > drivers/timer/Makefile | 1 + > drivers/timer/goldfish_timer.c | 81 ++++++++++++++++++++++++++++++++++ > include/goldfish_timer.h | 13 ++++++ > 5 files changed, 109 insertions(+) > create mode 100644 drivers/timer/goldfish_timer.c > create mode 100644 include/goldfish_timer.h
Reviewed-by: Simon Glass <[email protected]> You can also implement timer_get_boot_us() if you want to use bootstage.

