
This is a revised version of my proposal[1].
[1] https://lists.denx.de/pipermail/u-boot/2018-July/333534.html
VMs provided by qemu for arm are equiped with PL031 device. In patch#1, pl031 driver is converted to driver model, and in patch#2, this driver is enabled in defconfig of qemu-arm.
This patch set is motivated by running UEFI SCT(Self-Certification Test) and measuring time on u-boot on qemu-arm. Heinrich has already posted UEFI's GetTime() implementation.
Changes in v2(July 4, 2018) * based on Heinrich's comments, * remove legacy mode interface * enable the driver in defconfig
AKASHI Takahiro (2): rtc: pl031: convert the driver to driver model arm: qemu-arm: enable PL031 (RTC) in defconfig
configs/qemu_arm64_defconfig | 2 + configs/qemu_arm_defconfig | 2 + drivers/rtc/Kconfig | 6 ++ drivers/rtc/pl031.c | 109 +++++++++++++++++---------- include/dm/platform_data/rtc_pl031.h | 12 +++ 5 files changed, 91 insertions(+), 40 deletions(-) create mode 100644 include/dm/platform_data/rtc_pl031.h