#
6092ce50 |
|
18-Oct-2023 |
Artur Rojek <artur@conclusive.pl> |
event: add new EVT_SETTINGS_R event Introduce EVT_SETTINGS_R, triggered post-relocation and before console init. This event gives an option to perform any platform-dependent setup, which needs to take place before show_board_info(). Usage examples include readout of EEPROM stored settings. Signed-off-by: Artur Rojek <artur@conclusive.pl> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
e65f6ba0 |
|
05-Sep-2023 |
Marek Vasut <marek.vasut+renesas@mailbox.org> |
event: Rename rest of EVENT_SPY to EVENT_SPY_FULL or EVENT_SPY* Fix up remaining occurances of EVENT_SPY with no suffix. Fixes: 6c4cad7438 ("event: Rename EVENT_SPY to EVENT_SPY_FULL") Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
1ee16b26 |
|
06-Sep-2023 |
Marek Vasut <marek.vasut+renesas@mailbox.org> |
common: event: Remove unused NEEDS_MANUAL_RELOC code bits The last user of the NEEDS_MANUAL_RELOC has been removed in commit 26af162ac8f8 ("arch: m68k: Implement relocation") Remove now unused NEEDS_MANUAL_RELOC code. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> |
#
b53ab971 |
|
04-Sep-2023 |
Tom Rini <trini@konsulko.com> |
event.h: Documented some newly added portions better After the merge of v2023.10-rc4 to next include/event.h needs to be fully documented in order for documentation builds to complete. Rewords two of the event_t descriptions to be docbook style and better match the rest of this enum. Fix two typos (flag->flags) in other comments. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
ddec4cae |
|
04-Sep-2023 |
Tom Rini <trini@konsulko.com> |
Merge tag 'v2023.10-rc4' into next Prepare v2023.10-rc4
|
#
6a407076 |
|
28-Aug-2023 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: event: document all events Provide Sphinx documentation for all events. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
91caa3bb |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Use an event to replace last_stage_init() Add a new event which handles this function. Convert existing use of the function to use the new event instead. Make sure that EVENT is enabled by affected boards, by selecting it from the LAST_STAGE_INIT option. For x86, enable it by default since all boards need it. For controlcenterdc, inline the get_tpm() function and make sure the event is not built in SPL. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
13a7db9a |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
x86: Convert arch_fsp_init() to use events Convert this to use events instead of calling a function directly in the init sequence. Rename it to arch_fsp_init_f() to distinguish it from the one that happens after relocation. For FSPv2 nothing needs to be done here, so drop the empty function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
6c4cad74 |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Rename EVENT_SPY to EVENT_SPY_FULL The new name makes it clearer that this is for a full spy, with access to the context and the event data. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
fb7dfca2 |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Export event_type_name() Export this function so it can be used with initcall debugging. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
ba5e3e1e |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Support a simple spy record The current event spy is always passed the event context and the event. The context is always NULL for a static spy. The event is not often used. Introduce a 'simple' spy which takes no arguments. This allows us to drop the adaptation code that many of these spy records use. Update the event script to find these in the image. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
27c7a629 |
|
17-Aug-2023 |
Chanho Park <chanho61.park@samsung.com> |
dm: event: add EVT_DM_POST_INIT_R event type This patch introduces EVT_DM_POST_INIT_R event type for handling hooks after relocation. Fixes: 55171aedda88 ("dm: Emit the arch_cpu_init_dm() even only before relocation") Suggested-by: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Tested-by: Milan P. Stanić <mps@arvanta.net> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Fixed missing event name in event.c: Signed-off-by: Simon Glass <sjg@chromium.org> |
#
a1190b4d |
|
20-Jul-2023 |
Christian Taedcke <christian.taedcke@weidmueller.com> |
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> |
#
55171aed |
|
04-May-2023 |
Simon Glass <sjg@chromium.org> |
dm: Emit the arch_cpu_init_dm() even only before relocation The original function was only called once, before relocation. The new one is called again after relocation. This was not the intent of the original call. Fix this by renaming and updating the calling logic. With this, chromebook_link64 makes it through SPL. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
#
467bad5e |
|
21-Oct-2022 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e65f6ba0 |
|
05-Sep-2023 |
Marek Vasut <marek.vasut+renesas@mailbox.org> |
event: Rename rest of EVENT_SPY to EVENT_SPY_FULL or EVENT_SPY* Fix up remaining occurances of EVENT_SPY with no suffix. Fixes: 6c4cad7438 ("event: Rename EVENT_SPY to EVENT_SPY_FULL") Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
1ee16b26 |
|
06-Sep-2023 |
Marek Vasut <marek.vasut+renesas@mailbox.org> |
common: event: Remove unused NEEDS_MANUAL_RELOC code bits The last user of the NEEDS_MANUAL_RELOC has been removed in commit 26af162ac8f8 ("arch: m68k: Implement relocation") Remove now unused NEEDS_MANUAL_RELOC code. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> |
#
b53ab971 |
|
04-Sep-2023 |
Tom Rini <trini@konsulko.com> |
event.h: Documented some newly added portions better After the merge of v2023.10-rc4 to next include/event.h needs to be fully documented in order for documentation builds to complete. Rewords two of the event_t descriptions to be docbook style and better match the rest of this enum. Fix two typos (flag->flags) in other comments. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
ddec4cae |
|
04-Sep-2023 |
Tom Rini <trini@konsulko.com> |
Merge tag 'v2023.10-rc4' into next Prepare v2023.10-rc4
|
#
6a407076 |
|
28-Aug-2023 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: event: document all events Provide Sphinx documentation for all events. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
91caa3bb |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Use an event to replace last_stage_init() Add a new event which handles this function. Convert existing use of the function to use the new event instead. Make sure that EVENT is enabled by affected boards, by selecting it from the LAST_STAGE_INIT option. For x86, enable it by default since all boards need it. For controlcenterdc, inline the get_tpm() function and make sure the event is not built in SPL. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
13a7db9a |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
x86: Convert arch_fsp_init() to use events Convert this to use events instead of calling a function directly in the init sequence. Rename it to arch_fsp_init_f() to distinguish it from the one that happens after relocation. For FSPv2 nothing needs to be done here, so drop the empty function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
6c4cad74 |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Rename EVENT_SPY to EVENT_SPY_FULL The new name makes it clearer that this is for a full spy, with access to the context and the event data. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
fb7dfca2 |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Export event_type_name() Export this function so it can be used with initcall debugging. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
ba5e3e1e |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Support a simple spy record The current event spy is always passed the event context and the event. The context is always NULL for a static spy. The event is not often used. Introduce a 'simple' spy which takes no arguments. This allows us to drop the adaptation code that many of these spy records use. Update the event script to find these in the image. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
27c7a629 |
|
17-Aug-2023 |
Chanho Park <chanho61.park@samsung.com> |
dm: event: add EVT_DM_POST_INIT_R event type This patch introduces EVT_DM_POST_INIT_R event type for handling hooks after relocation. Fixes: 55171aedda88 ("dm: Emit the arch_cpu_init_dm() even only before relocation") Suggested-by: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Tested-by: Milan P. Stanić <mps@arvanta.net> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Fixed missing event name in event.c: Signed-off-by: Simon Glass <sjg@chromium.org> |
#
a1190b4d |
|
20-Jul-2023 |
Christian Taedcke <christian.taedcke@weidmueller.com> |
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> |
#
55171aed |
|
04-May-2023 |
Simon Glass <sjg@chromium.org> |
dm: Emit the arch_cpu_init_dm() even only before relocation The original function was only called once, before relocation. The new one is called again after relocation. This was not the intent of the original call. Fix this by renaming and updating the calling logic. With this, chromebook_link64 makes it through SPL. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
#
467bad5e |
|
21-Oct-2022 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
1ee16b26 |
|
06-Sep-2023 |
Marek Vasut <marek.vasut+renesas@mailbox.org> |
common: event: Remove unused NEEDS_MANUAL_RELOC code bits The last user of the NEEDS_MANUAL_RELOC has been removed in commit 26af162ac8f8 ("arch: m68k: Implement relocation") Remove now unused NEEDS_MANUAL_RELOC code. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> |
#
b53ab971 |
|
04-Sep-2023 |
Tom Rini <trini@konsulko.com> |
event.h: Documented some newly added portions better After the merge of v2023.10-rc4 to next include/event.h needs to be fully documented in order for documentation builds to complete. Rewords two of the event_t descriptions to be docbook style and better match the rest of this enum. Fix two typos (flag->flags) in other comments. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
ddec4cae |
|
04-Sep-2023 |
Tom Rini <trini@konsulko.com> |
Merge tag 'v2023.10-rc4' into next Prepare v2023.10-rc4
|
#
6a407076 |
|
28-Aug-2023 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: event: document all events Provide Sphinx documentation for all events. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
91caa3bb |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Use an event to replace last_stage_init() Add a new event which handles this function. Convert existing use of the function to use the new event instead. Make sure that EVENT is enabled by affected boards, by selecting it from the LAST_STAGE_INIT option. For x86, enable it by default since all boards need it. For controlcenterdc, inline the get_tpm() function and make sure the event is not built in SPL. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
13a7db9a |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
x86: Convert arch_fsp_init() to use events Convert this to use events instead of calling a function directly in the init sequence. Rename it to arch_fsp_init_f() to distinguish it from the one that happens after relocation. For FSPv2 nothing needs to be done here, so drop the empty function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
6c4cad74 |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Rename EVENT_SPY to EVENT_SPY_FULL The new name makes it clearer that this is for a full spy, with access to the context and the event data. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
fb7dfca2 |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Export event_type_name() Export this function so it can be used with initcall debugging. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
ba5e3e1e |
|
21-Aug-2023 |
Simon Glass <sjg@chromium.org> |
event: Support a simple spy record The current event spy is always passed the event context and the event. The context is always NULL for a static spy. The event is not often used. Introduce a 'simple' spy which takes no arguments. This allows us to drop the adaptation code that many of these spy records use. Update the event script to find these in the image. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
27c7a629 |
|
17-Aug-2023 |
Chanho Park <chanho61.park@samsung.com> |
dm: event: add EVT_DM_POST_INIT_R event type This patch introduces EVT_DM_POST_INIT_R event type for handling hooks after relocation. Fixes: 55171aedda88 ("dm: Emit the arch_cpu_init_dm() even only before relocation") Suggested-by: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Tested-by: Milan P. Stanić <mps@arvanta.net> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Fixed missing event name in event.c: Signed-off-by: Simon Glass <sjg@chromium.org> |
#
a1190b4d |
|
20-Jul-2023 |
Christian Taedcke <christian.taedcke@weidmueller.com> |
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> |
#
55171aed |
|
04-May-2023 |
Simon Glass <sjg@chromium.org> |
dm: Emit the arch_cpu_init_dm() even only before relocation The original function was only called once, before relocation. The new one is called again after relocation. This was not the intent of the original call. Fix this by renaming and updating the calling logic. With this, chromebook_link64 makes it through SPL. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
#
467bad5e |
|
21-Oct-2022 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
6a407076 |
|
28-Aug-2023 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: event: document all events Provide Sphinx documentation for all events. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
27c7a629 |
|
17-Aug-2023 |
Chanho Park <chanho61.park@samsung.com> |
dm: event: add EVT_DM_POST_INIT_R event type This patch introduces EVT_DM_POST_INIT_R event type for handling hooks after relocation. Fixes: 55171aedda88 ("dm: Emit the arch_cpu_init_dm() even only before relocation") Suggested-by: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Tested-by: Milan P. Stanić <mps@arvanta.net> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Fixed missing event name in event.c: Signed-off-by: Simon Glass <sjg@chromium.org> |
#
a1190b4d |
|
20-Jul-2023 |
Christian Taedcke <christian.taedcke@weidmueller.com> |
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> |
#
55171aed |
|
04-May-2023 |
Simon Glass <sjg@chromium.org> |
dm: Emit the arch_cpu_init_dm() even only before relocation The original function was only called once, before relocation. The new one is called again after relocation. This was not the intent of the original call. Fix this by renaming and updating the calling logic. With this, chromebook_link64 makes it through SPL. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
#
467bad5e |
|
21-Oct-2022 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
27c7a629 |
|
17-Aug-2023 |
Chanho Park <chanho61.park@samsung.com> |
dm: event: add EVT_DM_POST_INIT_R event type This patch introduces EVT_DM_POST_INIT_R event type for handling hooks after relocation. Fixes: 55171aedda88 ("dm: Emit the arch_cpu_init_dm() even only before relocation") Suggested-by: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Tested-by: Milan P. Stanić <mps@arvanta.net> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Tested-by: Roland Ruckerbauer <mail@ruabmbua.dev> Fixed missing event name in event.c: Signed-off-by: Simon Glass <sjg@chromium.org> |
#
a1190b4d |
|
20-Jul-2023 |
Christian Taedcke <christian.taedcke@weidmueller.com> |
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> |
#
55171aed |
|
04-May-2023 |
Simon Glass <sjg@chromium.org> |
dm: Emit the arch_cpu_init_dm() even only before relocation The original function was only called once, before relocation. The new one is called again after relocation. This was not the intent of the original call. Fix this by renaming and updating the calling logic. With this, chromebook_link64 makes it through SPL. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
#
467bad5e |
|
21-Oct-2022 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
a1190b4d |
|
20-Jul-2023 |
Christian Taedcke <christian.taedcke@weidmueller.com> |
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> |
#
55171aed |
|
04-May-2023 |
Simon Glass <sjg@chromium.org> |
dm: Emit the arch_cpu_init_dm() even only before relocation The original function was only called once, before relocation. The new one is called again after relocation. This was not the intent of the original call. Fix this by renaming and updating the calling logic. With this, chromebook_link64 makes it through SPL. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
#
467bad5e |
|
21-Oct-2022 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
55171aed |
|
04-May-2023 |
Simon Glass <sjg@chromium.org> |
dm: Emit the arch_cpu_init_dm() even only before relocation The original function was only called once, before relocation. The new one is called again after relocation. This was not the intent of the original call. Fix this by renaming and updating the calling logic. With this, chromebook_link64 makes it through SPL. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
#
467bad5e |
|
21-Oct-2022 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
467bad5e |
|
21-Oct-2022 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b215b603 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Pass the images to EVT_FT_FIXUP Pass the boot images along as well, in case the fixups need to look at them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
b5001cb4 |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
event: Allow multiple spy declarations for each event At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
98887ab8 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Add an event for device tree fixups At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interface only, since this can support live tree which is more efficient when making lots of updates. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
56952474 |
|
30-Jul-2022 |
Simon Glass <sjg@chromium.org> |
event: Change EVENT_SPY to global This creates static records at present, but it causes a problem with clang and LTO: the linker list records are sometimes dropped from the image. Fix this by making the records global. Update to use __used while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
cebc8161 |
|
15-May-2022 |
Ovidiu Panait <ovpanait@gmail.com> |
event: fix static events for CONFIG_NEEDS_MANUAL_RELOC Static events do not currently work post-relocation for boards that enable CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event spies to fix this. Tested on Microblaze. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> |
#
c5ef2025 |
|
07-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
dm: fix DM_EVENT dependencies CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. Let CONFIG_DM_EVENT depend on CONFIG_EVENT. Remove superfluous stub in include/event.h. Fixes: 5b896ed5856f ("event: Add events for device probe/remove") Reported-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
c81b460c |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add a command Add a command to show the available events. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7fe32b34 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert arch_cpu_init_dm() to use events Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
42fdcebf |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Convert misc_init_f() to use events This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5b896ed5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add events for device probe/remove Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
87a5d1b5 |
|
04-Mar-2022 |
Simon Glass <sjg@chromium.org> |
event: Add basic support for events Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier to see what is going on at runtime, but uses more code space. Dynamic events allow the creation of a spy at runtime. This is not always necessary, but can be enabled with EVENT_DYNAMIC if needed. A 'test' event is the only option for now. Signed-off-by: Simon Glass <sjg@chromium.org> |