Based on master, at: f29ccc287a Add the DS1339 RTC as a DS1338 variant. Improve the DS1338 implementation with support for the clock-halt bit, and a "persist-on-reset" property keeping the registers across a reset.
New qtests for the DS1339, plus DS1338 cases for the register map. The DS1338 vmstate goes from version 2 to 3, but older streams still load fine. Signed-off-by: Emmanuel Blot <[email protected]> --- Emmanuel Blot (19): hw/rtc: ds1338: program the clock from the time registers hw/rtc: ds1338: implement the DS1338 clock-halt bit hw/rtc: ds1338: refresh the user registers on a read rollover only hw/rtc: ds1338: add a persist-on-reset property tests/qtest: ds1338: cover the DS1338-specific register map tests/qtest: ds1338: cover the power-on register defaults tests/qtest: ds1338: cover the clock-halt bit tests/qtest: ds1338: cover persist-on-reset tests/qtest: ds1338: cover the reserved bits of the time registers hw/rtc: ds1338: add DS1339 variant tests/qtest: ds1339: add RTC test tests/qtest: ds1339: cover power-on defaults and reserved-bit masking tests/qtest: ds1339: cover oscillator stop/restart and time programming tests/qtest: ds1339: cover the Century bit tests/qtest: ds1339: cover the end-of-month rollover tests/qtest: ds1339: cover the 12-hour format tests/qtest: ds1339: cover the day-of-week counter tests/qtest: ds1339: cover persist-on-reset tests/qtest: ds1339: cover the migration round trip hw/rtc/ds1338.c | 353 ++++++++++++++++++++++------ include/hw/rtc/ds1338.h | 3 +- tests/qtest/ds1338-test.c | 191 ++++++++++++++- tests/qtest/ds1339-test.c | 581 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qtest/meson.build | 1 + 5 files changed, 1054 insertions(+), 75 deletions(-) --- base-commit: f29ccc287a6cfdd51d3a4fd17fbe9af3310a0ac5 change-id: 20261105-rtc-ds1339-35ebbcd86e4b Best regards, -- Emmanuel Blot <[email protected]>
