]> git.baikalelectronics.ru Git - uboot.git/commit
bootcount: add a DM RTC backing store for bootcount
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 27 Nov 2018 22:00:19 +0000 (23:00 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 10 Dec 2018 09:04:45 +0000 (10:04 +0100)
commitf685bd1124fbfcac57bac63bf83fe282a2830eca
treeb81d8944dfeb384edeca966e07c6d23c017093a3
parent7fcf35efd69db11d8fce33b54c1e1e590f83229a
bootcount: add a DM RTC backing store for bootcount

This implements a driver using a RTC-based backing store for the DM
bootcount implementation.  The node configuring this feature will be
compatible with 'u-boot,bootcount-rtc' and the underlying RTC device
shall be reference through the property 'rtc'. An offset into the RTC
device's register space can be provided through the 'offset' property.

Tested on a RK3399-Q7 on a Flamingo carrier board using the SRAM area
of the carrier board's RV3029 RTC.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/bootcount/Kconfig
drivers/bootcount/Makefile
drivers/bootcount/rtc.c [new file with mode: 0644]