diff options
author | Marek Vasut <marex@denx.de> | 2018-10-11 00:13:54 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-10-19 14:16:43 -0400 |
commit | 758694ff076255115b6cd936b13108db3773ee57 (patch) | |
tree | 1971435494cc09e1c1e1f481d41872c569d76343 /drivers/bootcount/Kconfig | |
parent | 0533fb8b3f81051a5d18c6438b3f8fbb4bc6c84d (diff) | |
download | u-boot-758694ff076255115b6cd936b13108db3773ee57.zip u-boot-758694ff076255115b6cd936b13108db3773ee57.tar.gz u-boot-758694ff076255115b6cd936b13108db3773ee57.tar.bz2 |
bootcount: Make bootcount magic configurable
Add new Kconfig option, SYS_BOOTCOUNT_MAGIC, to select the boot
counter magic word. This can be useful ie. in case the entire
boot counter register is not usable.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/bootcount/Kconfig')
-rw-r--r-- | drivers/bootcount/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index 9a0bd51..6703363 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -127,4 +127,10 @@ config SYS_BOOTCOUNT_ADDR help Set the address used for reading and writing the boot counter. +config SYS_BOOTCOUNT_MAGIC + hex "Magic value for the boot counter" + default 0xB001C041 + help + Set the magic value used for the boot counter. + endif |