diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-02-16 15:50:41 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-02-24 08:43:36 -0500 |
commit | 04c96ed2a6820ba2aee978826f96d464386b8cab (patch) | |
tree | 8520270b6f15dac470f4fef8ea7697b8f527d6ba /drivers | |
parent | c35e2d91a9096a5033138b495742b98407fe238e (diff) | |
download | u-boot-04c96ed2a6820ba2aee978826f96d464386b8cab.tar.gz |
Convert CONFIG_BOOTCOUNT_ENV to Kconfig
This converts the following to Kconfig:
CONFIG_BOOTCOUNT_ENV
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/bootcount/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index e905295d45..40a07555af 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -28,6 +28,18 @@ config BOOTCOUNT_AM33XX This requires the RTC clocks, etc, to be enabled prior to use and not all boards with this IP block on it will have the RTC in use. +config BOOTCOUNT_ENV + bool "Boot counter in environment" + help + If no softreset save registers are found on the hardware + "bootcount" is stored in the environment. To prevent a + saveenv on all reboots, the environment variable + "upgrade_available" is used. If "upgrade_available" is + 0, "bootcount" is always 0, if "upgrade_available" is + 1 "bootcount" is incremented in the environment. + So the Userspace Application must set the "upgrade_available" + and "bootcount" variable to 0, if a boot was successfully. + endchoice config SYS_BOOTCOUNT_SINGLEWORD |