X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fbootcount%2FKconfig;h=0356f8ba1815edfe01dba33ad2229019aea2adfd;hb=4d131cdb6762694fc1a66d6b3e39a82f9ec691cf;hp=b7c29f2fd30de36103f218ae65b3559a32b49f70;hpb=8bf3c2442b59aedd1e58b7013fc12180cab0b541;p=oweals%2Fu-boot.git diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index b7c29f2fd3..0356f8ba18 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -96,6 +96,23 @@ config DM_BOOTCOUNT_RTC Accesses to the backing store are performed using the write16 and read16 ops of DM RTC devices. +config DM_BOOTCOUNT_I2C_EEPROM + bool "Support i2c eeprom devices as a backing store for bootcount" + depends on I2C_EEPROM + help + Enabled reading/writing the bootcount in a DM i2c eeprom device. + The wrapper device is to be specified with the compatible string + 'u-boot,bootcount-i2c-eeprom' and the 'i2c-eeprom'-property (a phandle + pointing to the underlying i2c eeprom device) and an optional 'offset' + property are supported. + +config BOOTCOUNT_MEM + bool "Support memory based bootcounter" + help + Enabling Memory based bootcount, typically in a SoC register which + is not cleared on softreset. + compatible = "u-boot,bootcount"; + endmenu endif