]> git.sur5r.net Git - u-boot/blob - drivers/bootcount/Kconfig
Convert CONFIG_BOOTCOUNT_RAM to Kconfig
[u-boot] / drivers / bootcount / Kconfig
1 #
2 # Boot count configuration
3 #
4
5 menuconfig BOOTCOUNT_LIMIT
6         bool "Enable support for checking boot count limit"
7         help
8           Enable checking for exceeding the boot count limit.
9           More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
10
11 if BOOTCOUNT_LIMIT
12
13 choice
14         prompt "Boot count device"
15         default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX
16
17 config BOOTCOUNT_EXT
18         bool "Boot counter on EXT filesystem"
19         help
20           Add support for maintaining boot count in a file on an EXT
21           filesystem.
22
23 config BOOTCOUNT_AM33XX
24         bool "Boot counter in AM33XX RTC IP block"
25         depends on AM33XX || SOC_DA8XX
26         help
27           A bootcount driver for the RTC IP block found on many TI platforms.
28           This requires the RTC clocks, etc, to be enabled prior to use and
29           not all boards with this IP block on it will have the RTC in use.
30
31 config BOOTCOUNT_ENV
32         bool "Boot counter in environment"
33         help
34           If no softreset save registers are found on the hardware
35           "bootcount" is stored in the environment. To prevent a
36           saveenv on all reboots, the environment variable
37           "upgrade_available" is used. If "upgrade_available" is
38           0, "bootcount" is always 0, if "upgrade_available" is
39           1 "bootcount" is incremented in the environment.
40           So the Userspace Application must set the "upgrade_available"
41           and "bootcount" variable to 0, if a boot was successfully.
42
43 config BOOTCOUNT_RAM
44         bool "Boot counter in RAM"
45         help
46           Store the bootcount in DRAM protected against against bit errors
47           due to short power loss or holding a system in RESET.
48
49 endchoice
50
51 config SYS_BOOTCOUNT_SINGLEWORD
52         bool "Use single word to pack boot count and magic value"
53         help
54           This option enables packing boot count magic value and boot count
55           into single word (32 bits).
56
57 config SYS_BOOTCOUNT_EXT_INTERFACE
58         string "Interface on which to find boot counter EXT filesystem"
59         default "mmc"
60         depends on BOOTCOUNT_EXT
61         help
62           Set the interface to use when locating the filesystem to use for the
63           boot counter.
64
65 config SYS_BOOTCOUNT_EXT_DEVPART
66         string "Partition of the boot counter EXT filesystem"
67         default "0:1"
68         depends on BOOTCOUNT_EXT
69         help
70           Set the partition to use when locating the filesystem to use for the
71           boot counter.
72
73 config SYS_BOOTCOUNT_EXT_NAME
74         string "Path and filename of the EXT filesystem based boot counter"
75         default "/boot/failures"
76         depends on BOOTCOUNT_EXT
77         help
78           Set the filename and path of the file used to store the boot counter.
79
80 config SYS_BOOTCOUNT_ADDR
81         hex "RAM address used for reading and writing the boot counter"
82         default 0x7000A000
83         depends on BOOTCOUNT_EXT
84         help
85           Set the address used for reading and writing the boot counter.
86
87 endif