Commit c1e1c1eca1dc34b25dbaa15bf0c25b7e85a5deb8

Authored by Alex Kiernan
Committed by Tom Rini
1 parent 3dccc10ee1

Prepare for multiple bootcount drivers

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>

Showing 1 changed file with 11 additions and 14 deletions Side-by-side Diff

drivers/bootcount/Kconfig
... ... @@ -2,30 +2,31 @@
2 2 # Boot count configuration
3 3 #
4 4  
5   -menu "Boot count support"
6   -
7   -config BOOTCOUNT_LIMIT
  5 +menuconfig BOOTCOUNT_LIMIT
8 6 bool "Enable support for checking boot count limit"
9 7 help
10 8 Enable checking for exceeding the boot count limit.
11 9 More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
12 10  
13   -config SYS_BOOTCOUNT_SINGLEWORD
14   - bool "Use single word to pack boot count and magic value"
15   - help
16   - This option enables packing boot count magic value and boot count
17   - into single word (32 bits).
18   -
19 11 if BOOTCOUNT_LIMIT
20 12  
  13 +choice
  14 + prompt "Boot count device"
  15 +
21 16 config BOOTCOUNT_EXT
22 17 bool "Boot counter on EXT filesystem"
23 18 help
24 19 Add support for maintaining boot count in a file on an EXT
25 20 filesystem.
26 21  
27   -if BOOTCOUNT_EXT
  22 +endchoice
28 23  
  24 +config SYS_BOOTCOUNT_SINGLEWORD
  25 + bool "Use single word to pack boot count and magic value"
  26 + help
  27 + This option enables packing boot count magic value and boot count
  28 + into single word (32 bits).
  29 +
29 30 config SYS_BOOTCOUNT_EXT_INTERFACE
30 31 string "Interface on which to find boot counter EXT filesystem"
31 32 default "mmc"
... ... @@ -57,8 +58,4 @@
57 58 Set the address used for reading and writing the boot counter.
58 59  
59 60 endif
60   -
61   -endif
62   -
63   -endmenu