summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKory Maincent (TI.com) <[email protected]>2025-10-30 17:45:10 +0100
committerTom Rini <[email protected]>2025-11-03 10:02:39 -0600
commitf9b139342c4f6cc067df06692e6dcaa4ba2edafc (patch)
treecb3ad06fd19af41a906f89777af90570b5f62be8 /include
parent2d12958ee71b5f400ff2045aebc9730e8e219340 (diff)
boot: extension: Move overlay apply custom logic to command level
The extension_overlay_cmd environment variable approach is specific to the U-Boot extension_board command, while other boot flows (pxe_utils, bootstd) handle overlay loading differently. Move the extension_overlay_cmd execution out of the core extension framework to the command level. This decouples the framework from command-specific behavior and prepares for future extension support in other boot flows. Signed-off-by: Kory Maincent (TI.com) <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/extension_board.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/extension_board.h b/include/extension_board.h
index 451e8ed832d..0b9fb99ad7d 100644
--- a/include/extension_board.h
+++ b/include/extension_board.h
@@ -44,17 +44,11 @@ int extension_scan(void);
/**
* extension_apply - Apply extension board overlay to the devicetree
- * @extension_num: Extension number to be applied
+ * @working_fdt: Pointer to working flattened device tree
+ * @size: Size of the devicetree overlay
* Return: Zero on success, negative on failure.
*/
-int extension_apply(int extension_num);
-
-/**
- * extension_apply_all - Apply all extension board overlays to the
- * devicetree
- * Return: Zero on success, negative on failure.
- */
-int extension_apply_all(void);
+int extension_apply(struct fdt_header *working_fdt, ulong size);
/**
* extension - Description fields of an extension board