]> git.ipfire.org Git - u-boot.git/blame - drivers/bootcount/Kconfig
Integrate AT91 bootcount driver
[u-boot.git] / drivers / bootcount / Kconfig
CommitLineData
f31dac4e
IR
1#
2# Boot count configuration
3#
4
c1e1c1ec 5menuconfig BOOTCOUNT_LIMIT
d1ec9461
LM
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
3dccc10e 11if BOOTCOUNT_LIMIT
f31dac4e 12
c1e1c1ec
AK
13choice
14 prompt "Boot count device"
c35e2d91 15 default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX
bec8c647 16 default BOOTCOUNT_AT91 if AT91SAM9XE
c1e1c1ec 17
f31dac4e
IR
18config BOOTCOUNT_EXT
19 bool "Boot counter on EXT filesystem"
20 help
21 Add support for maintaining boot count in a file on an EXT
22 filesystem.
23
c35e2d91
AK
24config BOOTCOUNT_AM33XX
25 bool "Boot counter in AM33XX RTC IP block"
26 depends on AM33XX || SOC_DA8XX
27 help
28 A bootcount driver for the RTC IP block found on many TI platforms.
29 This requires the RTC clocks, etc, to be enabled prior to use and
30 not all boards with this IP block on it will have the RTC in use.
31
04c96ed2
AK
32config BOOTCOUNT_ENV
33 bool "Boot counter in environment"
34 help
35 If no softreset save registers are found on the hardware
36 "bootcount" is stored in the environment. To prevent a
37 saveenv on all reboots, the environment variable
38 "upgrade_available" is used. If "upgrade_available" is
39 0, "bootcount" is always 0, if "upgrade_available" is
40 1 "bootcount" is incremented in the environment.
41 So the Userspace Application must set the "upgrade_available"
42 and "bootcount" variable to 0, if a boot was successfully.
43
ff5410d3
AK
44config BOOTCOUNT_RAM
45 bool "Boot counter in RAM"
46 help
47 Store the bootcount in DRAM protected against against bit errors
48 due to short power loss or holding a system in RESET.
49
6cdd70eb
AK
50config BOOTCOUNT_I2C
51 bool "Boot counter on I2C device"
52 help
53 Enable support for the bootcounter on an i2c (like RTC) device.
54 CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
55 CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
56 the bootcounter.
57 CONFIG_BOOTCOUNT_ALEN = address len
58
bec8c647
AK
59config BOOTCOUNT_AT91
60 bool "Boot counter for Atmel AT91SAM9XE"
61 depends on AT91SAM9XE
62
c1e1c1ec
AK
63endchoice
64
65config SYS_BOOTCOUNT_SINGLEWORD
66 bool "Use single word to pack boot count and magic value"
67 help
68 This option enables packing boot count magic value and boot count
69 into single word (32 bits).
f31dac4e
IR
70
71config SYS_BOOTCOUNT_EXT_INTERFACE
72 string "Interface on which to find boot counter EXT filesystem"
73 default "mmc"
74 depends on BOOTCOUNT_EXT
75 help
76 Set the interface to use when locating the filesystem to use for the
77 boot counter.
78
79config SYS_BOOTCOUNT_EXT_DEVPART
80 string "Partition of the boot counter EXT filesystem"
81 default "0:1"
82 depends on BOOTCOUNT_EXT
83 help
84 Set the partition to use when locating the filesystem to use for the
85 boot counter.
86
87config SYS_BOOTCOUNT_EXT_NAME
88 string "Path and filename of the EXT filesystem based boot counter"
89 default "/boot/failures"
90 depends on BOOTCOUNT_EXT
91 help
92 Set the filename and path of the file used to store the boot counter.
93
94config SYS_BOOTCOUNT_ADDR
95 hex "RAM address used for reading and writing the boot counter"
96 default 0x7000A000
97 depends on BOOTCOUNT_EXT
98 help
99 Set the address used for reading and writing the boot counter.
100
101endif