hw: rtc: Add Goldfish RTC device
commit9a5b40b84279d60c0d93e5bb174fc9b49f901c91
authorAnup Patel <Anup.Patel@wdc.com>
Wed, 6 Nov 2019 11:56:36 +0000 (6 11:56 +0000)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 10 Feb 2020 20:01:37 +0000 (10 12:01 -0800)
treef145c21957042bbbdff68fe4f81b5a0b3266bf05
parentae4a70c07196b76a67b772318b714ce910e10004
hw: rtc: Add Goldfish RTC device

This patch adds model for Google Goldfish virtual platform RTC device.

We will be adding Goldfish RTC device to the QEMU RISC-V virt machine
for providing real date-time to Guest Linux. The corresponding Linux
driver for Goldfish RTC device is already available in upstream Linux.

For now, VM migration support is available but untested for Goldfish RTC
device. It will be hardened in-future when we implement VM migration for
KVM RISC-V.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
hw/rtc/Kconfig
hw/rtc/Makefile.objs
hw/rtc/goldfish_rtc.c [new file with mode: 0644]
hw/rtc/trace-events
include/hw/rtc/goldfish_rtc.h [new file with mode: 0644]