Ian Ray | f31dac4 | 2017-11-08 15:35:13 +0000 | [diff] [blame] | 1 | # |
| 2 | # Boot count configuration |
| 3 | # |
| 4 | |
Alex Kiernan | c1e1c1e | 2018-02-16 15:50:39 +0000 | [diff] [blame] | 5 | menuconfig BOOTCOUNT_LIMIT |
Lukasz Majewski | d1ec946 | 2018-02-09 23:50:57 +0100 | [diff] [blame] | 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 | |
Alex Kiernan | 3dccc10 | 2018-02-16 15:50:38 +0000 | [diff] [blame] | 11 | if BOOTCOUNT_LIMIT |
Ian Ray | f31dac4 | 2017-11-08 15:35:13 +0000 | [diff] [blame] | 12 | |
Alex Kiernan | c1e1c1e | 2018-02-16 15:50:39 +0000 | [diff] [blame] | 13 | choice |
| 14 | prompt "Boot count device" |
Alex Kiernan | c35e2d9 | 2018-02-16 15:50:40 +0000 | [diff] [blame^] | 15 | default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX |
Alex Kiernan | c1e1c1e | 2018-02-16 15:50:39 +0000 | [diff] [blame] | 16 | |
Ian Ray | f31dac4 | 2017-11-08 15:35:13 +0000 | [diff] [blame] | 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 | |
Alex Kiernan | c35e2d9 | 2018-02-16 15:50:40 +0000 | [diff] [blame^] | 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 | |
Alex Kiernan | c1e1c1e | 2018-02-16 15:50:39 +0000 | [diff] [blame] | 31 | endchoice |
| 32 | |
| 33 | config SYS_BOOTCOUNT_SINGLEWORD |
| 34 | bool "Use single word to pack boot count and magic value" |
| 35 | help |
| 36 | This option enables packing boot count magic value and boot count |
| 37 | into single word (32 bits). |
Ian Ray | f31dac4 | 2017-11-08 15:35:13 +0000 | [diff] [blame] | 38 | |
| 39 | config SYS_BOOTCOUNT_EXT_INTERFACE |
| 40 | string "Interface on which to find boot counter EXT filesystem" |
| 41 | default "mmc" |
| 42 | depends on BOOTCOUNT_EXT |
| 43 | help |
| 44 | Set the interface to use when locating the filesystem to use for the |
| 45 | boot counter. |
| 46 | |
| 47 | config SYS_BOOTCOUNT_EXT_DEVPART |
| 48 | string "Partition of the boot counter EXT filesystem" |
| 49 | default "0:1" |
| 50 | depends on BOOTCOUNT_EXT |
| 51 | help |
| 52 | Set the partition to use when locating the filesystem to use for the |
| 53 | boot counter. |
| 54 | |
| 55 | config SYS_BOOTCOUNT_EXT_NAME |
| 56 | string "Path and filename of the EXT filesystem based boot counter" |
| 57 | default "/boot/failures" |
| 58 | depends on BOOTCOUNT_EXT |
| 59 | help |
| 60 | Set the filename and path of the file used to store the boot counter. |
| 61 | |
| 62 | config SYS_BOOTCOUNT_ADDR |
| 63 | hex "RAM address used for reading and writing the boot counter" |
| 64 | default 0x7000A000 |
| 65 | depends on BOOTCOUNT_EXT |
| 66 | help |
| 67 | Set the address used for reading and writing the boot counter. |
| 68 | |
| 69 | endif |