]> git.ipfire.org Git - u-boot.git/blame - drivers/bootcount/Kconfig
Convert CONFIG_BOOTCOUNT_I2C to Kconfig
[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
c1e1c1ec 16
f31dac4e
IR
17config 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
c35e2d91
AK
23config 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
04c96ed2
AK
31config 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
ff5410d3
AK
43config 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
6cdd70eb
AK
49config BOOTCOUNT_I2C
50 bool "Boot counter on I2C device"
51 help
52 Enable support for the bootcounter on an i2c (like RTC) device.
53 CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
54 CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
55 the bootcounter.
56 CONFIG_BOOTCOUNT_ALEN = address len
57
c1e1c1ec
AK
58endchoice
59
60config SYS_BOOTCOUNT_SINGLEWORD
61 bool "Use single word to pack boot count and magic value"
62 help
63 This option enables packing boot count magic value and boot count
64 into single word (32 bits).
f31dac4e
IR
65
66config SYS_BOOTCOUNT_EXT_INTERFACE
67 string "Interface on which to find boot counter EXT filesystem"
68 default "mmc"
69 depends on BOOTCOUNT_EXT
70 help
71 Set the interface to use when locating the filesystem to use for the
72 boot counter.
73
74config SYS_BOOTCOUNT_EXT_DEVPART
75 string "Partition of the boot counter EXT filesystem"
76 default "0:1"
77 depends on BOOTCOUNT_EXT
78 help
79 Set the partition to use when locating the filesystem to use for the
80 boot counter.
81
82config SYS_BOOTCOUNT_EXT_NAME
83 string "Path and filename of the EXT filesystem based boot counter"
84 default "/boot/failures"
85 depends on BOOTCOUNT_EXT
86 help
87 Set the filename and path of the file used to store the boot counter.
88
89config SYS_BOOTCOUNT_ADDR
90 hex "RAM address used for reading and writing the boot counter"
91 default 0x7000A000
92 depends on BOOTCOUNT_EXT
93 help
94 Set the address used for reading and writing the boot counter.
95
96endif