diff options
| author | Tom Rini <[email protected]> | 2024-09-19 11:25:26 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-09-19 11:25:26 -0600 |
| commit | 2ac0a302ada6b1d0d9a2a137fd790ccd4f8d2090 (patch) | |
| tree | dc529cd1f3c14da2c028833bb501a4a6ddf1d9f1 /include | |
| parent | c17805e19b9335e1fb5295c81b59eddf88d1b9ec (diff) | |
| parent | 6f933aa963bb971d848ff6bd1c743035bbc98ead (diff) | |
Merge tag 'fwu-next-19092024' of https://source.denx.de/u-boot/custodians/u-boot-tpm into next
This PR contains various improvements in the A/B update logic for EFI
- Read both copies of metadata, in case one of the is corrupted
- Check the metadata version against the running firmware to make sure it's
allowed
- Limit the use of a revert capsule if the board is on a trial state and
make sure it's not applied if the max counter has expired
Diffstat (limited to 'include')
| -rw-r--r-- | include/fwu.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/fwu.h b/include/fwu.h index c317613eaaa..6441de370c9 100644 --- a/include/fwu.h +++ b/include/fwu.h @@ -417,4 +417,15 @@ int fwu_state_machine_updates(bool trial_state, uint32_t update_index); */ int fwu_init(void); +/** + * fwu_bank_accepted() - Has the bank been accepted + * @data: Version agnostic FWU metadata information + * @bank: Update bank to check + * + * Check in the given bank if all the images have been accepted. + * + * Return: true if all images accepted, false otherwise + */ +bool fwu_bank_accepted(struct fwu_data *data, uint32_t bank); + #endif /* _FWU_H_ */ |
