Skip to content

subject: arm: qemu-arm: enable PL031 (RTC)

AKASHI Takahiro u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v22 patches 0 repliesSuperseded
  3. v11 patch 0 repliesSuperseded

Changes in v3 from the cover letter

* 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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rtc: compile date.c if DM_RTCdrivers/rtc/date.c+2 -12 replies
2/3rtc: pl031: convert the driver to driver modeldrivers/rtc/Kconfig drivers/rtc/pl031.c scripts/config_whitelist.txt+86 -472 replies
2/3rtc: pl031: convert the driver to driver model+0 -01 reply
2/3rtc: pl031: convert the driver to driver model+0 -02 replies
3/3arm: qemu-arm: enable RTC (PL031) by defaultarch/arm/Kconfig+2 -01 reply

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchHeinrich Schuchardt
1/3R-b
2/3T-b
2/3T-b
2/3T-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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

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(-)
Signature · 1 line
2.17.0