diff options
| author | Christian Taedcke <[email protected]> | 2023-07-20 09:27:24 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2023-07-21 09:00:39 +0200 |
| commit | a1190b4d6a9bf3a45038e3eba4a11de4be2b1cca (patch) | |
| tree | b9855137a74fd28dd19be629603c70a153ab1575 /include | |
| parent | 2a907542c77610817504321f32a78422f9a23d1d (diff) | |
event: Add fpga load event
This enables implementing custom logic after a bitstream was loaded
into the fpga.
Signed-off-by: Christian Taedcke <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[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/event.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/event.h b/include/event.h index fe41080fa63..daf44bf8a83 100644 --- a/include/event.h +++ b/include/event.h @@ -11,6 +11,7 @@ #define __event_h #include <dm/ofnode_decl.h> +#include <linux/types.h> /** * enum event_t - Types of events supported by U-Boot @@ -31,6 +32,9 @@ enum event_t { /* Init hooks */ EVT_MISC_INIT_F, + /* Fpga load hook */ + EVT_FPGA_LOAD, + /* Device tree fixups before booting */ EVT_FT_FIXUP, @@ -60,6 +64,19 @@ union event_data { } dm; /** + * struct event_fpga_load - fpga load event + * + * @buf: The buffer that was loaded into the fpga + * @bsize: The size of the buffer that was loaded into the fpga + * @result: Result of the load operation + */ + struct event_fpga_load { + const void *buf; + size_t bsize; + int result; + } fpga_load; + + /** * struct event_ft_fixup - FDT fixup before booting * * @tree: tree to update |
