mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 06:50:10 +00:00
feat(st): get the state of the active bank directly
With version 2 of the FWU metadata structure, the state that a bank is in can be obtained from the bank_state field in the top level structure. Read the state of the active bank by referencing this field directly, instead of making an API call. Change-Id: Ib22c56acbe172923b1323c544801ded81f1598ec Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
This commit is contained in:
parent
11d05a7729
commit
588b01b5e4
1 changed files with 1 additions and 1 deletions
|
@ -628,7 +628,7 @@ uint32_t plat_fwu_get_boot_idx(void)
|
|||
|
||||
if (boot_idx == INVALID_BOOT_IDX) {
|
||||
boot_idx = data->active_index;
|
||||
if (fwu_is_trial_run_state()) {
|
||||
if (data->bank_state[boot_idx] == FWU_BANK_STATE_VALID) {
|
||||
if (stm32_get_and_dec_fwu_trial_boot_cnt() == 0U) {
|
||||
WARN("Trial FWU fails %u times\n",
|
||||
FWU_MAX_TRIAL_REBOOT);
|
||||
|
|
Loading…
Add table
Reference in a new issue