[U-Boot] EXT: [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support

Ray, Ian (GE Healthcare) ian.ray at ge.com
Wed Nov 28 06:29:00 UTC 2018



> On 28 Nov 2018, at 0.00, Philipp Tomsich <philipp.tomsich at theobroma-systems.com> 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 <ian.ray at ge.com>


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



More information about the U-Boot mailing list