[U-Boot] [PATCH 0/3] Update RV3029 driver to DM and add DM-backed bootcount support
Philipp Tomsich
philipp.tomsich at theobroma-systems.com
Tue Aug 14 09:50:59 UTC 2018
On one of our application-specific carrier boards, a MicroCrystal
RV3029 acts as an off-module battery-backed RTC for the RK3399-Q7.
The RV3029 is intended both to provide RTC services (to Linux) and
to store the bootcount in its battery-backed SRAM section.
To support this use-case, this series adds the following:
* replaces the existing RV3029 driver by a DM-based one (note that the
existing driver appears unused and didn't even have a Kconfig entry)
that closely mirrors its incarnation in Linux 4.17
* adds a bootcount-method interfacing back into DM devices (implementing
support for the RTC uclass as of now).
Philipp Tomsich (3):
rtc: rv3029: add to Kconfig
rtc: rv3029: update to support DM and sync with Linux 4.17
bootcount: add DM-based backing store for bootcount
doc/device-tree-bindings/chosen.txt | 27 ++
drivers/bootcount/Kconfig | 12 +
drivers/bootcount/Makefile | 1 +
drivers/bootcount/bootcount_dm.c | 93 ++++++
drivers/rtc/Kconfig | 10 +
drivers/rtc/rv3029.c | 579 +++++++++++++++++++++++++++---------
scripts/config_whitelist.txt | 1 -
7 files changed, 585 insertions(+), 138 deletions(-)
create mode 100644 drivers/bootcount/bootcount_dm.c
--
2.1.4
More information about the U-Boot
mailing list