<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/timer/goldfish_timer.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/timer/goldfish_timer.c?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/timer/goldfish_timer.c?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-06-23T18:38:01Z</updated>
<entry>
<title>timer: goldfish: Return error when device address is invalid</title>
<updated>2026-06-23T18:38:01Z</updated>
<author>
<name>Kuan-Wei Chiu</name>
<email>visitorckw@gmail.com</email>
</author>
<published>2026-06-08T15:47:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2bc9c58e7f09e5c5383ad63f85f35b686d63c0bf'/>
<id>urn:sha1:2bc9c58e7f09e5c5383ad63f85f35b686d63c0bf</id>
<content type='text'>
goldfish_timer_of_to_plat() currently returns success even when
dev_read_addr() fails to find a valid address. This leaves plat-&gt;reg
unset and defers the failure to probe().

Return -EINVAL immediately when the address is FDT_ADDR_T_NONE so the
failure is reported at the of_to_plat stage where it belongs. This
aligns the driver with the recent fix introduced in the goldfish
serial driver by Naveen Kumar Chaudhary. [1]

Link: https://lore.kernel.org/u-boot/vgwnt6mnls3lf3zdm6mz5siztzkvppte4ykszbvifjzukvmksf@maaxe5agqpim/ [1]
Signed-off-by: Kuan-Wei Chiu &lt;visitorckw@gmail.com&gt;
</content>
</entry>
<entry>
<title>timer: goldfish: Use __raw_readl()</title>
<updated>2026-05-22T22:47:54Z</updated>
<author>
<name>Kuan-Wei Chiu</name>
<email>visitorckw@gmail.com</email>
</author>
<published>2026-05-16T07:39:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=75a1d7280a72d587d54b6af653234a96210f7177'/>
<id>urn:sha1:75a1d7280a72d587d54b6af653234a96210f7177</id>
<content type='text'>
The Goldfish timer registers are native endian, so they act as
big-endian on the m68k virt machine. Currently, this driver uses
readl(), which works by luck because it's currently broken on m68k.

Use __raw_readl() instead to avoid breaking this driver when the
endianness of readl() is fixed.

Signed-off-by: Kuan-Wei Chiu &lt;visitorckw@gmail.com&gt;
Tested-by: Daniel Palmer &lt;daniel@thingy.jp&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Daniel Palmer &lt;daniel@thingy.jp&gt;
</content>
</entry>
<entry>
<title>timer: Add Goldfish timer driver</title>
<updated>2026-02-02T20:24:40Z</updated>
<author>
<name>Kuan-Wei Chiu</name>
<email>visitorckw@gmail.com</email>
</author>
<published>2026-01-07T20:18:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=909f717eaf299a97fb87307e8606f3fdc6cb0c14'/>
<id>urn:sha1:909f717eaf299a97fb87307e8606f3fdc6cb0c14</id>
<content type='text'>
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 &lt;visitorckw@gmail.com&gt;
Tested-by: Daniel Palmer &lt;daniel@0x0f.com&gt;
Reviewed-by: Yao Zi &lt;me@ziyao.cc&gt;
Reviewed-by: Simon Glass &lt;simon.glass@canonical.com&gt;
Reviewed-by: Angelo Dureghello &lt;angelo@kernel-space.org&gt;
</content>
</entry>
</feed>
