xref: /openbmc/u-boot/drivers/bootcount/Kconfig (revision 4e97e257)
1#
2# Boot count configuration
3#
4
5menu "Boot count support"
6
7config BOOTCOUNT
8	bool "Enable Boot count support"
9	help
10	  Enable boot count support, which provides the ability to store the
11	  number of times the board has booted on a number of different
12	  persistent storage mediums.
13
14if BOOTCOUNT
15
16config BOOTCOUNT_EXT
17	bool "Boot counter on EXT filesystem"
18	help
19	  Add support for maintaining boot count in a file on an EXT
20	  filesystem.
21
22if BOOTCOUNT_EXT
23
24config SYS_BOOTCOUNT_EXT_INTERFACE
25	string "Interface on which to find boot counter EXT filesystem"
26	default "mmc"
27	depends on BOOTCOUNT_EXT
28	help
29	  Set the interface to use when locating the filesystem to use for the
30	  boot counter.
31
32config SYS_BOOTCOUNT_EXT_DEVPART
33	string "Partition of the boot counter EXT filesystem"
34	default "0:1"
35	depends on BOOTCOUNT_EXT
36	help
37	  Set the partition to use when locating the filesystem to use for the
38	  boot counter.
39
40config SYS_BOOTCOUNT_EXT_NAME
41	string "Path and filename of the EXT filesystem based boot counter"
42	default "/boot/failures"
43	depends on BOOTCOUNT_EXT
44	help
45	  Set the filename and path of the file used to store the boot counter.
46
47config SYS_BOOTCOUNT_ADDR
48	hex "RAM address used for reading and writing the boot counter"
49	default 0x7000A000
50	depends on BOOTCOUNT_EXT
51	help
52	  Set the address used for reading and writing the boot counter.
53
54endif
55
56endif
57
58endmenu
59