X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fbootcount%2FKconfig;fp=drivers%2Fbootcount%2FKconfig;h=8c19ae610bb3493a9da6b49dcc41c7c6cd456e15;hb=6cdd70eb52cc597717f549cd1b04bb85cc7a26a5;hp=eabfd132ad22350f4da799245dec1edbb6a854f5;hpb=ff5410d34b1ce3fa3785ecfd785704cfccc30938;p=oweals%2Fu-boot.git diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index eabfd132ad..8c19ae610b 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -46,6 +46,15 @@ config BOOTCOUNT_RAM Store the bootcount in DRAM protected against against bit errors due to short power loss or holding a system in RESET. +config BOOTCOUNT_I2C + bool "Boot counter on I2C device" + help + Enable support for the bootcounter on an i2c (like RTC) device. + CONFIG_SYS_I2C_RTC_ADDR = i2c chip address + CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for + the bootcounter. + CONFIG_BOOTCOUNT_ALEN = address len + endchoice config SYS_BOOTCOUNT_SINGLEWORD