summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-07-30 15:52:31 -0600
committerTom Rini <trini@konsulko.com>2022-08-12 08:17:11 -0400
commit98887ab802e4118e7c813e5e052678772fa1b3a8 (patch)
treed44b4041a2d15e73977641e508700770330076e1 /common
parent569524741a01e1a96fc2b75dd7e5d12e41ce6c2b (diff)
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>
Diffstat (limited to 'common')
-rw-r--r--common/event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/event.c b/common/event.c
index af1ed4121d..3e34550978 100644
--- a/common/event.c
+++ b/common/event.c
@@ -35,6 +35,9 @@ const char *const type_name[] = {
/* init hooks */
"misc_init_f",
+
+ /* fdt hooks */
+ "ft_fixup",
};
_Static_assert(ARRAY_SIZE(type_name) == EVT_COUNT, "event type_name size");