diff options
author | Simon Glass <sjg@chromium.org> | 2023-04-10 21:21:58 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2023-04-12 11:44:37 -0500 |
commit | 74b5111f8bd6debe04d05a503b3da495ad02ab30 (patch) | |
tree | 5382ec8e60565c324552989ee92ef382416c5814 /common | |
parent | b829b7429bcfb4dec065404c6807988639ca9dc0 (diff) |
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.
Version 4:
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_r.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index e45003353f..6b4180b3ec 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; |