summaryrefslogtreecommitdiffstats
path: root/drivers/bootcount/Kconfig
diff options
context:
space:
mode:
authorSebastian Reichel <sebastian.reichel@collabora.com>2020-09-02 19:31:38 +0200
committerStefano Babic <sbabic@denx.de>2020-11-01 15:58:47 +0100
commitcfe894967718bc669574eaafcb5b38f313567fe0 (patch)
tree85618d2ef3d6f3d0d7f77a921f405d8f5b926656 /drivers/bootcount/Kconfig
parent0cc2a07879d9c64d8579ea8f5300ada570bd4719 (diff)
downloadu-boot-cfe894967718bc669574eaafcb5b38f313567fe0.tar.gz
u-boot-cfe894967718bc669574eaafcb5b38f313567fe0.tar.xz
u-boot-cfe894967718bc669574eaafcb5b38f313567fe0.zip
bootcount: add a DM SPI flash backing store for bootcount
This driver allows to use SPI flash as backing store for boot counter values with DM enabled. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/bootcount/Kconfig')
-rw-r--r--drivers/bootcount/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig
index c8e6fa7f89..b5ccea0d9c 100644
--- a/drivers/bootcount/Kconfig
+++ b/drivers/bootcount/Kconfig
@@ -108,6 +108,16 @@ config DM_BOOTCOUNT_I2C_EEPROM
pointing to the underlying i2c eeprom device) and an optional 'offset'
property are supported.
+config DM_BOOTCOUNT_SPI_FLASH
+ bool "Support SPI flash devices as a backing store for bootcount"
+ depends on DM_SPI_FLASH
+ help
+ Enabled reading/writing the bootcount in a DM SPI flash device.
+ The wrapper device is to be specified with the compatible string
+ 'u-boot,bootcount-spi-flash' and the 'spi-flash'-property (a phandle
+ pointing to the underlying SPI flash device) and an optional 'offset'
+ property are supported.
+
config BOOTCOUNT_MEM
bool "Support memory based bootcounter"
help