[PATCH v3 2/6] timer: Add Goldfish timer driver

Daniel Palmer daniel at 0x0f.com
Wed Dec 31 04:49:07 CET 2025


Hi Kuan-Wei,

On Wed, 31 Dec 2025 at 01:01, Kuan-Wei Chiu <visitorckw at gmail.com> 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 <visitorckw at gmail.com>

>The link provided by Daniel [1] returned a 404 error.
>Since the implementation is straightforward, I wrote this driver from
>scratch.
>[1]: https://github.com/fifteenhex/u-boot/blob/mc68000/drivers/rtc/goldfish_timer.c

Oops, I moved it and force pushed. Sorry about that.

Works as expected.

Tested-by: Daniel Palmer <daniel at 0x0f.com>


More information about the U-Boot mailing list