mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user