mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
bootcount: display5: spl: Extend DISPLAY5 board SPL to support bootcount checking
This patch is necessary for providing basic bootcount checking in the case of using "falcon" boot mode in that board. It forces u-boot proper boot, when we exceed the number of errors. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
a8be249463
commit
2dbd5cd966
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
||||||
#include <environment.h>
|
#include <environment.h>
|
||||||
#include <fsl_esdhc.h>
|
#include <fsl_esdhc.h>
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
|
#include <bootcount.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
@ -213,7 +214,7 @@ void board_boot_order(u32 *spl_boot_list)
|
||||||
env_load();
|
env_load();
|
||||||
|
|
||||||
s = env_get("BOOT_FROM");
|
s = env_get("BOOT_FROM");
|
||||||
if (s && strcmp(s, "ACTIVE") == 0) {
|
if (s && !bootcount_error() && strcmp(s, "ACTIVE") == 0) {
|
||||||
spl_boot_list[0] = BOOT_DEVICE_MMC1;
|
spl_boot_list[0] = BOOT_DEVICE_MMC1;
|
||||||
spl_boot_list[1] = spl_boot_device();
|
spl_boot_list[1] = spl_boot_device();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue