1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-14 22:42:01 +02:00

fwu: check all images for transitioning out of Trial State

The platform transitions out of Trial State into the Regular State
only when all the images in the update bank have been accepted. Check
for this condition before transitioning out of Trial State.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Tested-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
Sughosh Ganu
2024-09-09 16:50:18 +05:30
committed by Ilias Apalodimas
parent 36811ff827
commit 03392f1eb8
4 changed files with 45 additions and 3 deletions

View File

@@ -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_ */