diff options
author | Christian Taedcke <christian.taedcke@weidmueller.com> | 2023-07-20 10:27:24 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2023-07-21 10:00:39 +0300 |
commit | a1190b4d6a9bf3a45038e3eba4a11de4be2b1cca (patch) | |
tree | b9855137a74fd28dd19be629603c70a153ab1575 /include | |
parent | 2a907542c77610817504321f32a78422f9a23d1d (diff) | |
download | u-boot-a1190b4d6a9bf3a45038e3eba4a11de4be2b1cca.tar.xz |
event: Add fpga load event
This enables implementing custom logic after a bitstream was loaded
into the fpga.
Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Link: https://lore.kernel.org/r/20230720072724.11516-1-christian.taedcke-oss@weidmueller.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
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 fe41080fa6..daf44bf8a8 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 |