mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
capsule: board: Add information needed for capsule updates
Add a structure which defines the information that is needed for executing capsule updates on a platform. Some information in the structure like the dfu string is used for making the update process more robust while some information like the per platform image GUIDs is used for fixing issues. Initialise this structure in the board file, and use the information for the capsule updates. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
42a2d90cf5
commit
741ef86728
@@ -979,6 +979,42 @@ efi_status_t efi_capsule_authenticate(const void *capsule,
|
||||
|
||||
#define EFI_CAPSULE_DIR u"\\EFI\\UpdateCapsule\\"
|
||||
|
||||
/**
|
||||
* struct efi_fw_image - Information on firmware images updatable through
|
||||
* capsule update
|
||||
*
|
||||
* This structure gives information about the firmware images on the platform
|
||||
* which can be updated through the capsule update mechanism
|
||||
*
|
||||
* @image_type_id: Image GUID. Same value is to be used in the capsule
|
||||
* @fw_name: Name of the firmware image
|
||||
* @image_index: Image Index, same as value passed to SetImage FMP
|
||||
* function
|
||||
*/
|
||||
struct efi_fw_image {
|
||||
efi_guid_t image_type_id;
|
||||
u16 *fw_name;
|
||||
u8 image_index;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct efi_capsule_update_info - Information needed for capsule updates
|
||||
*
|
||||
* This structure provides information needed for performing firmware
|
||||
* updates. The structure needs to be initialised per platform, for all
|
||||
* platforms which enable capsule updates
|
||||
*
|
||||
* @dfu_string: String used to populate dfu_alt_info
|
||||
* @images: Pointer to an array of updatable images
|
||||
*/
|
||||
struct efi_capsule_update_info {
|
||||
const char *dfu_string;
|
||||
struct efi_fw_image *images;
|
||||
};
|
||||
|
||||
extern struct efi_capsule_update_info update_info;
|
||||
extern u8 num_image_type_guids;
|
||||
|
||||
/**
|
||||
* Install the ESRT system table.
|
||||
*
|
||||
|
Reference in New Issue
Block a user