> On 28 Nov 2018, at 0.00, Philipp Tomsich > <[email protected]> wrote: > > > 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
While true in v1, drivers/rtc/rv3029.c is not modified in this patchset. > * adds a bootcount-method interfacing back into DM devices (implementing > support for the RTC uclass as of now). > > > Changes in v2: > - changed to provide a UCLASS-based implementation, as requested by > SJG in his earlier review > - split off the RV3029 driver into a separate series > > Philipp Tomsich (2): > bootcount: add uclass for bootcount > bootcount: add a DM RTC backing store for bootcount > Reviewed-by: Ian Ray <[email protected]> > doc/device-tree-bindings/chosen.txt | 30 ++++++++++++ > drivers/bootcount/Kconfig | 28 +++++++++++ > drivers/bootcount/Makefile | 3 ++ > drivers/bootcount/bootcount-uclass.c | 93 ++++++++++++++++++++++++++++++++++++ > drivers/bootcount/rtc.c | 89 ++++++++++++++++++++++++++++++++++ > include/bootcount.h | 48 +++++++++++++++++++ > include/dm/uclass-id.h | 1 + > 7 files changed, 292 insertions(+) > create mode 100644 drivers/bootcount/bootcount-uclass.c > create mode 100644 drivers/bootcount/rtc.c > > -- > 2.1.4 > _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

