u-boot-brain/drivers/bootcount
Frédéric Danis df928f8549 bootcount_ext: Add flag to enable/disable bootcount
After a successful upgrade, multiple problem during boot sequence may
trigger the altbootcmd process.
This patch adds a version and an upgrade_available entries to the
bootcount file to enable/disable the bootcount check.
When failing to read the bootcount file it will consider that bootcount is
enabled, acting as previously, and update the file accordingly.

The bootcount file is only saved when `upgrade_available` is true, this
allows to save writes to the filesystem.

Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-04-24 10:10:00 -04:00
..
bootcount_at91.c bootcount: Make bootcount magic configurable 2018-10-19 14:16:43 -04:00
bootcount_davinci.c bootcount: Make bootcount magic configurable 2018-10-19 14:16:43 -04:00
bootcount_env.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
bootcount_ext.c bootcount_ext: Add flag to enable/disable bootcount 2020-04-24 10:10:00 -04:00
bootcount_i2c.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootcount_ram.c common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
bootcount-uclass.c bootcount: add uclass for bootcount 2018-12-10 10:04:44 +01:00
bootcount.c bootcounter: add DM support for memory based bootcounter 2020-03-16 08:05:00 +01:00
i2c-eeprom.c bootcount: add a DM i2c eeprom backing store for bootcount 2020-01-10 10:25:13 -05:00
Kconfig bootcounter: add DM support for memory based bootcounter 2020-03-16 08:05:00 +01:00
Makefile bootcounter: add DM support for memory based bootcounter 2020-03-16 08:05:00 +01:00
rtc.c bootcount: add a DM RTC backing store for bootcount 2018-12-10 10:04:45 +01:00