summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2018-05-02 16:10:50 +0200
committerTom Rini <trini@konsulko.com>2018-05-10 20:37:05 -0400
commitafa9609ecabc2135debe9d5329f72d58aea4ff05 (patch)
tree084a7039159fbd32fb871cf0f3c0e98f36e33937 /common
parentda342f06b30399fbbebbb53aadfc018713c65c24 (diff)
bootcount: spl: Enable bootcount support in SPL
New, SPL related config option - CONFIG_SPL_BOOTCOUNT_LIMIT has been added to allow drivers/bootcount code re-usage in SPL. This code is necessary to use and setup bootcount in SPL in the case of falcon boot mode. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'common')
-rw-r--r--common/spl/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 259f96607e..431710a93b 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -54,6 +54,15 @@ config SPL_BOOTROM_SUPPORT
BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
boot device list, if not implemented for a given board)
+config SPL_BOOTCOUNT_LIMIT
+ bool "Support bootcount in SPL"
+ depends on SPL_ENV_SUPPORT
+ help
+ On some boards, which use 'falcon' mode, it is necessary to check
+ and increment the number of boot attempts. Such boards do not
+ use proper U-Boot for normal boot flow and hence needs those
+ adjustments to be done in the SPL.
+
config SPL_RAW_IMAGE_SUPPORT
bool "Support SPL loading and booting of RAW images"
default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))