summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPadmarao Begari <[email protected]>2025-09-12 15:35:38 +0530
committerMichal Simek <[email protected]>2025-10-09 09:07:04 +0200
commitaa4e7f70837fc7f714822de234d30fb13fb29d14 (patch)
tree5b92345fae77446582ad7f3c97c72750bb802f63 /include
parent9b68682d1cc1d44a6646bc50c536af91c770c712 (diff)
FWU: Add platform hook support for fwu metata
FWU metadata information is unavailable for platform-specific operations since FWU initialization has not yet occurred. The initialization function is invoked as part of the main loop event. To address this, the FWU platform hook function is introduced during FWU initialization, allowing metadata processing with platform-specific operations. Signed-off-by: Padmarao Begari <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/fwu.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/fwu.h b/include/fwu.h
index 77e60167fc7..e7bd1d492af 100644
--- a/include/fwu.h
+++ b/include/fwu.h
@@ -129,6 +129,17 @@ int fwu_write_mdata(struct udevice *dev, struct fwu_mdata *mdata,
bool primary, uint32_t size);
/**
+ * fwu_platform_hook() - Platform specific processing with FWU metadata
+ * @dev: FWU metadata device
+ * @data: FWU metadata
+ *
+ * Provide a platform specific function for processing with the FWU metadata.
+ *
+ * Return: 0 if OK, -ve on error
+ */
+int fwu_platform_hook(struct udevice *dev, struct fwu_data *data);
+
+/**
* fwu_get_mdata() - Read, verify and return the FWU metadata
*
* Read both the metadata copies from the storage media, verify their checksum,