]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/riscv/conf/GENERIC
Add Goldfish RTC device driver for RISC-V
authorJessica Clarke <jrtc27@FreeBSD.org>
Sun, 26 Jul 2020 18:15:16 +0000 (18:15 +0000)
committerJessica Clarke <jrtc27@FreeBSD.org>
Sun, 26 Jul 2020 18:15:16 +0000 (18:15 +0000)
commitd63a631e72441687910b8ec4a9396ac5d05029fb
tree2c64fb984dfec51b138685c4753ec1305c402c7f
parente9c003e51a4747176dfc3dd4d5f3ce2b10871e10
Add Goldfish RTC device driver for RISC-V

This device was originally used as part of the goldfish virtual hardware
platform used for emulating Android on QEMU, but is now also used as the
RTC for the RISC-V virt machine in QEMU. It provides a simple 64-bit
nanosecond timer exposed via a pair of memory-mapped 32-bit registers,
although only with 1s granularity.

Reviewed by: brooks (mentor), jhb (mentor), kp
Approved by: brooks (mentor), jhb (mentor), kp
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D25717
sys/conf/files
sys/dev/goldfish/goldfish_rtc.c [new file with mode: 0644]
sys/riscv/conf/GENERIC