Prepare for multiple bootcount drivers
Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
This commit is contained in:
parent
3dccc10ee1
commit
c1e1c1eca1
@ -2,29 +2,30 @@
|
|||||||
# Boot count configuration
|
# Boot count configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
menu "Boot count support"
|
menuconfig BOOTCOUNT_LIMIT
|
||||||
|
|
||||||
config BOOTCOUNT_LIMIT
|
|
||||||
bool "Enable support for checking boot count limit"
|
bool "Enable support for checking boot count limit"
|
||||||
help
|
help
|
||||||
Enable checking for exceeding the boot count limit.
|
Enable checking for exceeding the boot count limit.
|
||||||
More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
|
More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
|
||||||
|
|
||||||
config SYS_BOOTCOUNT_SINGLEWORD
|
|
||||||
bool "Use single word to pack boot count and magic value"
|
|
||||||
help
|
|
||||||
This option enables packing boot count magic value and boot count
|
|
||||||
into single word (32 bits).
|
|
||||||
|
|
||||||
if BOOTCOUNT_LIMIT
|
if BOOTCOUNT_LIMIT
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Boot count device"
|
||||||
|
|
||||||
config BOOTCOUNT_EXT
|
config BOOTCOUNT_EXT
|
||||||
bool "Boot counter on EXT filesystem"
|
bool "Boot counter on EXT filesystem"
|
||||||
help
|
help
|
||||||
Add support for maintaining boot count in a file on an EXT
|
Add support for maintaining boot count in a file on an EXT
|
||||||
filesystem.
|
filesystem.
|
||||||
|
|
||||||
if BOOTCOUNT_EXT
|
endchoice
|
||||||
|
|
||||||
|
config SYS_BOOTCOUNT_SINGLEWORD
|
||||||
|
bool "Use single word to pack boot count and magic value"
|
||||||
|
help
|
||||||
|
This option enables packing boot count magic value and boot count
|
||||||
|
into single word (32 bits).
|
||||||
|
|
||||||
config SYS_BOOTCOUNT_EXT_INTERFACE
|
config SYS_BOOTCOUNT_EXT_INTERFACE
|
||||||
string "Interface on which to find boot counter EXT filesystem"
|
string "Interface on which to find boot counter EXT filesystem"
|
||||||
@ -57,7 +58,3 @@ config SYS_BOOTCOUNT_ADDR
|
|||||||
Set the address used for reading and writing the boot counter.
|
Set the address used for reading and writing the boot counter.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
endmenu
|
|
||||||
|
Loading…
Reference in New Issue
Block a user