mbox series

[0/2] arm: aspeed: Add RTC Model

Message ID 20190328062222.8409-1-joel@jms.id.au (mailing list archive)
Headers show
Series arm: aspeed: Add RTC Model | expand

Message

Joel Stanley March 28, 2019, 6:22 a.m. UTC
A model for the ASPEED BMC real time clock (RTC). The model is sufficient
for running the guest Linux kernel driver, and ticks in time with the
host when programmed.

It does not implement the alarm functionality, which includes the
interrupt.

Joel Stanley (2):
  hw: timer: Add ASPEED RTC device
  hw/arm/aspeed: Add RTC to SoC

 hw/arm/aspeed_soc.c           |  15 ++++
 hw/timer/Makefile.objs        |   2 +-
 hw/timer/aspeed_rtc.c         | 157 ++++++++++++++++++++++++++++++++++
 hw/timer/trace-events         |   4 +
 include/hw/arm/aspeed_soc.h   |   2 +
 include/hw/timer/aspeed_rtc.h |  31 +++++++
 6 files changed, 210 insertions(+), 1 deletion(-)
 create mode 100644 hw/timer/aspeed_rtc.c
 create mode 100644 include/hw/timer/aspeed_rtc.h