]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/bootcount/Kconfig
Prepare for multiple bootcount drivers
[people/ms/u-boot.git] / drivers / bootcount / Kconfig
index c9d627cce2ba47eb9562f118b3326a83113421ec..26fec899bba2dace7ef08a2e8986a8e5a5c443c4 100644 (file)
@@ -2,16 +2,16 @@
 # Boot count configuration
 #
 
-menu "Boot count support"
-
-config BOOTCOUNT
-       bool "Enable Boot count support"
+menuconfig BOOTCOUNT_LIMIT
+       bool "Enable support for checking boot count limit"
        help
-         Enable boot count support, which provides the ability to store the
-         number of times the board has booted on a number of different
-         persistent storage mediums.
+         Enable checking for exceeding the boot count limit.
+         More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
+
+if BOOTCOUNT_LIMIT
 
-if BOOTCOUNT
+choice
+       prompt "Boot count device"
 
 config BOOTCOUNT_EXT
        bool "Boot counter on EXT filesystem"
@@ -19,7 +19,13 @@ config BOOTCOUNT_EXT
          Add support for maintaining boot count in a file on an EXT
          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
        string "Interface on which to find boot counter EXT filesystem"
@@ -52,7 +58,3 @@ config SYS_BOOTCOUNT_ADDR
          Set the address used for reading and writing the boot counter.
 
 endif
-
-endif
-
-endmenu