mbox series

[U-Boot,v3,0/3] subject: arm: qemu-arm: enable PL031 (RTC)

Message ID 20180711090608.11526-1-takahiro.akashi@linaro.org
Headers show
Series subject: arm: qemu-arm: enable PL031 (RTC) | expand

Message

AKASHI Takahiro July 11, 2018, 9:06 a.m. UTC
Virtual Machines provided by qemu for arm are already equipped with
RTCdevice (PL031). With this patch set, PL031 driver is converted to
driver model and by default enabled on qemu-arm.
It allows us not only to use date command but also to enable UEFI's
GetTime/SetTime() services.

This work is motivated by running UEFI SCT(Self-Certification Test)
and measuring time. Heinrich has already posted UEFI's GetTime()
implementation.

This is a revised version of my proposal[1].

 [1] https://lists.denx.de/pipermail/u-boot/2018-July/333534.html


Changes in v3 (July 11, 2018)
* compile drivers/rtc/date.c if DM_RTC
* rename pl031_rtc_xxx to pl031_xxx
* make struct pl031_platdata private to the driver
* add probe function, removing pl031_initted variable
* use readl/writel() instead of private macros
* add a debug message to pl031_rtc_set()
* remove CONFIG_SYS_RTC_PL031_BASE from config_whitelist.txt
* enable RTC_PL031 for QEMU_ARM in arch/arm/Kconfig

Changes in v2 (July 4, 2018)
* based on Heinrich's comments,
* remove legacy mode interface
* enable the driver in defconfig

AKASHI Takahiro (3):
  rtc: compile date.c if DM_RTC
  rtc: pl031: convert the driver to driver model
  arm: qemu-arm: enable RTC (PL031) by default

 arch/arm/Kconfig             |   2 +
 drivers/rtc/Kconfig          |   6 ++
 drivers/rtc/date.c           |   3 +-
 drivers/rtc/pl031.c          | 126 ++++++++++++++++++++++-------------
 scripts/config_whitelist.txt |   1 -
 5 files changed, 90 insertions(+), 48 deletions(-)