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