All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 0/3] subject: arm: qemu-arm: enable PL031 (RTC)
@ 2018-07-11  9:06 AKASHI Takahiro
  2018-07-11  9:06 ` [U-Boot] [PATCH v3 1/3] rtc: compile date.c if DM_RTC AKASHI Takahiro
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: AKASHI Takahiro @ 2018-07-11  9:06 UTC (permalink / raw)
  To: u-boot


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(-)

-- 
2.17.0

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-09-05  5:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-11  9:06 [U-Boot] [PATCH v3 0/3] subject: arm: qemu-arm: enable PL031 (RTC) AKASHI Takahiro
2018-07-11  9:06 ` [U-Boot] [PATCH v3 1/3] rtc: compile date.c if DM_RTC AKASHI Takahiro
2018-07-11 10:35   ` Heinrich Schuchardt
2018-07-26 19:53   ` [U-Boot] [U-Boot,v3,1/3] " Tom Rini
2018-07-11  9:06 ` [U-Boot] [PATCH v3 2/3] rtc: pl031: convert the driver to driver model AKASHI Takahiro
2018-07-11 10:45   ` Heinrich Schuchardt
2018-07-21  4:53   ` Heinrich Schuchardt
2018-07-23  7:17     ` AKASHI Takahiro
2018-09-04 17:18       ` Heinrich Schuchardt
2018-09-05  3:06         ` AKASHI Takahiro
2018-09-05  3:15           ` Tom Rini
2018-09-05  5:56             ` Heinrich Schuchardt
2018-07-11  9:06 ` [U-Boot] [PATCH v3 3/3] arm: qemu-arm: enable RTC (PL031) by default AKASHI Takahiro
2018-07-11 10:36   ` Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.