aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-03-04 08:43:03 -0700
committerTom Rini <trini@konsulko.com>2022-03-10 08:28:36 -0500
commit5b896ed5856f768cdd55cdeb44c5f8f6b6a7a18a (patch)
tree427918a7828619a8620cd9b95d547539c9eb6733 /common
parent5a4219043d659514316e41d3d09866030c773e78 (diff)
downloadu-boot-5b896ed5856f768cdd55cdeb44c5f8f6b6a7a18a.zip
u-boot-5b896ed5856f768cdd55cdeb44c5f8f6b6a7a18a.tar.gz
u-boot-5b896ed5856f768cdd55cdeb44c5f8f6b6a7a18a.tar.bz2
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>
Diffstat (limited to 'common')
-rw-r--r--common/event.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/event.c b/common/event.c
index 366be24..737d3ac 100644
--- a/common/event.c
+++ b/common/event.c
@@ -24,6 +24,12 @@ DECLARE_GLOBAL_DATA_PTR;
const char *const type_name[] = {
"none",
"test",
+
+ /* Events related to driver model */
+ "dm_pre_probe",
+ "dm_post_probe",
+ "dm_pre_remove",
+ "dm_post_remove",
};
_Static_assert(ARRAY_SIZE(type_name) == EVT_COUNT, "event type_name size");