aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-13 08:56:32 -0700
committerSimon Glass <sjg@chromium.org>2023-02-14 09:42:14 -0700
commitc74e03417bdcb2930fa027e78cc8cebed384a975 (patch)
tree1ae64a0916c7edec68aa3e188e82e5c646d49519 /common
parent7703efbc9959e3c468e5c12744168bc5f9326cef (diff)
downloadu-boot-c74e03417bdcb2930fa027e78cc8cebed384a975.zip
u-boot-c74e03417bdcb2930fa027e78cc8cebed384a975.tar.gz
u-boot-c74e03417bdcb2930fa027e78cc8cebed384a975.tar.bz2
dm: Add support for handling old u-boot,dm- tags
Add a CONFIG option to deal with this automatically, printing a warning when U-Boot starts up. This can be useful if the device tree comes from another project. We will maintain this through the 2023.07 release, providing 6 months for people to notice. Signed-off-by: Simon Glass <sjg@chromium.org> Version 4: Acked-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index e450033..6b4180b 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -569,6 +569,13 @@ static int dm_announce(void)
printf("Warning: Unexpected devicetree source (not from a prior stage)");
printf("Warning: U-Boot may not function properly\n");
}
+ if (IS_ENABLED(CONFIG_OF_TAG_MIGRATE) &&
+ (gd->flags & GD_FLG_OF_TAG_MIGRATE))
+ /*
+ * U-Boot will silently fail to work after 2023.07 if
+ * there are old tags present
+ */
+ printf("Warning: Device tree includes old 'u-boot,dm-' tags: please fix by 2023.07!\n");
}
return 0;