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